SPT Object Database API

Uses of Class
com.sptci.prevayler.PrevalentException

Packages that use PrevalentException
com.sptci.prevayler Core classes for the database engine built around Prevayler. 
com.sptci.prevayler.query Queries defined for the prevalent system. 
 

Uses of PrevalentException in com.sptci.prevayler
 

Subclasses of PrevalentException in com.sptci.prevayler
 class ConstraintException
          An exception used to indicate that a constraint violations has been encountered while persisting the prevalent object.
 class DeleteException
          An exception used to indicate that a prevalent object cannot be deleted from the system since other prevalent objects hold references to it.
 class NullException
          A custom exception used to indicate that a field marked as NotNull is null.
 

Methods in com.sptci.prevayler that throw PrevalentException
protected  PrevalentObject PrevalentSystem.add(PrevalentObject object, Date executionTime)
          Add a new prevalent object to the prevalent system.
private  void ConstraintSystem.addReference(PrevalentObject object, ForeignKey key, String name)
          Maintain the reference relationships between the specified prevalent object and any other prevalent object the object references.
private  void ConstraintSystem.cascadeDelete(String className, String field, PrevalentObject object, Date executionTime)
          Cascade delete all objects that hold a reference to the specified prevalent object.
protected  void IndexSystem.checkFields(PrevalentObject object)
          Check all the fields in the prevalent object for Index annotation and check for unique constraint violations.
protected  void ConstraintSystem.checkFields(PrevalentObject object)
          Over-ridden to check for ForeignKey annotation and check for unique constraint violations.
private  void ConstraintSystem.checkForeignKey(ForeignKey key, PrevalentObject object)
          Check the ForeignKey annotation and check for unique constraint violations.
private  void ConstraintSystem.checkForeignKeys(PrevalentObject object)
          Check the ForeignKeys annotation for the prevalent class and perform actions as necessary.
private  void IndexSystem.checkIndex(Index index, PrevalentObject object)
          Check the index specified at the class level on the prevalent object.
private  void IndexSystem.checkIndices(PrevalentObject object)
          Check the Indices annotations on the specified prevalent object and check unique constraints.
private  void ConstraintSystem.checkNull(PrevalentObject object)
          Check the NotNull annotation on the prevalent object and its fields and throw exceptions if necessary.
private  void ConstraintSystem.checkNull(String member, PrevalentObject object)
          Check the value of the member identified by the name specified in the prevalent object for null value.
private  void ConstraintSystem.checkNullFields(PrevalentObject object)
          Check all the fields in the prevalent object to see if they have been annotated with the NotNull annotation.
protected  void IndexSystem.checkUnique(PrevalentObject object)
          Check all unique constraints (including object id) for the specified prevalent object.
protected  void ConstraintSystem.checkUnique(PrevalentObject object)
          Over-ridden to process any ForeignKeys and ForeignKey annotations.
protected  PrevalentObject ObjectGraphSystem.compose(PrevalentObject object)
          Create a clone of the specified prevalent object and reconstitute object references to other prevalent objects.
 int PrevalentManager.count(Class type)
          Return the total number of persistent instance of the specified type in the prevalent system.
 int AbstractDatabase.count(Class cls)
          Return the total number of instances of the specified type in the prevalent system.
protected  PrevalentObject ObjectGraphSystem.decompose(PrevalentObject object, Date executionTime)
          Clone the specified object and decouple references to other prevalent object to make suitable for storage in the prevalent system.
private  void ObjectGraphSystem.decomposeCollection(PrevalentObject object, Field field, Date executionTime)
          Decompose a collection or references to other prevalent objects in the prevalent object being managed.
