Uses of Class
org.apache.cayenne.DataRow
Packages that use DataRow
-
Uses of DataRow in org.apache.cayenne
Methods in org.apache.cayenne that return DataRowModifier and TypeMethodDescriptionObjectStore.getCachedSnapshot(ObjectId oid) Returns a committed snapshot of an object with the id from the cache, or null if it is not cached.ObjectStore.getSnapshot(ObjectId oid) Returns a committed snapshot of an object with the id, fetching it from the database if needed.Returns a row with this row's entity name and the given version, holding this row's values overlaid with the given ones.static DataRowDataRow.of(String entityName, DataRowLayout layout, Object[] values, long version) Creates a row over the given values laid out by the given layout, with the given entity name and snapshot version.DataRow.withEntityName(String entityName) Returns a row with the given entity name and this row's values and version.Methods in org.apache.cayenne with parameters of type DataRowModifier and TypeMethodDescriptionReturns the value of the i-th column of the reader's layout in the row, or null if the row has no such column.booleanReturns whether the row has the i-th column of the reader's layout. -
Uses of DataRow in org.apache.cayenne.access
Fields in org.apache.cayenne.access with type parameters of type DataRowModifier and TypeFieldDescriptionprotected final ConcurrentMap<ObjectId, DataRow> DataRowStore.snapshotsMethods in org.apache.cayenne.access that return DataRowModifier and TypeMethodDescriptionDataContext.currentSnapshot(Persistent object) Returns aDataRowreflecting current, possibly uncommitted, object state.DataContextObjectStore.getCachedSnapshot(ObjectId oid) Returns a snapshot for ObjectId from the underlying snapshot cache, or null if the cache contains no snapshot.DataRowStore.getCachedSnapshot(ObjectId oid) Returns cached snapshot or null if no snapshot is currently cached for the given ObjectId.DataContextObjectStore.getSnapshot(ObjectId oid) Returns a snapshot for ObjectId from the underlying snapshot cache.static DataRowObjectSnapshots.snapshot(DataContext context, Persistent object, long version) Returns aDataRowreflecting the current, possibly uncommitted, state of an object registered in the given context, with the given snapshot version.Methods in org.apache.cayenne.access with parameters of type DataRowModifier and TypeMethodDescription<T extends Persistent>
TDataContext.objectFromDataRow(Class<T> objectClass, DataRow dataRow) Creates a Persistent from DataRow.DataContext.objectFromDataRow(String entityName, DataRow dataRow) Creates a Persistent from DataRow.Method parameters in org.apache.cayenne.access with type arguments of type DataRowModifier and TypeMethodDescriptiondefault voidCallback method invoked after each batch of generated values is read during an update.DataContext.objectsFromDataRows(ClassDescriptor descriptor, List<? extends DataRow> dataRows) Converts a list of DataRows to a List of Persistent registered with this DataContext.voidDataRowStore.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.query
Methods in org.apache.cayenne.query that return types with arguments of type DataRowModifier and TypeMethodDescriptionstatic ObjectSelect<DataRow> ObjectSelect.dataRowQuery(Class<?> entityType) Creates a ObjectSelect that fetches data for anObjEntitydetermined from a provided class.static ObjectSelect<DataRow> ObjectSelect.dataRowQuery(Class<?> entityType, Expression expression) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQuery(Class<?> entityType, Object firstId, Object... otherIds) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQuery(Class<?> entityType, Map<String, ?> id) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQuery(ObjectId id) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQuery(ObjectId firstId, ObjectId... otherIds) Deprecated, for removal: This API element is subject to removal in a future version.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 SelectById<DataRow> SelectById.dataRowQueryId(Class<?> entityType, Object id) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryIds(Class<?> entityType, Object... ids) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryIdsCollection(Class<?> entityType, Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryMap(Class<?> entityType, Map<String, ?> id) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryMaps(Class<?> entityType, Map<String, ?>... ids) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryMapsCollection(Class<?> entityType, Collection<Map<String, ?>> ids) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryObjectId(ObjectId id) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryObjectIds(ObjectId... ids) Deprecated, for removal: This API element is subject to removal in a future version.static SelectById<DataRow> SelectById.dataRowQueryObjectIdsCollection(Collection<ObjectId> ids) Deprecated, for removal: This API element is subject to removal in a future version.static ObjectSelect<DataRow> Creates a ObjectSelect that fetches DataRows for aDbEntitydetermined from provided "dbEntityName".static ObjectSelect<DataRow> ObjectSelect.dbQuery(String dbEntityName, Expression expression) Deprecated, for removal: This API element is subject to removal in a future version.useObjectSelect.dbQuery(String)and thenFluentSelect.whereObjectSelect.fetchDataRows()Forces query to fetch DataRows.static ProcedureCall<DataRow> Creates procedure call using name of stored procedure defined in the mapping file.
ObjectSelect.dataRowQuery(Class)and thenFluentSelect.where