Uses of Class
org.apache.cayenne.DataRow
Package
Description
Contains persistence APIs directly accessible by users.
Contains classes that make up Cayenne ORM stack.
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
-
Uses of DataRow in org.apache.cayenne
Modifier and TypeMethodDescriptionBuilds a new DataRow, merging changes fromdiff
parameter with data contained in this DataRow.DataRow.createDiff
(DataRow row) Creates a DataRow that contains only the keys that have values that differ between this object androw
parameter.Modifier and TypeMethodDescriptionBuilds a new DataRow, merging changes fromdiff
parameter with data contained in this DataRow.DataRow.createDiff
(DataRow row) Creates a DataRow that contains only the keys that have values that differ between this object androw
parameter. -
Uses of DataRow in org.apache.cayenne.access
Modifier and TypeFieldDescriptionprotected ConcurrentMap
<ObjectId, DataRow> DataRowStore.snapshots
Modifier and TypeMethodDescriptionDataContext.currentSnapshot
(Persistent object) Returns a DataRow reflecting current, possibly uncommitted, object state.DataRowStore.getCachedSnapshot
(ObjectId oid) Returns cached snapshot or null if no snapshot is currently cached for the given ObjectId.ObjectStore.getCachedSnapshot
(ObjectId oid) Returns a snapshot for ObjectId from the underlying snapshot cache.ObjectStore.getSnapshot
(ObjectId oid) Returns a snapshot for ObjectId from the underlying snapshot cache.Modifier and TypeMethodDescription<T extends Persistent>
TDataContext.objectFromDataRow
(Class<T> objectClass, DataRow dataRow) Creates a DataObject from DataRow.DataContext.objectFromDataRow
(String entityName, DataRow dataRow) Creates a DataObject from DataRow.boolean
DataContextDelegate.shouldMergeChanges
(DataObject object, DataRow snapshotInStore) Invoked by parent DataContext whenever an object change is detected.Modifier and TypeMethodDescriptionDataContext.objectsFromDataRows
(ClassDescriptor descriptor, List<? extends DataRow> dataRows) Converts a list of DataRows to a List of DataObject registered with this DataContext.void
DataRowStore.processSnapshotChanges
(Object postedBy, Map<ObjectId, DataRow> updatedSnapshots, Collection<ObjectId> deletedSnapshotIds, Collection<ObjectId> invalidatedSnapshotIds, Collection<ObjectId> indirectlyModifiedIds) Processes changes made to snapshots. -
Uses of DataRow in org.apache.cayenne.access.event
ModifierConstructorDescriptionSnapshotEvent
(Object source, Object postedBy, Map<ObjectId, DataRow> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) -
Uses of DataRow in org.apache.cayenne.map
Modifier and TypeMethodDescriptionEntityInheritanceTree.entityMatchingRow
(DataRow row) Returns the deepest possible entity in the inheritance hierarchy that can be used to create objects from a given DataRow. -
Uses of DataRow in org.apache.cayenne.query
Modifier and TypeMethodDescriptionstatic ObjectSelect
<DataRow> ObjectSelect.dataRowQuery
(Class<?> entityType) Creates a ObjectSelect that fetches data for anObjEntity
determined from a provided class.static ObjectSelect
<DataRow> ObjectSelect.dataRowQuery
(Class<?> entityType, Expression expression) Creates a ObjectSelect that fetches data for anObjEntity
determined from a provided class and uses provided expression for its qualifier.static ProcedureCall
<DataRow> ProcedureCall.dataRowQuery
(String procedure) Creates procedure call returning data rows using name of stored procedure defined in the mapping file.static SelectById
<DataRow> SelectById.dataRowQuery
(Class<?> entityType, Object id) static SelectById
<DataRow> SelectById.dataRowQuery
(Class<?> entityType, Object firstId, Object... otherIds) static SelectById
<DataRow> SelectById.dataRowQuery
(Class<?> entityType, Map<String, ?> id) static SelectById
<DataRow> static SelectById
<DataRow> SelectById.dataRowQuery
(ObjectId id) static SelectById
<DataRow> SelectById.dataRowQuery
(ObjectId firstId, ObjectId... otherIds) static SelectQuery
<DataRow> SelectQuery.dataRowQuery
(Class<?> rootClass) Deprecated.static SelectQuery
<DataRow> SelectQuery.dataRowQuery
(Class<?> rootClass, Expression qualifier) Deprecated.Creates a SelectQuery that selects DataRows that correspond to a given persistent class that match supplied qualifier.static SelectQuery
<DataRow> SelectQuery.dataRowQuery
(Class<?> rootClass, Expression qualifier, List<Ordering> orderings) Deprecated.SQLSelect.dataRowQuery
(String sql) Creates a query that selects DataRows and uses default routing.SQLSelect.dataRowQuery
(String sql, Class<?>... types) Creates a query that selects DataRows and uses default routing.SQLSelect.dataRowQuery
(String dataMapName, String sql) Creates a query that selects DataRows and uses routing based on the provided DataMap name.SQLSelect.dataRowQuery
(String dataMapName, String sql, Class<?>... types) Creates a query that selects DataRows and uses routing based on the provided DataMap name.static ObjectSelect
<DataRow> Creates a ObjectSelect that fetches DataRows for aDbEntity
determined from provided "dbEntityName".static ObjectSelect
<DataRow> ObjectSelect.dbQuery
(String dbEntityName, Expression expression) Creates a ObjectSelect that fetches DataRows for aDbEntity
determined from provided "dbEntityName" and uses provided expression for its qualifier.ObjectSelect.fetchDataRows()
Forces query to fetch DataRows.