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.access.event | |
org.apache.cayenne.access.flush | |
org.apache.cayenne.access.flush.operation | |
org.apache.cayenne.access.util | |
org.apache.cayenne.exp.property |
Property API
|
org.apache.cayenne.map |
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
|
org.apache.cayenne.query |
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
|
org.apache.cayenne.util |
General utility classes.
|
Modifier and Type | Field and Description |
---|---|
protected ObjectId |
PersistentObject.objectId |
Modifier and Type | Method and Description |
---|---|
ObjectId |
ObjectId.createReplacementId() |
ObjectId |
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.
|
ObjectId |
Persistent.getObjectId() |
ObjectId |
PersistentObject.getObjectId() |
static ObjectId |
ObjectId.of(String entityName)
Creates a temporary ObjectId for a given entity.
|
static ObjectId |
ObjectId.of(String entityName,
byte[] tmpKey)
Creates a temporary ObjectId for a given entity, using provided unique id key.
|
static ObjectId |
ObjectId.of(String entityName,
Map<String,?> values)
Creates an ObjectId, potentially mapped to multiple columns.
|
static ObjectId |
ObjectId.of(String entityName,
ObjectId objectId)
Creates an ObjectId using another id as a template, but for a different entity.
|
static ObjectId |
ObjectId.of(String entityName,
String keyName,
Object value)
Creates a single key/value permanent ObjectId.
|
Modifier and Type | Method and Description |
---|---|
static Object |
Cayenne.objectForPK(ObjectContext context,
ObjectId id)
Returns an object matching ObjectId.
|
static ObjectId |
ObjectId.of(String entityName,
ObjectId 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) |
Modifier and Type | Field and Description |
---|---|
protected ObjectId |
OptimisticLockException.failedObjectId |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<ObjectId,DataRow> |
DataRowStore.snapshots |
protected Map<Object,Map<String,ObjectId>> |
ObjectStore.trackedFlattenedPaths
Map that tracks flattened paths for given object Id that is present in db.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
ObjectDiff.getArcSnapshotValue(String propertyName) |
ObjectId |
ObjectDiff.getCurrentArcSnapshotValue(String propertyName) |
ObjectId |
OptimisticLockException.getFailedObjectId()
Returns the ObjectId of the object that caused the OptimisticLockException.
|
ObjectId |
ObjectStore.getFlattenedId(ObjectId objectId,
String path) |
Modifier and Type | Method and Description |
---|---|
Collection<ObjectId> |
ObjectStore.getFlattenedIds(ObjectId objectId) |
Modifier and Type | Method and Description |
---|---|
void |
DataRowStore.forgetSnapshot(ObjectId id)
Evicts a snapshot from cache without generating any SnapshotEvents.
|
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.
|
ObjectId |
ObjectStore.getFlattenedId(ObjectId objectId,
String path) |
Collection<ObjectId> |
ObjectStore.getFlattenedIds(ObjectId objectId) |
DataRow |
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 Type | Method and Description |
---|---|
void |
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.
|
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.
|
Constructor and Description |
---|
OptimisticLockException(ObjectId id,
DbEntity rootEntity,
String querySQL,
Map qualifierSnapshot) |
Modifier and Type | Field and Description |
---|---|
protected Collection<ObjectId> |
SnapshotEvent.deletedIds |
protected Collection<ObjectId> |
SnapshotEvent.indirectlyModifiedIds |
protected Collection<ObjectId> |
SnapshotEvent.invalidatedIds |
protected Map<ObjectId,DataRow> |
SnapshotEvent.modifiedDiffs |
Modifier and Type | Method and Description |
---|---|
Collection<ObjectId> |
SnapshotEvent.getDeletedIds() |
Collection<ObjectId> |
SnapshotEvent.getIndirectlyModifiedIds() |
Collection<ObjectId> |
SnapshotEvent.getInvalidatedIds() |
Map<ObjectId,DataRow> |
SnapshotEvent.getModifiedDiffs() |
Constructor and Description |
---|
SnapshotEvent(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) |
SnapshotEvent(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) |
Constructor and Description |
---|
EffectiveOpId(ObjectId id) |
EffectiveOpId(String entityName,
ObjectId id) |
Modifier and Type | Field and Description |
---|---|
protected ObjectId |
BaseDbRowOp.changeId |
Modifier and Type | Field and Description |
---|---|
protected Map<String,ObjectId> |
Values.flattenedIds |
Modifier and Type | Method and Description |
---|---|
ObjectId |
BaseDbRowOp.getChangeId() |
ObjectId |
DbRowOp.getChangeId() |
Modifier and Type | Method and Description |
---|---|
Map<String,ObjectId> |
Values.getFlattenedIds() |
Modifier and Type | Method and Description |
---|---|
void |
Values.addFlattenedId(String path,
ObjectId id) |
void |
DeleteDbRowOp.setChangeId(ObjectId changeId) |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
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) |
Modifier and Type | Method and Description |
---|---|
default Expression |
IdProperty.eq(ObjectId value) |
Modifier and Type | Method and Description |
---|---|
boolean |
DbEntity.isFullReplacementIdAttached(ObjectId id)
Returns true if there is full replacement id is attached to an ObjectId.
|
Modifier and Type | Field and Description |
---|---|
protected ObjectId |
BatchQueryRow.objectId |
protected ObjectId |
ObjectIdQuery.objectId |
protected ObjectId |
RelationshipQuery.objectId |
Modifier and Type | Method and Description |
---|---|
ObjectId |
BatchQueryRow.getObjectId() |
ObjectId |
ObjectIdQuery.getObjectId() |
ObjectId |
RelationshipQuery.getObjectId() |
Modifier and Type | Method and Description |
---|---|
void |
UpdateBatchQuery.add(Map<String,Object> qualifierSnapshot,
Map<String,Object> updateSnapshot,
ObjectId id)
Adds a parameter row to the batch.
|
void |
InsertBatchQuery.add(Map<String,Object> snapshot,
ObjectId id)
Adds a snapshot to batch.
|
static SelectById<DataRow> |
SelectById.dataRowQuery(ObjectId id) |
static SelectById<DataRow> |
SelectById.dataRowQuery(ObjectId firstId,
ObjectId... otherIds) |
static SelectById<DataRow> |
SelectById.dataRowQuery(ObjectId firstId,
ObjectId... otherIds) |
static <T> SelectById<T> |
SelectById.query(Class<T> entityType,
ObjectId id) |
static <T> SelectById<T> |
SelectById.query(Class<T> entityType,
ObjectId firstId,
ObjectId... otherIds) |
static <T> SelectById<T> |
SelectById.query(Class<T> entityType,
ObjectId firstId,
ObjectId... otherIds) |
Constructor and Description |
---|
BatchQueryRow(ObjectId objectId,
Map<String,Object> qualifier) |
MultiMapIdSpec(ObjectId firstId,
ObjectId... otherIds) |
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.
|
Modifier and Type | Field and Description |
---|---|
protected Map<ObjectId,Persistent> |
ObjectDetachOperation.seen |
Modifier and Type | Method and Description |
---|---|
protected Object |
ObjectContextQueryAction.polymorphicObjectFromCache(ObjectId superOid) |
Copyright © 2001–2021 Apache Cayenne. All rights reserved.