|
||||||||||
| 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
public abstract class SqlPkStatement
Model simple Statements based on ClassDescriptor and/or PrimaryKey
| Field Summary | |
|---|---|
private WeakReference |
m_classDescriptor
|
private Logger |
m_logger
|
| Constructor Summary | |
|---|---|
SqlPkStatement(ClassDescriptor aCld,
Logger aLogger)
Constructor for SqlPkStatement. |
|
| Method Summary | |
|---|---|
protected void |
appendTable(ClassDescriptor cld,
StringBuffer stmt)
append table name |
protected void |
appendWhereClause(ClassDescriptor cld,
boolean useLocking,
StringBuffer stmt)
Generate a where clause for a prepared Statement. |
protected void |
appendWhereClause(FieldDescriptor[] fields,
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 |
| Field Detail |
|---|
private WeakReference m_classDescriptor
private Logger m_logger
| Constructor Detail |
|---|
public SqlPkStatement(ClassDescriptor aCld,
Logger aLogger)
| Method Detail |
|---|
protected void appendTable(ClassDescriptor cld,
StringBuffer stmt)
protected Logger getLogger()
protected ClassDescriptor getClassDescriptor()
protected void appendWhereClause(FieldDescriptor[] fields,
StringBuffer stmt)
throws PersistenceBrokerException
fields - array containing all columns used in WHERE clause
PersistenceBrokerException
protected void appendWhereClause(ClassDescriptor cld,
boolean useLocking,
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 | |||||||||