|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.broker.accesslayer.StatementsForClass
holds Statements that are used for persistence operations on a given class. * @author: Thomas Mahler
Field Summary | |
static int |
CONCUR
sets the updatabe feature of JDBC ResultSets. |
static boolean |
ESCAPEPROCESSING
sets the escape processing mode |
boolean |
FORCEJDBC1_0
force use of JDBC 1.0 statement creation |
static int |
TYPE
sets the scrollmode of JDBC ResultSets. |
Constructor Summary | |
StatementsForClass(ClassDescriptor mif,
PersistenceBrokerImpl broker)
StatementsForClass constructor. |
Method Summary | |
java.sql.PreparedStatement |
getDeleteStmt()
returns the DELETE Statement used for clazz |
java.sql.Statement |
getGenericStmt()
returns a generic unprepared Statement used for clazz |
java.sql.PreparedStatement |
getInsertStmt()
returns the INSERT Statement used for clazz |
java.sql.PreparedStatement |
getPreparedStmt(java.lang.String sql)
returns a prepared Statement used for clazz |
java.sql.PreparedStatement |
getSelectByPKStmt()
returns the SELECT Statement used for clazz |
java.sql.PreparedStatement |
getUpdateStmt()
returns the UPDATE Statement used for clazz |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int TYPE
public static int CONCUR
public static boolean ESCAPEPROCESSING
public boolean FORCEJDBC1_0
Constructor Detail |
public StatementsForClass(ClassDescriptor mif, PersistenceBrokerImpl broker) throws PersistenceBrokerException
Method Detail |
public java.sql.PreparedStatement getDeleteStmt() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Statement getGenericStmt() throws PersistenceBrokerSQLException
PersistenceBrokerSQLException
public java.sql.PreparedStatement getInsertStmt() throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement getPreparedStmt(java.lang.String sql) throws PersistenceBrokerSQLException
PersistenceBrokerSQLException
public java.sql.PreparedStatement getSelectByPKStmt() throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement getUpdateStmt() throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |