|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.accesslayer.StatementsForClassImpl
This class serves as a cache for Statements that are used for persistence operations on a given class.
Constructor Summary | |
StatementsForClassImpl(JdbcConnectionDescriptor jcd,
ClassDescriptor classDescriptor)
|
Method Summary | |
java.sql.PreparedStatement |
getDeleteStmt(java.sql.Connection con)
Returns the DELETE Statement used for clazz. |
java.sql.Statement |
getGenericStmt(java.sql.Connection con,
boolean scrollable)
Returns a generic unprepared Statement used for clazz. |
java.sql.PreparedStatement |
getInsertStmt(java.sql.Connection con)
Returns the INSERT Statement used for clazz. |
java.sql.PreparedStatement |
getPreparedStmt(java.sql.Connection con,
java.lang.String sql,
boolean scrollable,
int explicitFetchSizeHint,
boolean callableStmt)
Returns a prepared Statement used for clazz. |
java.sql.PreparedStatement |
getSelectByPKStmt(java.sql.Connection con)
Returns the SELECT Statement used for clazz. |
java.sql.PreparedStatement |
getUpdateStmt(java.sql.Connection con)
Returns the UPDATE Statement used for clazz. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatementsForClassImpl(JdbcConnectionDescriptor jcd, ClassDescriptor classDescriptor)
Method Detail |
public java.sql.PreparedStatement getDeleteStmt(java.sql.Connection con) throws java.sql.SQLException
StatementsForClassIF
getDeleteStmt
in interface StatementsForClassIF
java.sql.SQLException
public java.sql.Statement getGenericStmt(java.sql.Connection con, boolean scrollable) throws PersistenceBrokerSQLException
StatementsForClassIF
getGenericStmt
in interface StatementsForClassIF
PersistenceBrokerSQLException
public java.sql.PreparedStatement getInsertStmt(java.sql.Connection con) throws java.sql.SQLException
StatementsForClassIF
getInsertStmt
in interface StatementsForClassIF
java.sql.SQLException
public java.sql.PreparedStatement getPreparedStmt(java.sql.Connection con, java.lang.String sql, boolean scrollable, int explicitFetchSizeHint, boolean callableStmt) throws PersistenceBrokerSQLException
StatementsForClassIF
getPreparedStmt
in interface StatementsForClassIF
PersistenceBrokerSQLException
public java.sql.PreparedStatement getSelectByPKStmt(java.sql.Connection con) throws java.sql.SQLException
StatementsForClassIF
getSelectByPKStmt
in interface StatementsForClassIF
java.sql.SQLException
public java.sql.PreparedStatement getUpdateStmt(java.sql.Connection con) throws java.sql.SQLException
StatementsForClassIF
getUpdateStmt
in interface StatementsForClassIF
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |