|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.QueryTranslator
org.apache.cayenne.access.trans.QueryAssembler
org.apache.cayenne.access.trans.InsertTranslator
public class InsertTranslator
Class implements default translation mechanism of org.apache.cayenne.query.InsertQuery objects to SQL INSERT statements. Note that in order for this query to execute successfully, ObjectId contained within InsertQuery must be fully initialized.
Field Summary | |
---|---|
protected java.util.List |
columnList
Deprecated. |
Fields inherited from class org.apache.cayenne.access.trans.QueryAssembler |
---|
attributes, values |
Fields inherited from class org.apache.cayenne.access.QueryTranslator |
---|
adapter, connection, engine, entityResolver, query |
Constructor Summary | |
---|---|
InsertTranslator()
Deprecated. |
Method Summary | |
---|---|
java.lang.String |
aliasForTable(DbEntity dbEnt)
Deprecated. Returns a name that can be used as column alias. |
java.lang.String |
createSqlString()
Deprecated. Method that converts an insert query into SQL string |
void |
dbRelationshipAdded(DbRelationship dbRel)
Deprecated. Processes a join being added. |
InsertQuery |
insertQuery()
Deprecated. |
protected void |
prepareLists()
Deprecated. Creates 2 matching lists: columns names and values |
Methods inherited from class org.apache.cayenne.access.trans.QueryAssembler |
---|
addToParamList, aliasForTable, createStatement, initStatement, supportsTableAliases |
Methods inherited from class org.apache.cayenne.access.QueryTranslator |
---|
createStatement, getAdapter, getCon, getConnection, getEngine, getEntityResolver, getQuery, getRootDbEntity, getRootEntity, getRootInheritanceTree, setAdapter, setCon, setConnection, setEngine, setEntityResolver, setQuery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List columnList
Constructor Detail |
---|
public InsertTranslator()
Method Detail |
---|
public java.lang.String aliasForTable(DbEntity dbEnt)
QueryAssembler
aliasForTable
in class QueryAssembler
public void dbRelationshipAdded(DbRelationship dbRel)
QueryAssembler
dbRelationshipAdded
in class QueryAssembler
public java.lang.String createSqlString() throws java.lang.Exception
createSqlString
in class QueryAssembler
java.lang.Exception
public InsertQuery insertQuery()
protected void prepareLists() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |