|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.broker.accesslayer.SqlGenerator
This Class is responsible for building sql statements Objects fields and their repective values are accessed by Java reflection
Method Summary | |
protected java.lang.String |
asSQLClause(SelectionCriteria c,
ClassDescriptor cld)
Answer the SQL-Clause for a SelectionCriteria |
java.lang.String |
asSQLStatement(Criteria crit,
ClassDescriptor cld)
|
java.lang.String |
getDeleteStatement(java.lang.String table,
java.lang.Object[] columns,
java.lang.Object[] values)
generate a prepared DELETE-Statement for the Class described by mif |
java.lang.String |
getInsertStatement(java.lang.String table,
java.lang.Object[] columns,
java.lang.Object[] values)
generate a prepared INSERT-Statement for the Class described by mif |
static SqlGenerator |
getInstance()
returns the singleton instance |
java.lang.String |
getPreparedCountStatement(Query query,
ClassDescriptor mif)
generate a Count(*) statement BRJ |
java.lang.String |
getPreparedDeleteStatement(ClassDescriptor mif)
generate a prepared DELETE-Statement for the Class described by mif. |
java.lang.String |
getPreparedInsertStatement(ClassDescriptor mif)
generate a prepared INSERT-Statement for the Class described by mif. |
java.lang.String |
getPreparedSelectByPkStatement(ClassDescriptor mif)
generate a prepared SELECT-Statement for the Class described by mif |
java.lang.String |
getPreparedSelectStatement(Query query,
ClassDescriptor mif)
generate a select-Statement according to the constraints given by the values in vecValues that correspond to the fields in vecFields |
java.lang.String |
getPreparedUpdateStatement(ClassDescriptor mif)
generate a prepared UPDATE-Statement for the Class described by mif |
java.lang.String |
getSelectStatementDep(Query query,
ClassDescriptor mif)
generate a select-Statement according to the constraints given by the values in vecValues that correspond to the fields in vecFields |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SqlGenerator getInstance()
protected java.lang.String asSQLClause(SelectionCriteria c, ClassDescriptor cld)
c
- SelectionCriteriacld
- ClassDescriptorpublic java.lang.String asSQLStatement(Criteria crit, ClassDescriptor cld)
public java.lang.String getPreparedCountStatement(Query query, ClassDescriptor mif)
public java.lang.String getPreparedDeleteStatement(ClassDescriptor mif)
mif
- the ClassDescriptorpublic java.lang.String getPreparedInsertStatement(ClassDescriptor mif)
mif
- the ClassDescriptorpublic java.lang.String getPreparedSelectByPkStatement(ClassDescriptor mif)
mif
- the ClassDescriptorpublic java.lang.String getPreparedSelectStatement(Query query, ClassDescriptor mif)
public java.lang.String getPreparedUpdateStatement(ClassDescriptor mif)
mif
- the ClassDescriptorpublic java.lang.String getInsertStatement(java.lang.String table, java.lang.Object[] columns, java.lang.Object[] values)
public java.lang.String getDeleteStatement(java.lang.String table, java.lang.Object[] columns, java.lang.Object[] values)
public java.lang.String getSelectStatementDep(Query query, ClassDescriptor mif)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |