Uses of Interface
org.apache.cayenne.ObjectId
Package
Description
Contains persistence APIs directly accessible by users.
Contains classes that make up Cayenne ORM stack.
Property API
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.
General utility classes.
-
Uses of ObjectId in org.apache.cayenne
Modifier and TypeMethodDescriptionObjectId.createReplacementId()
DataRow.createTargetObjectId
(String entityName, DbRelationship relationship) Returns an ObjectId of an object on the other side of the to-one relationship, for this DataRow representing a source of relationship.Persistent.getObjectId()
PersistentObject.getObjectId()
static ObjectId
Creates a temporary ObjectId for a given entity.static ObjectId
Creates a temporary ObjectId for a given entity, using provided unique id key.static ObjectId
Creates a single key/value permanent ObjectId.static ObjectId
Creates an ObjectId, potentially mapped to multiple columns.static ObjectId
Creates an ObjectId using another id as a template, but for a different entity.Modifier and TypeMethodDescriptionstatic Object
Cayenne.objectForPK
(ObjectContext context, ObjectId id) Returns an object matching ObjectId.static ObjectId
Creates an ObjectId using another id as a template, but for a different entity.void
Persistent.setObjectId
(ObjectId id) void
PersistentObject.setObjectId
(ObjectId objectId) -
Uses of ObjectId in org.apache.cayenne.access
Modifier and TypeFieldDescriptionprotected ConcurrentMap
<ObjectId, DataRow> DataRowStore.snapshots
ObjectStore.trackedFlattenedPaths
Map that tracks flattened paths for given object Id that is present in db.Modifier and TypeMethodDescriptionObjectDiff.getArcSnapshotValue
(String propertyName) ObjectDiff.getCurrentArcSnapshotValue
(String propertyName) OptimisticLockException.getFailedObjectId()
Returns the ObjectId of the object that caused the OptimisticLockException.ObjectStore.getFlattenedId
(ObjectId objectId, String path) Modifier and TypeMethodDescriptionObjectStore.getFlattenedIds
(ObjectId objectId) ObjectStore.getFlattenedPathIdMap
(ObjectId objectId) Modifier and TypeMethodDescriptionvoid
DataRowStore.forgetSnapshot
(ObjectId id) Evicts a snapshot from cache without generating any SnapshotEvents.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.getFlattenedId
(ObjectId objectId, String path) ObjectStore.getFlattenedIds
(ObjectId objectId) ObjectStore.getFlattenedPathIdMap
(ObjectId objectId) ObjectStore.getSnapshot
(ObjectId oid) Returns a snapshot for ObjectId from the underlying snapshot cache.void
ObjectStore.markFlattenedPath
(ObjectId objectId, String path, ObjectId id) Mark that flattened path for object has data row in DB.default void
OperationObserver.nextGeneratedRows
(Query query, ResultIterator<?> keys, ObjectId idToUpdate) Deprecated.Modifier and TypeMethodDescriptionvoid
OperationObserver.nextGeneratedRows
(Query query, ResultIterator<?> keys, List<ObjectId> idsToUpdate) Callback method invoked after each batch of generated values is read during an update.void
DataRowStore.processSnapshotChanges
(Object postedBy, Map<ObjectId, DataRow> updatedSnapshots, Collection<ObjectId> deletedSnapshotIds, Collection<ObjectId> invalidatedSnapshotIds, Collection<ObjectId> indirectlyModifiedIds) Processes changes made to snapshots.void
DataRowStore.processSnapshotChanges
(Object postedBy, Map<ObjectId, DataRow> updatedSnapshots, Collection<ObjectId> deletedSnapshotIds, Collection<ObjectId> invalidatedSnapshotIds, Collection<ObjectId> indirectlyModifiedIds) Processes changes made to snapshots.ModifierConstructorDescriptionOptimisticLockException
(ObjectId id, DbEntity rootEntity, String querySQL, Map qualifierSnapshot) -
Uses of ObjectId in org.apache.cayenne.access.event
Modifier and TypeFieldDescriptionprotected Collection
<ObjectId> SnapshotEvent.deletedIds
protected Collection
<ObjectId> SnapshotEvent.indirectlyModifiedIds
protected Collection
<ObjectId> SnapshotEvent.invalidatedIds
SnapshotEvent.modifiedDiffs
Modifier and TypeMethodDescriptionSnapshotEvent.getDeletedIds()
SnapshotEvent.getIndirectlyModifiedIds()
SnapshotEvent.getInvalidatedIds()
SnapshotEvent.getModifiedDiffs()
ModifierConstructorDescriptionSnapshotEvent
(Object source, Object postedBy, Map<ObjectId, DataRow> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) SnapshotEvent
(Object source, Object postedBy, Map<ObjectId, DataRow> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) -
Uses of ObjectId in org.apache.cayenne.access.flush
-
Uses of ObjectId in org.apache.cayenne.access.flush.operation
Modifier and TypeMethodDescriptionBaseDbRowOp.getChangeId()
DbRowOp.getChangeId()
static ObjectId
OpIdFactory.idForOperation
(ObjectId originalId) Modifier and TypeMethodDescriptionvoid
Values.addFlattenedId
(String path, ObjectId id) static ObjectId
OpIdFactory.idForOperation
(ObjectId originalId) void
DeleteDbRowOp.setChangeId
(ObjectId changeId) ModifierConstructorDescriptionprotected
BaseDbRowOp
(Persistent object, DbEntity entity, ObjectId id) DeleteDbRowOp
(Persistent object, DbEntity entity, ObjectId id) InsertDbRowOp
(Persistent object, DbEntity entity, ObjectId id) UpdateDbRowOp
(Persistent object, DbEntity entity, ObjectId id) -
Uses of ObjectId in org.apache.cayenne.access.util
Modifier and TypeMethodDescriptionvoid
DefaultOperationObserver.nextGeneratedRows
(Query query, ResultIterator<?> keys, List<ObjectId> idsToUpdate) Closes ResultIterator without reading its data.void
DoNothingOperationObserver.nextGeneratedRows
(Query query, ResultIterator<?> keys, List<ObjectId> idsToUpdate) -
Uses of ObjectId in org.apache.cayenne.exp.property
-
Uses of ObjectId in org.apache.cayenne.map
Modifier and TypeMethodDescriptionboolean
DbEntity.isFullReplacementIdAttached
(ObjectId id) Returns true if there is full replacement id is attached to an ObjectId. -
Uses of ObjectId in org.apache.cayenne.query
Modifier and TypeFieldDescriptionprotected ObjectId
BatchQueryRow.objectId
protected ObjectId
ObjectIdQuery.objectId
protected ObjectId
RelationshipQuery.objectId
Modifier and TypeMethodDescriptionBatchQueryRow.getObjectId()
ObjectIdQuery.getObjectId()
RelationshipQuery.getObjectId()
Modifier and TypeMethodDescriptionvoid
Adds a snapshot to batch.void
UpdateBatchQuery.add
(Map<String, Object> qualifierSnapshot, Map<String, Object> updateSnapshot, ObjectId id) Adds a parameter row to the batch.static SelectById
<DataRow> SelectById.dataRowQuery
(ObjectId id) static SelectById
<DataRow> SelectById.dataRowQuery
(ObjectId firstId, ObjectId... otherIds) static <T> SelectById
<T> static <T> SelectById
<T> ModifierConstructorDescriptionBatchQueryRow
(ObjectId objectId, Map<String, Object> qualifier) protected
MultiMapIdSpec
(ObjectId firstId, ObjectId... otherIds) ObjectIdQuery
(ObjectId objectID) Creates a refreshing ObjectIdQuery.ObjectIdQuery
(ObjectId objectId, boolean fetchingDataRows, int cachePolicy) Creates a new ObjectIdQuery.RelationshipQuery
(ObjectId objectID, String relationshipName) Creates a RelationshipQuery.RelationshipQuery
(ObjectId objectID, String relationshipName, boolean refreshing) Creates a RelationshipQuery. -
Uses of ObjectId in org.apache.cayenne.util
Modifier and TypeMethodDescriptionprotected Object
ObjectContextQueryAction.polymorphicObjectFromCache
(ObjectId superOid)
OperationObserver.nextGeneratedRows(Query, ResultIterator, List)