used for persistence operations
on a given class.
- Version:
- $Id: StatementsForClassIF.java 364832 2005-06-04 14:15:37Z arminw $
- Author:
- brj, Randall Burt
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. |
getDeleteStmt
java.sql.PreparedStatement getDeleteStmt(java.sql.Connection con)
throws java.sql.SQLException
- Returns the DELETE Statement used for clazz.
- Returns:
- java.sql.PreparedStatement
- Throws:
java.sql.SQLException
getGenericStmt
java.sql.Statement getGenericStmt(java.sql.Connection con,
boolean scrollable)
throws PersistenceBrokerSQLException
- Returns a generic unprepared Statement used for clazz.
Never use this method for UPDATE/INSERT/DELETE if you want to use the batch mode.
- Returns:
- java.sql.Statement
- Throws:
PersistenceBrokerSQLException
getInsertStmt
java.sql.PreparedStatement getInsertStmt(java.sql.Connection con)
throws java.sql.SQLException
- Returns the INSERT Statement used for clazz.
- Returns:
- java.sql.PreparedStatement
- Throws:
java.sql.SQLException
getPreparedStmt
java.sql.PreparedStatement getPreparedStmt(java.sql.Connection con,
java.lang.String sql,
boolean scrollable,
int explicitFetchSizeHint,
boolean callableStmt)
throws PersistenceBrokerSQLException
- Returns a prepared Statement used for clazz.
- Returns:
- java.sql.Statement
- Throws:
PersistenceBrokerSQLException
getSelectByPKStmt
java.sql.PreparedStatement getSelectByPKStmt(java.sql.Connection con)
throws java.sql.SQLException
- Returns the SELECT Statement used for clazz.
- Returns:
- java.sql.PreparedStatement
- Throws:
java.sql.SQLException
getUpdateStmt
java.sql.PreparedStatement getUpdateStmt(java.sql.Connection con)
throws java.sql.SQLException
- Returns the UPDATE Statement used for clazz.
- Returns:
- java.sql.PreparedStatement
- Throws:
java.sql.SQLException
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30