|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.accesslayer.sql.SqlPkStatement
Model simple Statements based on ClassDescriptor and/or PrimaryKey
| Constructor Summary | |
SqlPkStatement(ClassDescriptor aCld,
Logger aLogger)
Constructor for SqlPkStatement. |
|
| Method Summary | |
protected void |
appendTable(ClassDescriptor cld,
java.lang.StringBuffer stmt)
append table name |
protected void |
appendWhereClause(ClassDescriptor cld,
boolean useLocking,
java.lang.StringBuffer stmt)
Generate a where clause for a prepared Statement. |
protected void |
appendWhereClause(FieldDescriptor[] fields,
java.lang.StringBuffer stmt)
Generate a sql where-clause for the array of fields |
protected ClassDescriptor |
getClassDescriptor()
Returns the classDescriptor. |
protected Logger |
getLogger()
Returns the logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ojb.broker.accesslayer.sql.SqlStatement |
getStatement |
| Constructor Detail |
public SqlPkStatement(ClassDescriptor aCld,
Logger aLogger)
| Method Detail |
protected void appendTable(ClassDescriptor cld,
java.lang.StringBuffer stmt)
protected Logger getLogger()
protected ClassDescriptor getClassDescriptor()
protected void appendWhereClause(FieldDescriptor[] fields,
java.lang.StringBuffer stmt)
throws PersistenceBrokerException
fields - array containing all columns used in WHERE clause
PersistenceBrokerException
protected void appendWhereClause(ClassDescriptor cld,
boolean useLocking,
java.lang.StringBuffer stmt)
cld - the ClassDescriptoruseLocking - true if locking fields should be includedstmt - the StatementBuffer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||