Uses of Interface
org.apache.cayenne.Persistent
-
Packages that use Persistent 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.translator.select org.apache.cayenne.ashwood org.apache.cayenne.exp Cayenne data expression classes.org.apache.cayenne.graph Contains generic graph management tools used in Cayenne.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.reflect org.apache.cayenne.util General utility classes. -
-
Uses of Persistent in org.apache.cayenne
Subinterfaces of Persistent in org.apache.cayenne Modifier and Type Interface Description interfaceDataObjectDefines basic methods for a persistent object in Cayenne.Classes in org.apache.cayenne that implement Persistent Modifier and Type Class Description classBaseDataObjectBase implementation ofDataObject, have no assumption about how data is actually stored.classCayenneDataObjectImplementation ofDataObjectthat usesMapto store object fields.classHybridDataObjectThis data object likeCayenneDataObjectusesMapto store generic attributes, only difference is that this Map will be created lazily at first write, thus reducing memory penalty if possible.classPersistentObjectA convenience base superclass for concrete Persistent objects.Fields in org.apache.cayenne declared as Persistent Modifier and Type Field Description protected PersistentDeleteDenyException. objectMethods in org.apache.cayenne with type parameters of type Persistent Modifier and Type Method Description <T extends Persistent>
TBaseContext. localObject(T objectFromAnotherContext)<T extends Persistent>
TObjectContext. localObject(T objectFromAnotherContext)Returns a local copy of 'objectFromAnotherContext' object.Methods in org.apache.cayenne that return Persistent Modifier and Type Method Description PersistentDeleteDenyException. getObject()Methods in org.apache.cayenne with parameters of type Persistent Modifier and Type Method Description static Map<String,Object>Cayenne. compoundPKForObject(Persistent dataObject)Returns a primary key map for a persistent object.static ClassDescriptorCayenne. getClassDescriptor(Persistent object)Returns class descriptor for the object or null if the object is not registered with an ObjectContext or descriptor was not found.static ObjEntityCayenne. getObjEntity(Persistent p)Returns mapped ObjEntity for object.static PropertyDescriptorCayenne. getProperty(Persistent object, String properyName)Returns property descriptor for specified property.static intCayenne. intPKForObject(Persistent dataObject)Returns an int primary key value for a persistent object.static longCayenne. longPKForObject(Persistent dataObject)Returns an int primary key value for a persistent object.static ObjectCayenne. pkForObject(Persistent dataObject)Returns a primary key value for a persistent object.voidBaseContext. prepareForAccess(Persistent object, String property, boolean lazyFaulting)voidObjectContext. prepareForAccess(Persistent object, String property, boolean lazyFaulting)A callback method that child Persistent objects are expected to call before accessing property values.voidBaseContext. propertyChanged(Persistent object, String property, Object oldValue, Object newValue)voidObjectContext. 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 ObjectFault. resolveFault(Persistent sourceObject, String relationshipName)Returns an object for a given source object and relationship.protected voidBaseDataObject. willConnect(String relationshipName, Persistent object)Called before establishing a relationship with another object.Constructors in org.apache.cayenne with parameters of type Persistent Constructor Description DeleteDenyException(Persistent object, String relationship, String reason) -
Uses of Persistent in org.apache.cayenne.access
Fields in org.apache.cayenne.access with type parameters of type Persistent Modifier and Type Field Description protected Map<Object,Persistent>ObjectStore. objectMapMethods in org.apache.cayenne.access with type parameters of type Persistent Modifier and Type Method Description <T extends Persistent>
TDataContext. objectFromDataRow(Class<T> objectClass, DataRow dataRow)Creates a DataObject from DataRow.Methods in org.apache.cayenne.access that return Persistent Modifier and Type Method Description PersistentDataContext. newObject(String entityName)Instantiates a new object and registers it with this context.Methods in org.apache.cayenne.access that return types with arguments of type Persistent Modifier and Type Method Description Map<Object,Persistent>DefaultObjectMapRetainStrategy. createObjectMap()Map<Object,Persistent>ObjectMapRetainStrategy. createObjectMap()Iterator<Persistent>ObjectStore. getObjectIterator()Returns an iterator over the registered objects.List<Persistent>ObjectStore. objectsInState(int state)Return a subset of registered objects that are in a certain persistence state.Methods in org.apache.cayenne.access with parameters of type Persistent Modifier and Type Method Description DataRowDataContext. currentSnapshot(Persistent object)Returns a DataRow reflecting current, possibly uncommitted, object state.ObjectToManyListFault. resolveFault(Persistent sourceObject, String relationshipName)Resolves this fault to a List of objects.ObjectToManyMapFault. resolveFault(Persistent sourceObject, String relationshipName)ObjectToManySetFault. resolveFault(Persistent sourceObject, String relationshipName)ObjectToOneFault. resolveFault(Persistent sourceObject, String relationshipName)Resolves this fault to a DataObject.Constructors in org.apache.cayenne.access with parameters of type Persistent Constructor Description ToManyList(Persistent source, String relationship)Creates ToManyList.ToManySet(Persistent relationshipOwner, String relationshipName)Constructor parameters in org.apache.cayenne.access with type arguments of type Persistent Constructor Description NoSyncObjectStore(DataRowStore dataRowCache, Map<Object,Persistent> objectMap)ObjectStore(DataRowStore dataRowCache, Map<Object,Persistent> objectMap)Creates an ObjectStore withDataRowStoreand a map to use for storing registered objects. -
Uses of Persistent in org.apache.cayenne.access.translator.select
Methods in org.apache.cayenne.access.translator.select with parameters of type Persistent Modifier and Type Method Description voidDataObjectMatchTranslator. setDataObject(Persistent obj) -
Uses of Persistent in org.apache.cayenne.ashwood
Methods in org.apache.cayenne.ashwood with parameters of type Persistent Modifier and Type Method Description protected ObjectAshwoodEntitySorter. findReflexiveMaster(Persistent object, ObjRelationship toOneRel, String targetEntityName) -
Uses of Persistent in org.apache.cayenne.exp
Methods in org.apache.cayenne.exp with type parameters of type Persistent Modifier and Type Method Description static <T extends Persistent>
Property<T>Property. createSelf(Class<? super T> type)Creates "self" Property for persistent class.<T extends Persistent>
Property<T>Property. flat(Class<? super T> tClass)Create new "flat" property for toMany relationship.Methods in org.apache.cayenne.exp with parameters of type Persistent Modifier and Type Method Description static ExpressionExpressionFactory. matchAnyExp(Persistent... objects)Creates an expression that matches any of the objects contained in theobjectsarraystatic ExpressionExpressionFactory. matchExp(Persistent object)Creates an expression that matches the primary key of object inObjectId'sIdSnapshotfor the argumentobject.Method parameters in org.apache.cayenne.exp with type arguments of type Persistent Modifier and Type Method Description static ExpressionExpressionFactory. matchAnyExp(List<? extends Persistent> objects)Creates an expression that matches any of the objects contained in the listobjects -
Uses of Persistent in org.apache.cayenne.graph
Methods in org.apache.cayenne.graph that return Persistent Modifier and Type Method Description protected PersistentChildDiffLoader. findObject(Object nodeId)protected PersistentChildDiffLoader. findObjectInCollection(Object nodeId, Object toManyHolder) -
Uses of Persistent in org.apache.cayenne.map
Methods in org.apache.cayenne.map with parameters of type Persistent Modifier and Type Method Description ObjEntityDataMap. getObjEntity(Persistent object)ObjEntityEntityResolver. getObjEntity(Persistent object)ObjEntityMappingNamespace. getObjEntity(Persistent object) -
Uses of Persistent in org.apache.cayenne.query
Constructors in org.apache.cayenne.query with parameters of type Persistent Constructor Description RefreshQuery(Persistent object)Creates a RefreshQuery that refreshes a single object, including invalidation of its relationships. -
Uses of Persistent in org.apache.cayenne.reflect
Methods in org.apache.cayenne.reflect with parameters of type Persistent Modifier and Type Method Description voidLifecycleCallbackRegistry. performCallbacks(LifecycleEvent type, Persistent object)Invokes callbacks of a specific type for a given entity object. -
Uses of Persistent in org.apache.cayenne.util
Fields in org.apache.cayenne.util declared as Persistent Modifier and Type Field Description protected PersistentRelationshipFault. relationshipOwnerFields in org.apache.cayenne.util with type parameters of type Persistent Modifier and Type Field Description protected Map<ObjectId,Persistent>ObjectDetachOperation. seenMethods in org.apache.cayenne.util with type parameters of type Persistent Modifier and Type Method Description <T extends Persistent>
TDeepMergeOperation. merge(T peerInParentContext)<T extends Persistent>
TShallowMergeOperation. merge(T peerInParentContext)Methods in org.apache.cayenne.util that return Persistent Modifier and Type Method Description PersistentRelationshipFault. getRelationshipOwner()Methods in org.apache.cayenne.util with parameters of type Persistent Modifier and Type Method Description protected voidPersistentObjectHolder. 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 voidObjectContextGraphAction. handleArcPropertyChange(Persistent object, ArcProperty property, Object oldValue, Object newValue)voidObjectContextGraphAction. handlePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)Handles property change in a Persistent object, routing to eitherObjectContextGraphAction.handleArcPropertyChange(Persistent, ArcProperty, Object, Object)orObjectContextGraphAction.handleSimplePropertyChange(Persistent, String, Object, Object).protected voidObjectContextGraphAction. handleSimplePropertyChange(Persistent object, String propertyName, Object oldValue, Object newValue)protected booleanObjectContextGraphAction. markAsDirty(Persistent object)Changes object state to MODIFIED if needed, returning true if the change has occurred, false if not.Constructors in org.apache.cayenne.util with parameters of type Persistent Constructor Description 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.PersistentObjectMap(Persistent relationshipOwner, String relationshipName, Accessor mapKeyAccessor)Creates PersistentObjectList initializing it with list owner persistent object and relationship name that this list maps to.PersistentObjectSet(Persistent relationshipOwner, String relationshipName)RelationshipFault(Persistent relationshipOwner, String relationshipName)
-