Uses of Interface
org.apache.cayenne.Persistent

Packages that use Persistent
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.trans Provides translators for Cayenne queries. 
org.apache.cayenne.intercept   
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. 
 

Uses of Persistent in org.apache.cayenne
 

Subinterfaces of Persistent in org.apache.cayenne
 interface DataObject
          Defines basic methods for a persistent object in Cayenne.
 

Classes in org.apache.cayenne that implement Persistent
 class CayenneDataObject
          A default implementation of DataObject interface.
 class PersistentObject
          A convenience base superclass for concrete Persistent objects.
 

Fields in org.apache.cayenne declared as Persistent
protected  Persistent DeleteDenyException.object
           
 

Methods in org.apache.cayenne that return Persistent
 Persistent DeleteDenyException.getObject()
           
abstract  Persistent BaseContext.localObject(ObjectId id, Object prototype)
           
 Persistent CayenneContext.localObject(ObjectId id, Object prototype)
          Converts a list of Persistent objects registered in some other ObjectContext to a list of objects local to this ObjectContext.
 Persistent ObjectContext.localObject(ObjectId id, Object prototype)
          Returns an object local to this ObjectContext and matching the ObjectId.
abstract  Persistent BaseContext.newObject(Class persistentClass)
           
 Persistent CayenneContext.newObject(Class persistentClass)
          Creates and registers a new Persistent object instance.
 Persistent ObjectContext.newObject(Class persistentClass)
          Creates a new persistent object scheduled to be inserted to the database on next commit.
 

Methods in org.apache.cayenne with parameters of type Persistent
static Map DataObjectUtils.compoundPKForObject(Persistent dataObject)
          Returns a primary key map for a persistent object.
static int DataObjectUtils.intPKForObject(Persistent dataObject)
          Returns an int primary key value for a persistent object.
static Object DataObjectUtils.pkForObject(Persistent dataObject)
          Returns a primary key value for a persistent object.
 void BaseContext.prepareForAccess(Persistent object, String property)
          Deprecated. since 3.0 this method is replaced by BaseContext.prepareForAccess(Persistent, String, boolean).
 void ObjectContext.prepareForAccess(Persistent object, String property)
          Deprecated. since 3.0 use ObjectContext.prepareForAccess(Persistent, String, boolean).
 void BaseContext.prepareForAccess(Persistent object, String property, boolean lazyFaulting)
           
 void ObjectContext.prepareForAccess(Persistent object, String property, boolean lazyFaulting)
          A callback method that child Persistent objects are expected to call before accessing property values.
abstract  void BaseContext.propertyChanged(Persistent object, String property, Object oldValue, Object newValue)
           
 void CayenneContext.propertyChanged(Persistent object, String property, Object oldValue, Object newValue)
           
 void ObjectContext.propertyChanged(Persistent object, String property, Object oldValue, Object newValue)
          A callback method that child Persistent objects are expected to call from inside the setter after modifying a value of a persistent property, including "simple" and "arc" properties.
abstract  Object Fault.resolveFault(Persistent sourceObject, String relationshipName)
          Returns an object for a given source object and relationship.
protected  void CayenneDataObject.willConnect(String relationshipName, Persistent object)
          Called before establishing a relationship with another object.
 

Constructors in org.apache.cayenne with parameters of type Persistent
DeleteDenyException(Persistent object, String relationship, String reason)
           
 

Uses of Persistent in org.apache.cayenne.access
 

Methods in org.apache.cayenne.access that return Persistent
 Persistent ToManyList.getRelationshipOwner()
           
 Persistent DataContext.localObject(ObjectId id, Object prototype)
          Returns an object local to this DataContext and matching the ObjectId.
 Persistent DataContext.newObject(Class persistentClass)
          Creates and registers a new persistent object.
 Persistent DataContext.newObject(String entityName)
          Instantiates a new object and registers it with this context.
 

