| java.lang.Object org.apache.ojb.broker.accesslayer.StatementsForClassImpl
StatementsForClassImpl | public class StatementsForClassImpl implements StatementsForClassIF(Code) | | This class serves as a cache for Statements that are
used for persistence operations on a given class.
author: Thomas Mahler version: $Id: StatementsForClassImpl.java,v 1.22.2.7 2005/10/27 17:33:23 arminw Exp $ |
Method Summary | |
public PreparedStatement | getDeleteStmt(Connection con) | public Statement | getGenericStmt(Connection con, boolean scrollable) | public PreparedStatement | getInsertStmt(Connection con) | public PreparedStatement | getPreparedStmt(Connection con, String sql, boolean scrollable, int explicitFetchSizeHint, boolean callableStmt) | public PreparedStatement | getSelectByPKStmt(Connection con) | public PreparedStatement | getUpdateStmt(Connection con) | protected PreparedStatement | prepareStatement(Connection con, String sql, boolean scrollable, boolean createPreparedStatement, int explicitFetchSizeHint) Prepares a statement with parameters that should work with most RDBMS.
Parameters: con - the connection to utilize Parameters: sql - the sql syntax to use when creating the statement. Parameters: scrollable - determines if the statement will be scrollable. Parameters: createPreparedStatement - if true , then aPreparedStatement will be created. | protected boolean | usePreparedDeleteStatement() | protected boolean | usePreparedInsertStatement() | protected boolean | usePreparedUpdateStatement() |
FORCEJDBC1_0 | protected boolean FORCEJDBC1_0(Code) | | force use of JDBC 1.0 statement creation
|
fetchSize | final protected int fetchSize(Code) | | |
prepareStatement | protected PreparedStatement prepareStatement(Connection con, String sql, boolean scrollable, boolean createPreparedStatement, int explicitFetchSizeHint) throws SQLException(Code) | | Prepares a statement with parameters that should work with most RDBMS.
Parameters: con - the connection to utilize Parameters: sql - the sql syntax to use when creating the statement. Parameters: scrollable - determines if the statement will be scrollable. Parameters: createPreparedStatement - if true , then aPreparedStatement will be created. If false , thena java.sql.CallableStatement will be created. Parameters: explicitFetchSizeHint - will be used as fetchSize hint(if applicable) if > 0 a statement that can be used to execute the syntax contained inthe sql argument. |
usePreparedDeleteStatement | protected boolean usePreparedDeleteStatement()(Code) | | Answer true if a PreparedStatement has to be used
false for a CallableStatement
|
usePreparedInsertStatement | protected boolean usePreparedInsertStatement()(Code) | | Answer true if a PreparedStatement has to be used
false for a CallableStatement
|
usePreparedUpdateStatement | protected boolean usePreparedUpdateStatement()(Code) | | Answer true if a PreparedStatement has to be used
false for a CallableStatement
|
|
|