|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatementManagerIF
Field Summary | |
---|---|
static int |
FETCH_SIZE_NOT_APPLICABLE
fetchSize hint marking that setting fetch size for current statement is N/A. |
static int |
FETCH_SIZE_NOT_EXPLICITLY_SET
fetchSize hint marking that there is no statement-level explicit override. |
Method Summary | |
---|---|
void |
bindDelete(java.sql.PreparedStatement stmt,
ClassDescriptor cld,
java.lang.Object obj)
binds the objects primary key and locking values to the statement, BRJ |
void |
bindDelete(java.sql.PreparedStatement stmt,
Identity oid,
ClassDescriptor cld)
Binds the Identities Primary key values to the statement. |
void |
bindInsert(java.sql.PreparedStatement stmt,
ClassDescriptor cld,
java.lang.Object obj)
binds the values of the object obj to the statements parameters |
void |
bindSelect(java.sql.PreparedStatement stmt,
Identity oid,
ClassDescriptor cld,
boolean callableStmt)
binds the Identities Primary key values to the statement |
int |
bindStatement(java.sql.PreparedStatement stmt,
Query query,
ClassDescriptor cld,
int param)
bind a Query based Select Statement |
void |
bindUpdate(java.sql.PreparedStatement stmt,
ClassDescriptor cld,
java.lang.Object obj)
binds the values of the object obj to the statements parameters |
int |
bindValues(java.sql.PreparedStatement stmt,
ValueContainer[] valueContainer,
int index)
binds the given array of values (if not null) starting from the given parameter index |
void |
closeResources(java.sql.Statement stmt,
java.sql.ResultSet rs)
|
java.sql.PreparedStatement |
getDeleteStatement(ClassDescriptor cds)
return a prepared DELETE Statement fitting for the given ClassDescriptor |
java.sql.Statement |
getGenericStatement(ClassDescriptor cds,
boolean scrollable)
return a generic Statement for the given ClassDescriptor |
java.sql.PreparedStatement |
getInsertStatement(ClassDescriptor cds)
return a prepared Insert Statement fitting for the given ClassDescriptor |
java.sql.PreparedStatement |
getPreparedStatement(ClassDescriptor cds,
java.lang.String sql,
boolean scrollable,
int explicitFetchSizeHint,
boolean callableStmt)
Return a PreparedStatement for selecting against the given ClassDescriptor. |
java.sql.PreparedStatement |
getSelectByPKStatement(ClassDescriptor cds)
return a prepared Select Statement for the given ClassDescriptor |
java.sql.PreparedStatement |
getUpdateStatement(ClassDescriptor cds)
return a prepared Update Statement fitting to the given ClassDescriptor |
Field Detail |
---|
static final int FETCH_SIZE_NOT_APPLICABLE
static final int FETCH_SIZE_NOT_EXPLICITLY_SET
Method Detail |
---|
void bindDelete(java.sql.PreparedStatement stmt, Identity oid, ClassDescriptor cld) throws java.sql.SQLException
stmt
- oid
- cld
- ClassDescriptor for the Object, if null will be lookup automatic
java.sql.SQLException
void bindDelete(java.sql.PreparedStatement stmt, ClassDescriptor cld, java.lang.Object obj) throws java.sql.SQLException
java.sql.SQLException
int bindStatement(java.sql.PreparedStatement stmt, Query query, ClassDescriptor cld, int param) throws java.sql.SQLException
java.sql.SQLException
void bindInsert(java.sql.PreparedStatement stmt, ClassDescriptor cld, java.lang.Object obj) throws java.sql.SQLException
java.sql.SQLException
void bindSelect(java.sql.PreparedStatement stmt, Identity oid, ClassDescriptor cld, boolean callableStmt) throws java.sql.SQLException
stmt
- oid
- cld
- ClassDescriptor for the Object, if null will be lookup automaticcallableStmt
- Indicate if the specified PreparedStatement
is a CallableStatement
supporting stored procedures.
java.sql.SQLException
void bindUpdate(java.sql.PreparedStatement stmt, ClassDescriptor cld, java.lang.Object obj) throws java.sql.SQLException
java.sql.SQLException
int bindValues(java.sql.PreparedStatement stmt, ValueContainer[] valueContainer, int index) throws java.sql.SQLException
java.sql.SQLException
java.sql.PreparedStatement getDeleteStatement(ClassDescriptor cds) throws PersistenceBrokerSQLException
PersistenceBrokerSQLException
java.sql.Statement getGenericStatement(ClassDescriptor cds, boolean scrollable) throws PersistenceBrokerException
PersistenceBrokerException
java.sql.PreparedStatement getInsertStatement(ClassDescriptor cds) throws PersistenceBrokerSQLException
PersistenceBrokerSQLException
java.sql.PreparedStatement getPreparedStatement(ClassDescriptor cds, java.lang.String sql, boolean scrollable, int explicitFetchSizeHint, boolean callableStmt) throws PersistenceBrokerException
PersistenceBrokerException
java.sql.PreparedStatement getSelectByPKStatement(ClassDescriptor cds) throws PersistenceBrokerSQLException
PersistenceBrokerSQLException
java.sql.PreparedStatement getUpdateStatement(ClassDescriptor cds) throws PersistenceBrokerSQLException
PersistenceBrokerSQLException
void closeResources(java.sql.Statement stmt, java.sql.ResultSet rs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |