|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.query.AbstractQuery
org.apache.cayenne.query.InsertQuery
public class InsertQuery
Describes insert database operation. InsertQuery is initialized with object values snapshot and ObjectId.
Field Summary | |
---|---|
protected ObjectId |
objectId
Deprecated. |
protected java.util.Map |
objectSnapshot
Deprecated. |
Fields inherited from class org.apache.cayenne.query.AbstractQuery |
---|
name, root |
Constructor Summary | |
---|---|
InsertQuery()
Deprecated. Creates empty InsertQuery. |
|
InsertQuery(java.lang.Class rootClass)
Deprecated. Creates InsertQuery with the rootClass as the root object |
|
InsertQuery(java.lang.Class rootClass,
java.util.Map dataRow)
Deprecated. Creates InsertQuery with the rootClass as the root object |
|
InsertQuery(ObjEntity rootEntity)
Deprecated. Creates InsertQuery with the rootEntity as the root object |
|
InsertQuery(java.lang.String objEntityName)
Deprecated. Creates InsertQuery with objEntityName parameter. |
Method Summary | |
---|---|
SQLAction |
createSQLAction(SQLActionVisitor visitor)
Deprecated. Calls "makeUpdate" on the visitor. |
QueryMetadata |
getMetaData(EntityResolver resolver)
Deprecated. Returns default select parameters. |
ObjectId |
getObjectId()
Deprecated. |
java.util.Map |
getObjectSnapshot()
Deprecated. |
void |
setObjectId(ObjectId objectId)
Deprecated. |
void |
setObjectSnapshot(java.util.Map objectSnapshot)
Deprecated. |
Methods inherited from class org.apache.cayenne.query.AbstractQuery |
---|
getName, getRoot, route, setName, setRoot, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ObjectId objectId
protected java.util.Map objectSnapshot
Constructor Detail |
---|
public InsertQuery()
public InsertQuery(ObjEntity rootEntity)
rootEntity
as the root object
public InsertQuery(java.lang.Class rootClass)
rootClass
as the root object
public InsertQuery(java.lang.Class rootClass, java.util.Map dataRow)
rootClass
as the root object
public InsertQuery(java.lang.String objEntityName)
objEntityName
parameter.
Method Detail |
---|
public QueryMetadata getMetaData(EntityResolver resolver)
AbstractQuery
getMetaData
in interface Query
getMetaData
in class AbstractQuery
public SQLAction createSQLAction(SQLActionVisitor visitor)
createSQLAction
in interface Query
createSQLAction
in class AbstractQuery
public java.util.Map getObjectSnapshot()
public void setObjectSnapshot(java.util.Map objectSnapshot)
public ObjectId getObjectId()
public void setObjectId(ObjectId objectId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |