|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.enhydra.jdbc.util.JdbcUtil
org.enhydra.jdbc.core.CorePreparedStatement
org.enhydra.jdbc.standard.StandardPreparedStatement
public class StandardPreparedStatement
A very simple implementation of PreparedStatement. When created it is supplied with another PreparedStatement to which nearly all of this class' methods delegate their work. Close() is overridden to prevent the statement from actually being closed.
| Field Summary | |
|---|---|
boolean |
closed
|
Object |
key
|
| Fields inherited from class org.enhydra.jdbc.core.CorePreparedStatement |
|---|
ps |
| Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
|---|
log |
| Fields inherited from interface java.sql.Statement |
|---|
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
| Method Summary | |
|---|---|
void |
catchInvoke(SQLException sqlException)
Exception management : catch or throw the exception |
void |
close()
Close this statement. |
void |
preInvoke()
Pre-invokation of the delegation, in case of the Statement is closed, we throw an exception |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.PreparedStatement |
|---|
setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML |
| Methods inherited from interface java.sql.Statement |
|---|
isClosed, isPoolable, setPoolable |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Field Detail |
|---|
public Object key
public boolean closed
| Method Detail |
|---|
public void close()
throws SQLException
close in interface Statementclose in class CorePreparedStatementSQLException
public void preInvoke()
throws SQLException
preInvoke in class CorePreparedStatementSQLException
public void catchInvoke(SQLException sqlException)
throws SQLException
catchInvoke in class CorePreparedStatementSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||