| 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.translator.select | |
| org.apache.cayenne.access.util | |
| 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()Creates and returns a replacement ObjectId. | 
| 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() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Object | Cayenne. objectForPK(ObjectContext context,
           ObjectId id)Returns an object matching ObjectId. | 
| 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 | 
| Modifier and Type | Method and Description | 
|---|---|
| ObjectId | OptimisticLockException. getFailedObjectId()Returns the ObjectId of the object that caused the OptimisticLockException. | 
| 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. | 
| DataRow | ObjectStore. getSnapshot(ObjectId oid)Returns a snapshot for ObjectId from the underlying snapshot cache. | 
| void | OperationObserver. nextGeneratedRows(Query query,
                 ResultIterator<?> keys,
                 ObjectId idToUpdate)Callback method invoked after each batch of generated values is read during an
 update. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DataObjectMatchTranslator. setObjectId(ObjectId id) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DoNothingOperationObserver. nextGeneratedRows(Query query,
                 ResultIterator<?> keys,
                 ObjectId idToUpdate) | 
| void | DefaultOperationObserver. nextGeneratedRows(Query query,
                 ResultIterator keys,
                 ObjectId idToUpdate)Closes ResultIterator without reading its data. | 
| 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 <T> SelectById<T> | SelectById. query(Class<T> entityType,
     ObjectId id) | 
| Constructor and Description | 
|---|
| BatchQueryRow(ObjectId objectId,
             Map<String,Object> qualifier) | 
| 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–2023 Apache Cayenne. All rights reserved.