private  void ObjectGraphSystem.decomposeObject(PrevalentObject object, Field field, Date executionTime)
          Decompose a direct reference represented by the specified field in the prevalent object.
 P PrevalentManager.delete(P object)
          Delete the specified prevalent object from the prevalent system.
 P Database.delete(P object)
          Delete the specified prevalent object from the prevalent system.
 PrevalentObject PrevalentSystem.delete(PrevalentObject object, Date executionTime)
          Delete the specified prevalent object from the prevalent system.
 PrevalentObject DatabaseSystem.delete(PrevalentObject object, Date executionTime)
          Delete the specified prevalent object from the prevalent system.
 Collection<PrevalentObject> PrevalentSystem.fetch(Class cls, long start, long end)
          Fetch the prevalent objects in the specified range of data.
 Collection<P> PrevalentManager.fetch(Class type, long start, long end)
          Return the collection of prevalent objects in the specified range.
 Collection<P> AbstractDatabase.fetch(Class cls, long start, long end)
          Fetch the prevalent objects in the specified range of data.
 PrevalentObject PrevalentSystem.fetch(Class cls, Object oid)
          Fetch the prevalent object of the specified type with the specified object id from the prevalent system.
 P PrevalentManager.fetch(Class type, Object objectId)
          Return the prevalent object identified by the object id specified.
 P AbstractDatabase.fetch(Class cls, Object oid)
          Retrieve the prevalent object of type with object id.
 Collection<PrevalentObject> PrevalentSystem.fetch(Class cls, String field, Object object)
          Fetch the prevalent object(s) of the specified cls type which has the specified object as the value of the specified field.
 Collection<P> PrevalentManager.fetch(Class type, String field, Object value)
          Retrieve the collection of prevelant objects of the specified type that are indexed by the specified field and value.
 Collection<P> AbstractDatabase.fetch(Class cls, String field, Object object)
          Fetch the prevalent object(s) of the specified cls type which has the specified object as the value of the specified field.
protected  Collection<P> PrevalentManager.fetchByIndices(Class type, Map<String,?> parameters, FetchByIndices.AggregationType resultType)
          Retrieve the collection of prevelant objects of the specified type that are indexed by the specified fields and values.
 Collection<PrevalentObject> PrevalentSystem.fetchIntersection(Class cls, Map<String,?> parameters)
          Fetch the prevalent object(s) of the specified cls type which has the specified indexed field values.
 Collection<P> PrevalentManager.fetchIntersection(Class type, Map<String,?> parameters)
          Retrieve the collection of prevelant objects of the specified type that are indexed by the specified fields and values.
 Collection<P> AbstractDatabase.fetchIntersection(Class cls, Map<String,?> parameters)
          Fetch the prevalent object(s) of the specified cls type which has the specified indexed field values.
 Collection<PrevalentObject> PrevalentSystem.fetchUnion(Class cls, Map<String,?> parameters)
          Fetch the prevalent object(s) of the specified cls type which has the specified indexed field values.
 Collection<P> PrevalentManager.fetchUnion(Class type, Map<String,?> parameters)
          Retrieve the collection of prevelant objects of the specified type that are indexed by the specified fields and values.
 Collection<P> AbstractDatabase.fetchUnion(Class cls, Map<String,?> parameters)
          Fetch the prevalent object(s) of the specified cls type which has the specified indexed field values.
static Prevayler PrevalentSystemFactory.getPrevayler()
          Boot-strap a prevalent system using the default PrevalentSystem class.
static Prevayler PrevalentSystemFactory.getPrevayler(Class system)
          Create a prevalent system for the specified system class.
static Prevayler PrevalentSystemFactory.getPrevayler(Class system, String directory)
          Create a prevalent system for the specified system class.
static Prevayler PrevalentSystemFactory.getPrevayler(Class system, String directory, String serialiser)
          Create a prevalent system for the specified system class.
private  boolean SearchSystem.hasIndices(PrevalentObject object)
          Determine whether the prevalent object has any full-text search indices specified.
protected  void SearchSystem.index(PrevalentObject object)
          Over-ridden to process search annotations for the object.
protected  void IndexSystem.index(PrevalentObject object)
          Manage additional maps required to support qeries on the prevalent object.
protected  void IndexSystem.indexClass(PrevalentObject object)
          Process the index annotations on the prevalent object and manage the StorageSystem.indexMap as appropriate.
protected  void ConstraintSystem.indexClass(PrevalentObject object)
          Over-ridden to process the foreign key annotations on the prevalent object and manage the @link StorageSystsem#indexMap} as appropriate.
protected  void IndexSystem.indexFields(PrevalentObject object)
          Process Index annotations on the fields of the specified prevalent object and manage the StorageSystem.indexMap as appropriate.
protected  void ConstraintSystem.indexFields(PrevalentObject object)
          Over-ridden to process ForeignKey annotations on the fields of the specified prevalent object and manage the StorageSystem.indexMap as appropriate.
private  void ConstraintSystem.nullReference(String className, String field, PrevalentObject object)
          Set the field in className that refers to object to null.
