|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> [ query overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.objectstyle.cayenne.query
Class UpdateQuery

java.lang.Objectorg.objectstyle.cayenne.query.AbstractQuery
org.objectstyle.cayenne.query.QualifiedQuery
org.objectstyle.cayenne.query.UpdateQuery
- All Implemented Interfaces:
- Query
- public class UpdateQuery
- extends QualifiedQuery
Object encapsulating an UPDATE statement. Note that updated attributes are expressed in terms of DbAttribute names.
| Field Summary | |
protected java.util.Map |
updAttributes
|
| Fields inherited from class org.objectstyle.cayenne.query.QualifiedQuery |
qualifier |
| Fields inherited from class org.objectstyle.cayenne.query.AbstractQuery |
logLevel, root |
| Fields inherited from interface org.objectstyle.cayenne.query.Query |
DEFAULT_LOG_LEVEL, DELETE_QUERY, INSERT_QUERY, SELECT_QUERY, UNKNOWN_QUERY, UPDATE_QUERY |
| Constructor Summary | |
UpdateQuery()
Creates empty UpdateQuery. |
|
UpdateQuery(java.lang.Class rootClass)
Creates a UpdateQuery with null qualifier, for the entity which uses the given class |
|
UpdateQuery(java.lang.Class rootClass,
org.objectstyle.cayenne.exp.Expression qualifier)
Creates a UpdateQuery for the entity which uses the given class, with the given qualifier |
|
UpdateQuery(org.objectstyle.cayenne.map.ObjEntity root)
Creates a UpdateQuery with null qualifier, for the specifed ObjEntity |
|
UpdateQuery(org.objectstyle.cayenne.map.ObjEntity root,
org.objectstyle.cayenne.exp.Expression qualifier)
Creates a UpdateQuery for the specifed ObjEntity with the given qualifier |
|
UpdateQuery(java.lang.String objEntityName)
Creates UpdateQuery with objEntityName parameter. |
|
UpdateQuery(java.lang.String objEntityName,
org.objectstyle.cayenne.exp.Expression qualifier)
Creates UpdateQuery with objEntityName and qualifier parameters. |
|
| Method Summary | |
void |
addUpdAttribute(java.lang.String attrName,
java.lang.Object updatedValue)
|
int |
getQueryType()
Returns one of the values: SELECT_QUERY, INSERT_QUERY, UPDATE_QUERY, DELETE_QUERY |
java.util.Map |
getUpdAttributes()
Returns a map of updated attributes |
private void |
init(java.lang.Object root,
org.objectstyle.cayenne.exp.Expression qualifier)
|
| Methods inherited from class org.objectstyle.cayenne.query.QualifiedQuery |
andQualifier, getQualifier, orQualifier, setQualifier |
| Methods inherited from class org.objectstyle.cayenne.query.AbstractQuery |
getLoggingLevel, getRoot, setLoggingLevel, setRoot |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
updAttributes
protected java.util.Map updAttributes
| Constructor Detail |
UpdateQuery
public UpdateQuery()
- Creates empty UpdateQuery.
UpdateQuery
public UpdateQuery(org.objectstyle.cayenne.map.ObjEntity root)
- Creates a UpdateQuery with null qualifier, for the specifed ObjEntity
UpdateQuery
public UpdateQuery(org.objectstyle.cayenne.map.ObjEntity root, org.objectstyle.cayenne.exp.Expression qualifier)
- Creates a UpdateQuery for the specifed ObjEntity with the given qualifier
UpdateQuery
public UpdateQuery(java.lang.Class rootClass)
- Creates a UpdateQuery with null qualifier, for the entity which uses the given class
UpdateQuery
public UpdateQuery(java.lang.Class rootClass, org.objectstyle.cayenne.exp.Expression qualifier)
- Creates a UpdateQuery for the entity which uses the given class, with the given qualifier
UpdateQuery
public UpdateQuery(java.lang.String objEntityName)
- Creates UpdateQuery with
objEntityNameparameter.
UpdateQuery
public UpdateQuery(java.lang.String objEntityName, org.objectstyle.cayenne.exp.Expression qualifier)
- Creates UpdateQuery with
objEntityNameandqualifierparameters.
| Method Detail |
init
private void init(java.lang.Object root, org.objectstyle.cayenne.exp.Expression qualifier)
getQueryType
public int getQueryType()
- Description copied from interface:
Query - Returns one of the values: SELECT_QUERY, INSERT_QUERY,
UPDATE_QUERY, DELETE_QUERY
addUpdAttribute
public void addUpdAttribute(java.lang.String attrName, java.lang.Object updatedValue)
getUpdAttributes
public java.util.Map getUpdAttributes()
- Returns a map of updated attributes
|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> [ query overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC