Package | Description |
---|---|
org.apache.cayenne |
Contains persistence APIs directly accessible by users.
|
org.apache.cayenne.access |
Contains classes that make up Cayenne ORM stack.
|
org.apache.cayenne.map |
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
|
Modifier and Type | Method and Description |
---|---|
DataRow |
DataRow.applyDiff(DataRow diff)
Builds a new DataRow, merging changes from
diff parameter with data
contained in this DataRow. |
DataRow |
DataRow.createDiff(DataRow row)
Creates a DataRow that contains only the keys that have values that differ between
this object and
row parameter. |
Modifier and Type | Method and Description |
---|---|
DataRow |
DataRow.applyDiff(DataRow diff)
Builds a new DataRow, merging changes from
diff parameter with data
contained in this DataRow. |
DataRow |
DataRow.createDiff(DataRow row)
Creates a DataRow that contains only the keys that have values that differ between
this object and
row parameter. |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<ObjectId,DataRow> |
DataRowStore.snapshots |
Modifier and Type | Method and Description |
---|---|
DataRow |
DataContext.currentSnapshot(Persistent object)
Returns a DataRow reflecting current, possibly uncommitted, object state.
|
DataRow |
DataRowStore.getCachedSnapshot(ObjectId oid)
Returns cached snapshot or null if no snapshot is currently cached for the given
ObjectId.
|
DataRow |
ObjectStore.getCachedSnapshot(ObjectId oid)
Returns a snapshot for ObjectId from the underlying snapshot cache.
|
DataRow |
ObjectStore.getSnapshot(ObjectId oid)
Returns a snapshot for ObjectId from the underlying snapshot cache.
|
Modifier and Type | Method and Description |
---|---|
<T extends DataObject> |
DataContext.objectFromDataRow(Class<T> objectClass,
DataRow dataRow)
Creates a DataObject from DataRow.
|
<T extends DataObject> |
DataContext.objectFromDataRow(Class<T> objectClass,
DataRow dataRow,
boolean refresh)
Deprecated.
Use objectFromDataRow(Class
|
DataObject |
DataContext.objectFromDataRow(String entityName,
DataRow dataRow)
Creates a DataObject from DataRow.
|
DataObject |
DataContext.objectFromDataRow(String entityName,
DataRow dataRow,
boolean refresh)
Deprecated.
Use objectFromDataRow(String entityName, DataRow dataRow) instead.
|
boolean |
DataContextDelegate.shouldMergeChanges(DataObject object,
DataRow snapshotInStore)
Invoked by parent DataContext whenever an object change is detected.
|
Modifier and Type | Method and Description |
---|---|
List |
DataContext.objectsFromDataRows(ClassDescriptor descriptor,
List<? extends DataRow> dataRows)
Converts a list of DataRows to a List of DataObject registered with this
DataContext.
|
Modifier and Type | Method and Description |
---|---|
ObjEntity |
EntityInheritanceTree.entityMatchingRow(DataRow row)
Returns the deepest possible entity in the inheritance hierarchy that can be used
to create objects from a given DataRow.
|
Copyright © 2001–2018 Apache Cayenne. All rights reserved.