|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.access.trans.QueryAssembler
org.apache.cayenne.access.trans.UpdateTranslator
public class UpdateTranslator
Class implements default translation mechanism of org.apache.cayenne.query.UpdateQuery objects to SQL UPDATE statements.
| Field Summary |
|---|
| Fields inherited from class org.apache.cayenne.access.trans.QueryAssembler |
|---|
adapter, attributes, connection, entityResolver, query, values |
| Constructor Summary | |
|---|---|
UpdateTranslator()
Deprecated. |
|
| Method Summary | |
|---|---|
String |
createSqlString()
Deprecated. Method that converts an update query into SQL string |
void |
dbRelationshipAdded(DbRelationship relationship,
JoinType joinType,
String joinSplitAlias)
Deprecated. Appends a join with given semantics to the query. |
String |
getCurrentAlias()
Deprecated. Returns an alias of the table which is currently at the top of the join stack. |
DbEntity |
getRootDbEntity()
Deprecated. |
ObjEntity |
getRootEntity()
Deprecated. |
void |
resetJoinStack()
Deprecated. A callback invoked by a child qualifier or ordering processor allowing query assembler to reset its join stack. |
| Methods inherited from class org.apache.cayenne.access.trans.QueryAssembler |
|---|
addToParamList, createStatement, getAdapter, getEntityResolver, getPathAliases, getQuery, getRootInheritanceTree, initStatement, setAdapter, setConnection, setEntityResolver, setQuery, supportsTableAliases |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateTranslator()
| Method Detail |
|---|
public void dbRelationshipAdded(DbRelationship relationship,
JoinType joinType,
String joinSplitAlias)
QueryAssembler
dbRelationshipAdded in class QueryAssemblerpublic DbEntity getRootDbEntity()
getRootDbEntity in class QueryAssemblerpublic ObjEntity getRootEntity()
getRootEntity in class QueryAssemblerpublic String getCurrentAlias()
QueryAssembler
getCurrentAlias in class QueryAssemblerpublic void resetJoinStack()
QueryAssembler
resetJoinStack in class QueryAssembler
public String createSqlString()
throws Exception
createSqlString in class QueryAssemblerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||