private  void ObjectGraphSystem.populateReference(PrevalentObject object)
          Populate the references to other prevalent objects in the specified prevalent object.
protected  void ConstraintSystem.preAdd(PrevalentObject object)
          Check the prevalent object specified to ensure that it may be safely added to the prevalent system.
protected  void ConstraintSystem.preDelete(PrevalentObject object, Date executionTime)
          Process any delete constraints configured for the specified prevalent object.
protected  void ConstraintSystem.preDelete(String className, PrevalentObject object, Date executionTime)
          Check the foreign key relationship from instances of the specified class to the prevalent object specified and process as necessary.
private  void ConstraintSystem.processForeignKey(ForeignKey key, PrevalentObject object)
          Process the foreign key annotation for a field declared at the prevalent class level and manage the StorageSystem.indexMap as appropriate.
private  void ConstraintSystem.processForeignKeys(PrevalentObject object)
          Process the foreign keys annotation for the prevalent class.
private  void IndexSystem.processIndex(Index index, PrevalentObject object)
          Process the Index annotation at the class level of the specified prevalent object.
private  void IndexSystem.processIndices(PrevalentObject object)
          Process the Indices annotation and manage the StorageSystem.indexMap as appropriate.
protected  void SearchSystem.remove(PrevalentObject object)
          Over-ridden to remove the search index for the specified prevalent object.
protected  void IndexSystem.remove(PrevalentObject object)
          Remove the index for the specified prevalent object.
protected  void ConstraintSystem.remove(PrevalentObject object)
          Over-ridden to remove the references to the prevalent object being removed from the system from the reference storage container.
 P PrevalentManager.save(P object)
          Save the specified prevalent object to the prevalent system.
 P Database.save(P object)
          Save the specified prevalent object to the prevalent system.
 PrevalentObject PrevalentSystem.save(PrevalentObject object, Date executionTime)
          Save the specified prevalent object to the prevalent system.
 PrevalentObject DatabaseSystem.save(PrevalentObject object, Date executionTime)
          Save the specified prevalent object to the prevalent system.
 Collection<P> PrevalentManager.search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, int count)
          Execute the specified lucene query and return the collection of matching prevalent objects.
 Collection<P> Database.search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, int count)
          Execute the specified lucene query and return the collection of matching prevalent objects.
 Collection<PrevalentObject> PrevalentSystem.search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, int count, org.apache.lucene.search.Sort sort)
          Execute the specified lucene query and return the collection of matching prevalent objects.
 Collection<P> PrevalentManager.search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, int count, org.apache.lucene.search.Sort sort)
          Execute the specified lucene query and return the collection of matching prevalent objects.
 Collection<P> AbstractDatabase.search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter, int count, org.apache.lucene.search.Sort sort)
          Execute the specified lucene query and return the collection of matching prevalent objects.
 Collection<P> PrevalentManager.search(org.apache.lucene.search.Query query, int count)
          Execute the specified lucene query and return the collection of matching prevalent objects.
 Collection<P> Database.search(org.apache.lucene.search.Query query, int count)
          Execute the specified lucene query and return the collection of matching prevalent objects.
protected  void PrevalentSystem.setOid(PrevalentObject object)
          Set the PrevalentObject.objectId field to a new value if not already set.
protected  void ObjectGraphSystem.update(Field field, PrevalentObject object, Date executionTime)
          Replace the prevalent object in the field specified from the specified object prevalent object to the po object that exists in the system.
protected  PrevalentObject PrevalentSystem.update(PrevalentObject object, Date executionTime)
          Update the specified prevalent object in the prevalent system.
 

Uses of PrevalentException in com.sptci.prevayler.query
 

Methods in com.sptci.prevayler.query that throw PrevalentException
protected  P Search.query(S system, Date timestamp)
          Execute the query on the prevalent system and return the prevalent object instances that match the specified query.
protected  Collection<P> FetchRange.query(S system, Date timestamp)
          Execute the query on the prevalent system and return the prevalent objects that fall in the specified range.
protected  P FetchByIndices.query(S system, Date timestamp)
          Execute the query on the prevalent system and return the collection of
protected  P FetchByIndex.query(S system, Date timestamp)
          Execute the query on the prevalent system and return the collection of
protected  P Fetch.query(S system, Date timestamp)
          Execute the query on the prevalent system and return the prevalent object uniquely identified by the specified Fetch.objectId.
 


SPT Object Database API