|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.persist.sqlConstruction.SqlModifierBuilder
Utility class to builder SQL statements that will modify database table entries.
Nested Class Summary | |
static class |
SqlModifierBuilder.Test
|
Constructor Summary | |
SqlModifierBuilder()
|
Method Summary | |
protected void |
buildAttributeModifierValues(SQLModifier sql,
RDBPersistence pObj,
Persistence p)
Inserts and updates need to add the columns and the values of the columns to the sql object. |
void |
buildDeleteStatement(SQLDelete sql,
RDBPersistence obj)
Builds a delete sql object. |
protected void |
buildDeleteWhereClause(SQLDelete sql,
RDBPersistence obj)
Builds the where clause for a delete sql object. |
protected void |
buildForeignKeyModifierValues(SQLModifier sql,
RDBPersistence pObj,
Persistence p)
Check all of the foreignKey fields in pObj for its update values. |
void |
buildInsertStatement(SQLInsert sql,
RDBPersistence pObj,
Persistence p)
Create the SQLAssembler that will enable us to create an insert statement. |
protected void |
buildInstanceLinkModifierValues(SQLModifier sql,
RDBPersistence pObj,
Persistence p)
Check all of the instance link references of pObj for its update values. |
void |
buildUpdateStatement(SQLUpdate sql,
RDBPersistence pObj,
Persistence p)
Create a sql object that will be used to generate the sql statement. |
protected void |
buildUpdateWhereClause(SQLUpdate sql,
RDBPersistence obj)
|
protected static void |
buildWhereClause(SQLObject sql,
RDBPersistence obj)
Builds the where clause for a sql object. |
protected java.lang.Object |
convertObjectReference(Persistence reference,
RDBPersistence pObj,
Persistence obj,
java.lang.reflect.Field joinOn)
Convert a "Persistence" object into the simple numeric value that is to go into the database. |
RDBBroker |
getBroker()
|
static SqlModifierBuilder |
getInstance(java.lang.String instanceType)
|
void |
setBroker(RDBBroker newValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SqlModifierBuilder()
Method Detail |
public static SqlModifierBuilder getInstance(java.lang.String instanceType)
instanceType
-
protected static void buildWhereClause(SQLObject sql, RDBPersistence obj)
sql
- obj
- public void setBroker(RDBBroker newValue)
newValue
- com.objectwave.persist.RDBBrokerpublic RDBBroker getBroker()
public void buildDeleteStatement(SQLDelete sql, RDBPersistence obj)
obj
- The object to delete.sql
- SQLDelete The instance that will be able to create the sql
statement.public void buildInsertStatement(SQLInsert sql, RDBPersistence pObj, Persistence p)
sql
- pObj
- p
- public void buildUpdateStatement(SQLUpdate sql, RDBPersistence pObj, Persistence p)
sql
- pObj
- p
- protected void buildAttributeModifierValues(SQLModifier sql, RDBPersistence pObj, Persistence p)
sql
- The sql object that will ultimately generate the sql statement.pObj
- Object with which we are inserting/updating the database.p
- com.objectwave.persist.SQLUpdate
,
com.objectwave.persist.SQLInsert
,
com.objectwave.persist.SQLModifier
protected void buildDeleteWhereClause(SQLDelete sql, RDBPersistence obj)
sql
- obj
- protected void buildForeignKeyModifierValues(SQLModifier sql, RDBPersistence pObj, Persistence p)
sql
- pObj
- p
- protected void buildInstanceLinkModifierValues(SQLModifier sql, RDBPersistence pObj, Persistence p)
sql
- pObj
- p
- protected void buildUpdateWhereClause(SQLUpdate sql, RDBPersistence obj)
sql
- obj
- protected java.lang.Object convertObjectReference(Persistence reference, RDBPersistence pObj, Persistence obj, java.lang.reflect.Field joinOn)
reference
- pObj
- obj
- joinOn
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |