|
||||||||||
| 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
|
java.lang.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(java.sql.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 java.lang.Object key
public boolean closed
| Method Detail |
|---|
public void close()
throws java.sql.SQLException
close in interface java.sql.Statementclose in class CorePreparedStatementjava.sql.SQLException
public void preInvoke()
throws java.sql.SQLException
preInvoke in class CorePreparedStatementjava.sql.SQLException
public void catchInvoke(java.sql.SQLException sqlException)
throws java.sql.SQLException
catchInvoke in class CorePreparedStatementjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||