Uses of Interface
org.apache.cayenne.ObjectId
Packages that use ObjectId
Package
Description
Property API
-
Uses of ObjectId in org.apache.cayenne
Fields in org.apache.cayenne declared as ObjectIdMethods in org.apache.cayenne that return ObjectIdModifier and TypeMethodDescriptionObjectId.createReplacementId()Persistent.getObjectId()PersistentObject.getObjectId()static ObjectIdCreates a temporary ObjectId for a given entity.static ObjectIdCreates a temporary ObjectId for a given entity, using provided unique id key.static ObjectIdCreates a single key/value permanent ObjectId.static ObjectIdCreates an ObjectId, potentially mapped to multiple columns.static ObjectIdCreates an ObjectId using another id as a template, but for a different entity.Methods in org.apache.cayenne with parameters of type ObjectIdModifier 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.Returns a registered object for the id, or null if no such object is registered.ObjectStore.getSnapshot(ObjectId oid) Returns a committed snapshot of an object with the id, fetching it from the database if needed.static ObjectCayenne.objectForPK(ObjectContext context, ObjectId id) Deprecated, for removal: This API element is subject to removal in a future version.ObjectContext.objectForPK(ObjectId id) Returns an object matching an ObjectId, or null if there's no such object.static ObjectIdCreates an ObjectId using another id as a template, but for a different entity.DataChannel.onIdQuery(ObjectContext context, ObjectId id) Resolves an object by id, returning it registered with the originating context.List<? extends Persistent> DataChannel.onRelationshipQuery(ObjectContext context, ObjectId sourceId, String relationshipName) Resolves objects related to a given object via a mapped relationship, returning them registered with the originating context.voidObjectStore.registerObject(ObjectId id, Persistent nodeObject) Registers an object under the id.voidPersistent.setObjectId(ObjectId id) voidPersistentObject.setObjectId(ObjectId objectId) ObjectStore.unregisterObject(ObjectId id) Unregisters an object with the id, forgetting any information associated with it.Method parameters in org.apache.cayenne with type arguments of type ObjectIdModifier and TypeMethodDescriptionvoidDataChannel.onInvalidate(ObjectContext context, Collection<ObjectId> objectIds) Invalidates objects with the given ids in this channel and all its parents, so that they are refetched on the next access. -
Uses of ObjectId in org.apache.cayenne.access
Fields in org.apache.cayenne.access with type parameters of type ObjectIdModifier and TypeFieldDescriptionprotected Map<ObjectId, ObjectDiff> DataContextObjectStore.changesprotected final Map<ObjectId, Persistent> DataContextObjectStore.objectMapprotected final ConcurrentMap<ObjectId, DataRow> DataRowStore.snapshotsprotected final Map<ObjectId, Map<CayennePath, ObjectId>> DataContextObjectStore.trackedFlattenedPathsPresence of path in this map is used to separate insert from update case of flattened records.protected final Map<ObjectId, Map<CayennePath, ObjectId>> DataContextObjectStore.trackedFlattenedPathsPresence of path in this map is used to separate insert from update case of flattened records.Methods in org.apache.cayenne.access that return ObjectIdModifier and TypeMethodDescriptionObjectDiff.getArcSnapshotValue(String propertyName) ObjectDiff.getCurrentArcSnapshotValue(String propertyName) OptimisticLockException.getFailedObjectId()Returns the ObjectId of the object that caused the OptimisticLockException.DataContextObjectStore.getFlattenedId(ObjectId objectId, CayennePath path) Methods in org.apache.cayenne.access that return types with arguments of type ObjectIdModifier and TypeMethodDescriptionprotected Map<ObjectId, Persistent> DataContextFactory.createObjectMap()Creates a map of registered objects for a new ObjectStore, holding the objects with the kind of references selected byRuntimeProperties.OBJECT_RETAIN_STRATEGY_PROPERTY: weak (the default), soft or hard.ObjectStoreGraphDiff.getChangesByObjectId()DataContextObjectStore.getFlattenedIds(ObjectId objectId) DataContextObjectStore.getFlattenedPathIdMap(ObjectId objectId) Methods in org.apache.cayenne.access with parameters of type ObjectIdModifier and TypeMethodDescriptionvoidDataRowStore.forgetSnapshot(ObjectId id) Evicts a snapshot from cache without generating any SnapshotEvents.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.getFlattenedId(ObjectId objectId, CayennePath path) DataContextObjectStore.getFlattenedIds(ObjectId objectId) DataContextObjectStore.getFlattenedPathIdMap(ObjectId objectId) DataContextObjectStore.getSnapshot(ObjectId oid) Returns a snapshot for ObjectId from the underlying snapshot cache.voidDataContextObjectStore.markFlattenedPath(ObjectId objectId, CayennePath path, ObjectId id) Mark that flattened path for object has data row in DB.DataContext.objectForPK(ObjectId id) DataContextChannel.onIdQuery(ObjectContext childContext, ObjectId id) DataDomain.onIdQuery(ObjectContext context, ObjectId id) Resolves an object from the snapshot cache, or from the database if the cache lookup fails.DataContextChannel.onRelationshipQuery(ObjectContext childContext, ObjectId sourceId, String relationshipName) DataDomain.onRelationshipQuery(ObjectContext context, ObjectId sourceId, String relationshipName) Resolves a relationship from the snapshot cache, or from the database if the cache lookup fails.voidDataContextObjectStore.registerObject(ObjectId id, Persistent nodeObject) DataContextObjectStore.unregisterObject(ObjectId id) <T> TDataContextObjectStore.withObjectLock(ObjectId id, Supplier<T> action) Returns the monitor guarding writes to the state of the object with the id: attribute and relationship values, persistence state and snapshot version.Method parameters in org.apache.cayenne.access with type arguments of type ObjectIdModifier and TypeMethodDescriptionDataContext.Builder.objectMap(Map<ObjectId, Persistent> objectMap) Sets a map to store registered objects in.voidDataContextChannel.onInvalidate(ObjectContext childContext, Collection<ObjectId> objectIds) voidDataDomain.onInvalidate(ObjectContext originatingContext, Collection<ObjectId> objectIds) Evicts snapshots of the given objects from the snapshot cache, notifying all contexts that share it.voidDataRowStore.processSnapshotChanges(Object postedBy, Map<ObjectId, DataRow> updatedSnapshots, Collection<ObjectId> deletedSnapshotIds, Collection<ObjectId> invalidatedSnapshotIds, Collection<ObjectId> indirectlyModifiedIds) Processes changes made to snapshots.voidDataRowStore.processSnapshotChanges(Object postedBy, Map<ObjectId, DataRow> updatedSnapshots, Collection<ObjectId> deletedSnapshotIds, Collection<ObjectId> invalidatedSnapshotIds, Collection<ObjectId> indirectlyModifiedIds) Processes changes made to snapshots.Constructors in org.apache.cayenne.access with parameters of type ObjectIdModifierConstructorDescriptionOptimisticLockException(ObjectId id, DbEntity rootEntity, Map<String, ?> qualifierSnapshot, TranslatedStatement statement) Constructor parameters in org.apache.cayenne.access with type arguments of type ObjectIdModifierConstructorDescriptionprotectedDataContext(DataChannel channel, DataRowStore snapshotCache, Map<ObjectId, Persistent> objectMap, boolean syncWithSnapshotCache, boolean usingSharedSnapshotCache, boolean validatingObjectsOnCommit, QueryCache queryCache) Creates a DataContext and its ObjectStore as a single unit.DataContextObjectStore(DataContext context, DataRowStore dataRowCache, Map<ObjectId, Persistent> objectMap, boolean syncWithSnapshotCache) -
Uses of ObjectId in org.apache.cayenne.access.event
Fields in org.apache.cayenne.access.event with type parameters of type ObjectIdModifier and TypeFieldDescriptionprotected Collection<ObjectId> SnapshotEvent.deletedIdsprotected Collection<ObjectId> SnapshotEvent.indirectlyModifiedIdsprotected Collection<ObjectId> SnapshotEvent.invalidatedIdsSnapshotEvent.modifiedDiffsMethods in org.apache.cayenne.access.event that return types with arguments of type ObjectIdModifier and TypeMethodDescriptionSnapshotEvent.getDeletedIds()SnapshotEvent.getIndirectlyModifiedIds()SnapshotEvent.getInvalidatedIds()SnapshotEvent.getModifiedDiffs()Returns the changed keys of each modified snapshot, with their new values.Constructor parameters in org.apache.cayenne.access.event with type arguments of type ObjectIdModifierConstructorDescriptionSnapshotEvent(Object source, Object postedBy, long version, Map<ObjectId, Map<String, Object>> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) SnapshotEvent(Object source, Object postedBy, long version, Map<ObjectId, Map<String, Object>> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) -
Uses of ObjectId in org.apache.cayenne.access.flush
Constructors in org.apache.cayenne.access.flush with parameters of type ObjectId -
Uses of ObjectId in org.apache.cayenne.access.flush.operation
Fields in org.apache.cayenne.access.flush.operation declared as ObjectIdFields in org.apache.cayenne.access.flush.operation with type parameters of type ObjectIdMethods in org.apache.cayenne.access.flush.operation that return ObjectIdModifier and TypeMethodDescriptionBaseDbRowOp.getChangeId()DbRowOp.getChangeId()static ObjectIdOpIdFactory.idForOperation(ObjectId originalId) Methods in org.apache.cayenne.access.flush.operation that return types with arguments of type ObjectIdMethods in org.apache.cayenne.access.flush.operation with parameters of type ObjectIdModifier and TypeMethodDescriptionvoidValues.addFlattenedId(CayennePath path, ObjectId id) ConditionalSoftDeleteDbRowOpFactory.createOp(Persistent object, DbEntity entity, ObjectId id) DeleteDbRowOpFactory.createOp(Persistent object, DbEntity entity, ObjectId id) Creates a delete op for a given object and target table.HardDeleteDbRowOpFactory.createOp(Persistent object, DbEntity entity, ObjectId id) static ObjectIdOpIdFactory.idForOperation(ObjectId originalId) voidDeleteDbRowOp.setChangeId(ObjectId changeId) Constructors in org.apache.cayenne.access.flush.operation with parameters of type ObjectIdModifierConstructorDescriptionprotectedBaseDbRowOp(Persistent object, DbEntity entity, ObjectId id) DeleteDbRowOp(Persistent object, DbEntity entity, ObjectId id) InsertDbRowOp(Persistent object, DbEntity entity, ObjectId id) SoftDeleteDbRowOp(Persistent object, DbEntity entity, ObjectId id, DbAttribute deletedAttribute) UpdateDbRowOp(Persistent object, DbEntity entity, ObjectId id) -
Uses of ObjectId in org.apache.cayenne.commitlog.meta
Methods in org.apache.cayenne.commitlog.meta with parameters of type ObjectIdModifier and TypeMethodDescription -
Uses of ObjectId in org.apache.cayenne.commitlog.model
Methods in org.apache.cayenne.commitlog.model that return ObjectIdModifier and TypeMethodDescriptionMutableToOneRelationshipChange.getNewValue()ToOneRelationshipChange.getNewValue()MutableToOneRelationshipChange.getOldValue()ToOneRelationshipChange.getOldValue()MutableObjectChange.getPostCommitId()ObjectChange.getPostCommitId()MutableObjectChange.getPreCommitId()ObjectChange.getPreCommitId()Methods in org.apache.cayenne.commitlog.model that return types with arguments of type ObjectIdModifier and TypeMethodDescriptionMutableToManyRelationshipChange.getAdded()ToManyRelationshipChange.getAdded()Map<ObjectId, ? extends ObjectChange> ChangeMap.getChanges()Returns a map of changes.Map<ObjectId, ? extends ObjectChange> MutableChangeMap.getChanges()MutableToManyRelationshipChange.getRemoved()ToManyRelationshipChange.getRemoved()Methods in org.apache.cayenne.commitlog.model with parameters of type ObjectIdModifier and TypeMethodDescriptionvoidvoidvoidMutableToManyRelationshipChange.disconnected(ObjectId o) voidMutableToOneRelationshipChange.disconnected(ObjectId o) MutableChangeMap.getOrCreate(ObjectId id, ObjectChangeType type) voidMutableObjectChange.setPostCommitId(ObjectId postCommitId) voidMutableObjectChange.toManyRelationshipConnected(String property, ObjectId value) voidMutableObjectChange.toManyRelationshipDisconnected(String property, ObjectId value) voidMutableObjectChange.toOneRelationshipConnected(String property, ObjectId value) voidMutableObjectChange.toOneRelationshipDisconnected(String property, ObjectId value) Constructors in org.apache.cayenne.commitlog.model with parameters of type ObjectId -
Uses of ObjectId in org.apache.cayenne.exp.property
Methods in org.apache.cayenne.exp.property with parameters of type ObjectIdModifier and TypeMethodDescriptiondefault ExpressionEntityProperty.objectIdsIn(ObjectId... ids) Matches any of the objects identified by the providedObjectIds.Method parameters in org.apache.cayenne.exp.property with type arguments of type ObjectId -
Uses of ObjectId in org.apache.cayenne.graph
Fields in org.apache.cayenne.graph declared as ObjectIdModifier and TypeFieldDescriptionprotected ObjectIdNodeDiff.idprotected ObjectIdNodeIdChangeOperation.newIdprotected ObjectIdArcCreateOperation.targetIdprotected ObjectIdArcDeleteOperation.targetIdMethods in org.apache.cayenne.graph that return ObjectIdModifier and TypeMethodDescriptionNodeDiff.getNodeId()ArcCreateOperation.getTargetNodeId()ArcDeleteOperation.getTargetNodeId()Methods in org.apache.cayenne.graph with parameters of type ObjectIdModifier and TypeMethodDescriptionvoidChildDiffLoader.arcCreated(ObjectId id, ObjectId targetId, ArcId arcId) default voidGraphChangeHandler.arcCreated(ObjectId id, ObjectId targetId, ArcId arcId) Notifies implementing object that a new arc was created between two nodes.voidChildDiffLoader.arcDeleted(ObjectId id, ObjectId targetId, ArcId arcId) default voidGraphChangeHandler.arcDeleted(ObjectId id, ObjectId targetId, ArcId arcId) Notifies implementing object that an arc between two nodes was deleted.protected PersistentChildDiffLoader.findObject(ObjectId id) protected PersistentChildDiffLoader.findObjectInCollection(ObjectId id, Object toManyHolder) voidChildDiffLoader.nodeCreated(ObjectId id) default voidGraphChangeHandler.nodeCreated(ObjectId id) Notifies implementing object that a new node was created in the graph.voidChildDiffLoader.nodeIdChanged(ObjectId id, ObjectId newId) default voidGraphChangeHandler.nodeIdChanged(ObjectId id, ObjectId newId) Notifies implementing object that a node was assigned a new id.voidChildDiffLoader.nodePropertyChanged(ObjectId id, String property, Object oldValue, Object newValue) default voidGraphChangeHandler.nodePropertyChanged(ObjectId id, String property, Object oldValue, Object newValue) Notifies implementing object that a node's property was modified.voidChildDiffLoader.nodeRemoved(ObjectId id) default voidGraphChangeHandler.nodeRemoved(ObjectId id) Notifies implementing object that a node was removed from the graph.Constructors in org.apache.cayenne.graph with parameters of type ObjectIdModifierConstructorDescriptionArcCreateOperation(ObjectId id, ObjectId targetId, ArcId arcId) ArcCreateOperation(ObjectId id, ObjectId targetId, ArcId arcId, int diffId) ArcDeleteOperation(ObjectId id, ObjectId targetId, ArcId arcId) ArcDeleteOperation(ObjectId id, ObjectId targetId, ArcId arcId, int diffId) NodeCreateOperation(ObjectId id, int diffId) NodeDeleteOperation(ObjectId id, int diffId) NodeIdChangeOperation(ObjectId id, ObjectId newId) NodeIdChangeOperation(ObjectId id, ObjectId newId, int diffId) NodePropertyChangeOperation(ObjectId id, String property, Object oldValue, Object newValue) NodePropertyChangeOperation(ObjectId id, String property, Object oldValue, Object newValue, int diffId) -
Uses of ObjectId in org.apache.cayenne.map
Methods in org.apache.cayenne.map that return types with arguments of type ObjectIdModifier and TypeMethodDescriptionEntityInheritanceTree.polymorphicIds(ObjectId id) Returns the ids that may identify an object with a given id in an object graph or a snapshot cache: the id itself, followed by the same id keyed by each subentity of this tree, depth-first.Methods in org.apache.cayenne.map with parameters of type ObjectIdModifier and TypeMethodDescriptionbooleanDbEntity.isFullReplacementIdAttached(ObjectId id) Returns true if there is full replacement id is attached to an ObjectId.EntityInheritanceTree.polymorphicIds(ObjectId id) Returns the ids that may identify an object with a given id in an object graph or a snapshot cache: the id itself, followed by the same id keyed by each subentity of this tree, depth-first. -
Uses of ObjectId in org.apache.cayenne.query
Fields in org.apache.cayenne.query declared as ObjectIdMethods in org.apache.cayenne.query that return ObjectIdMethods in org.apache.cayenne.query with parameters of type ObjectIdModifier and TypeMethodDescriptionvoidAdds a snapshot to batch.voidUpdateBatchQuery.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) 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.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 <T> SelectById<T> Deprecated, for removal: This API element is subject to removal in a future version.static <T> SelectById<T> Deprecated, for removal: This API element is subject to removal in a future version.static <T> SelectById<T> SelectById.queryObjectId(Class<T> entityType, ObjectId id) Deprecated, for removal: This API element is subject to removal in a future version.static <T> SelectById<T> SelectById.queryObjectIds(Class<T> entityType, ObjectId... ids) Deprecated, for removal: This API element is subject to removal in a future version.Method parameters in org.apache.cayenne.query with type arguments of type ObjectIdModifier and TypeMethodDescriptionstatic SelectById<DataRow> SelectById.dataRowQueryObjectIdsCollection(Collection<ObjectId> ids) Deprecated, for removal: This API element is subject to removal in a future version.static <T> SelectById<T> SelectById.queryObjectIdsCollection(Class<T> entityType, Collection<ObjectId> ids) Deprecated, for removal: This API element is subject to removal in a future version.Constructors in org.apache.cayenne.query with parameters of type ObjectId
ObjectContext.objectForPK(ObjectId)