Methods in org.apache.cayenne.access with parameters of type Persistent
 DataRow DataContext.currentSnapshot(Persistent object)
          Returns a DataRow reflecting current, possibly uncommitted, object state.
 void DataContext.propertyChanged(Persistent object, String property, Object oldValue, Object newValue)
           
 void ObjectStore.resolveHollow(Persistent object)
          Deprecated. since 3.0 use ObjectContext.prepareForAccess(Persistent, String, boolean).
 

Constructors in org.apache.cayenne.access with parameters of type Persistent
ToManyList(Persistent source, String relationship)
          Creates ToManyList.
 

Uses of Persistent in org.apache.cayenne.access.trans
 

Methods in org.apache.cayenne.access.trans with parameters of type Persistent
 void DataObjectMatchTranslator.setDataObject(Persistent obj)
           
 

Uses of Persistent in org.apache.cayenne.intercept
 

Methods in org.apache.cayenne.intercept that return Persistent
 Persistent ObjectContextDecorator.localObject(ObjectId id, Object prototype)
           
 Persistent ObjectContextCallbackInterceptor.newObject(Class persistentClass)
          Creates a new object, applying "PrePersist" callbacks to it.
 Persistent ObjectContextDecorator.newObject(Class persistentClass)
           
 

Methods in org.apache.cayenne.intercept with parameters of type Persistent
 void ObjectContextCallbackInterceptor.deleteObject(Persistent object)
          Deletes an object, applying "PreRemove" callbacks to it and all its cascaded dependencies.
 void ObjectContextDecorator.prepareForAccess(Persistent object, String property)
          Deprecated. since 3.0, use ObjectContextDecorator.prepareForAccess(Persistent, String, boolean).
 void ObjectContextDecorator.prepareForAccess(Persistent object, String property, boolean lazyFaulting)
           
 void ObjectContextDecorator.propertyChanged(Persistent object, String property, Object oldValue, Object newValue)
           
 

Uses of Persistent in org.apache.cayenne.map
 

Methods in org.apache.cayenne.map with parameters of type Persistent
protected  Object AshwoodEntitySorter.findReflexiveMaster(Persistent object, ObjRelationship toOneRel, String targetEntityName)
           
 DbEntity EntityResolver.lookupDbEntity(Persistent dataObject)
          Deprecated. since 3.0 - lookup DbEntity via ObjEntity instead.
 

Uses of Persistent in org.apache.cayenne.query
 

Constructors in org.apache.cayenne.query with parameters of type Persistent
RefreshQuery(Persistent object)
          Creates a RefreshQuery that refreshes a single object, including invalidation of its relationships.
 

Uses of Persistent in org.apache.cayenne.util
 

Fields in org.apache.cayenne.util declared as Persistent
protected  Persistent RelationshipFault.relationshipOwner
           
 

Methods in org.apache.cayenne.util that return Persistent
 Persistent RelationshipFault.getRelationshipOwner()
           
 

Methods in org.apache.cayenne.util with parameters of type Persistent
protected  Object PersistentObjectHolder.connect(Persistent persistent)
          Returns an object that should be stored as a value in this ValueHolder, ensuring that it is registered with the same context.
protected abstract  void ObjectContextGraphAction.handleArcPropertyChange(Persistent object, ArcProperty property, Object oldValue, Object newValue)
           
 void ObjectContextGraphAction.handlePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)
          Handles property change in a Peristent object, routing to either ObjectContextGraphAction.handleArcPropertyChange(Persistent, ArcProperty, Object, Object) or ObjectContextGraphAction.handleSimplePropertyChange(Persistent, String, Object, Object).
protected abstract  void ObjectContextGraphAction.handleSimplePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)
           
protected  boolean ObjectContextGraphAction.markAsDirty(Persistent object)
          Changes object state to MODIFIED if needed, returning true if the change has occured, false if not.
 

Constructors in org.apache.cayenne.util with parameters of type Persistent
PersistentObjectHolder(Persistent relationshipOwner, String relationshipName)
           
PersistentObjectList(Persistent relationshipOwner, String relationshipName)
          Creates PersistentObjectList initializing it with list owner persistent object and relationship name that this list maps to.
RelationshipFault(Persistent relationshipOwner, String relationshipName)
           
 



Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.