public class StatementsForClassImpl extends java.lang.Object implements StatementsForClassIF
Constructor and Description |
---|
StatementsForClassImpl(JdbcConnectionDescriptor jcd,
ClassDescriptor classDescriptor) |
Modifier and Type | Method and Description |
---|---|
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.
|
public StatementsForClassImpl(JdbcConnectionDescriptor jcd, ClassDescriptor classDescriptor)
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
(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