Class Values
- java.lang.Object
-
- org.apache.cayenne.access.flush.operation.Values
-
public class Values extends Object
Collection of values that should be inserted or updated in DB.- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>attributeSnapshotprotected Map<String,Object>fkSnapshotprotected Map<String,ObjectId>flattenedIdsprotected booleanincludeIdprotected DbRowOprowprotected List<DbAttribute>updatedAttributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFlattenedId(String path, ObjectId id)voidaddValue(DbAttribute attribute, Object value, boolean fk)voidclear()Map<String,ObjectId>getFlattenedIds()Map<String,Object>getSnapshot()List<DbAttribute>getUpdatedAttributes()booleanisEmpty()booleanisSameBatch(Values other)voidmerge(Values other)
-
-
-
Field Detail
-
row
protected final DbRowOp row
-
includeId
protected final boolean includeId
-
updatedAttributes
protected List<DbAttribute> updatedAttributes
-
-
Constructor Detail
-
Values
public Values(DbRowOp row, boolean includeId)
-
-
Method Detail
-
addValue
public void addValue(DbAttribute attribute, Object value, boolean fk)
-
merge
public void merge(Values other)
-
getUpdatedAttributes
public List<DbAttribute> getUpdatedAttributes()
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
isSameBatch
public boolean isSameBatch(Values other)
-
-