Uses of Class
org.objectweb.jac.aspects.persistence.OID

Packages that use OID
org.objectweb.jac.aspects.persistence Provides a generic persistence aspect for JAC objects.  
 

Uses of OID in org.objectweb.jac.aspects.persistence
 

Subclasses of OID in org.objectweb.jac.aspects.persistence
 class LongOID
          An implementation of OID with a long
 class StringOID
          An implementation of OID with a String
 

Fields in org.objectweb.jac.aspects.persistence declared as OID
 OID RootObject.oid
           
 

Methods in org.objectweb.jac.aspects.persistence that return OID
 OID SQLStorage.getCollectionID(OID oid, CollectionItem collection)
           
 OID SQLStorage.getOIDFromName(String name)
           
 OID SQLStorage.createObject(String className)
          Creates a new object using a PostgreSQL sequance.
 OID SQLStorage.getOID(String query)
           
 OID FSStorage.createObject(String className)
           
 OID FSStorage.getCollectionID(OID oid, CollectionItem collection)
           
 OID FSStorage.getOIDFromName(String name)
           
 OID PersistenceWrapper.makePersistent(Wrappee wrappee)
          Makes an object persistent if it is not already.
 OID AbstractPersistenceWrapper.getOID(Wrappee wrappee)
           
 OID Storage.createObject(String className)
          Create an object in the storage.
 OID Storage.getCollectionID(OID oid, CollectionItem collection)
          Get the ID of a collection
 OID Storage.getOIDFromName(String name)
          Get the ID of an object from its name.
 OID PersistenceAC.getOID(Wrappee wrappee)
           
 

Methods in org.objectweb.jac.aspects.persistence with parameters of type OID
 void SQLStorage.deleteObject(OID oid)
           
 void SQLStorage.setField(OID oid, FieldItem field, Object object)
           
 void SQLStorage.updateField(OID oid, FieldItem field, Object object)
           
 Object SQLStorage.getField(OID oid, FieldItem field)
           
 StorageField[] SQLStorage.getFields(OID oid, ClassItem cl, FieldItem[] fields)
           
 void SQLStorage.removeField(OID oid, FieldItem field, Object value)
           
 OID SQLStorage.getCollectionID(OID oid, CollectionItem collection)
           
 List SQLStorage.getCollectionValues(OID oid, CollectionItem collection, String table, String orderBy)
           
 boolean SQLStorage.collectionContains(String table, OID cid, Object value)
           
 void SQLStorage.clearList(OID cid)
           
 List SQLStorage.getList(OID oid, CollectionItem collection)
           
 List SQLStorage.getList(OID cid)
           
 long SQLStorage.getListSize(OID cid)
           
 boolean SQLStorage.listContains(OID cid, Object value)
           
 Object SQLStorage.getListItem(OID cid, long index)
           
 long SQLStorage.getIndexInList(OID cid, Object value)
           
protected  long SQLStorage.getInternalIndexInList(OID cid, Object value)
           
 long SQLStorage.getLastIndexInList(OID cid, Object value)
           
 void SQLStorage.addToList(OID cid, long position, Object value)
           
 void SQLStorage.addToList(OID cid, Object value)
           
 void SQLStorage.setListItem(OID cid, long index, Object value)
           
 void SQLStorage.removeFromList(OID cid, long position)
           
 void SQLStorage.removeFromList(OID cid, Object value)
           
 void SQLStorage.clearSet(OID cid)
           
 List SQLStorage.getSet(OID oid, CollectionItem collection)
           
 List SQLStorage.getSet(OID cid)
           
 long SQLStorage.getSetSize(OID cid)
           
 boolean SQLStorage.setContains(OID cid, Object value)
           
 boolean SQLStorage.addToSet(OID cid, Object value)
           
 boolean SQLStorage.removeFromSet(OID cid, Object value)
           
 void SQLStorage.clearMap(OID cid)
           
 Map SQLStorage.getMap(OID oid, CollectionItem collection)
           
 Map SQLStorage.getMap(OID cid)
           
 long SQLStorage.getMapSize(OID cid)
           
 Object SQLStorage.putInMap(OID cid, Object key, Object value)
           
 Object SQLStorage.getFromMap(OID cid, Object key)
           
 boolean SQLStorage.mapContainsKey(OID cid, Object key)
           
 boolean SQLStorage.mapContainsValue(OID cid, Object value)
           
 Object SQLStorage.removeFromMap(OID cid, Object key)
           
 String SQLStorage.getNameFromOID(OID oid)
           
 void SQLStorage.bindOIDToName(OID oid, String name)
           
 String SQLStorage.getClassID(OID oid)
           
 void FSStorage.deleteObject(OID oid)
           
 void FSStorage.setField(OID oid, FieldItem field, Object value)
           
 void FSStorage.updateField(OID oid, FieldItem field, Object value)
           
 Object FSStorage.getField(OID oid, FieldItem field)
           
protected  Properties FSStorage.getFields(OID oid)
           
 StorageField[] FSStorage.getFields(OID oid, ClassItem cl, FieldItem[] fields)
           
protected  long FSStorage.getCollectionSize(OID cid)
           
 OID FSStorage.getCollectionID(OID oid, CollectionItem collection)
           
 void FSStorage.clearList(OID cid)
           
 List FSStorage.getList(OID oid, CollectionItem collection)
           
 List FSStorage.getList(OID cid)
           
 long FSStorage.getListSize(OID cid)
           
 Object FSStorage.getListItem(OID cid, long index)
           
 boolean FSStorage.listContains(OID cid, Object value)
           
protected  void FSStorage.saveList(OID cid, List list)
           
 void FSStorage.addToList(OID cid, long position, Object value)
           
 void FSStorage.addToList(OID cid, Object value)
           
 void FSStorage.setListItem(OID cid, long index, Object value)
           
 void FSStorage.removeFromList(OID cid, long position)
           
 void FSStorage.removeFromList(OID cid, Object value)
           
 long FSStorage.getIndexInList(OID cid, Object value)
           
 long FSStorage.getLastIndexInList(OID cid, Object value)
           
 void FSStorage.clearSet(OID cid)
           
 List FSStorage.getSet(OID oid, CollectionItem collection)
           
 List FSStorage.getSet(OID cid)
           
 long FSStorage.getSetSize(OID cid)
           
 boolean FSStorage.addToSet(OID cid, Object value)
           
 boolean FSStorage.removeFromSet(OID cid, Object value)
           
 boolean FSStorage.setContains(OID cid, Object value)
           
 Map FSStorage.getMap(OID oid, CollectionItem collection)
           
 Map FSStorage.getMap(OID cid)
           
 long FSStorage.getMapSize(OID cid)
           
protected  void FSStorage.saveMap(OID cid, Map map)
           
 void FSStorage.clearMap(OID cid)
           
 Object FSStorage.putInMap(OID cid, Object key, Object value)
           
 Object FSStorage.getFromMap(OID cid, Object key)
           
 boolean FSStorage.mapContainsKey(OID cid, Object key)
           
 boolean FSStorage.mapContainsValue(OID cid, Object value)
           
 Object FSStorage.removeFromMap(OID cid, Object key)
           
 void FSStorage.removeField(OID oid, FieldItem field, Object value)
           
 String FSStorage.getNameFromOID(OID oid)
           
 void FSStorage.bindOIDToName(OID oid, String name)
           
 String FSStorage.getClassID(OID oid)
           
protected  PrintWriter FSStorage.getPrintWriter(OID oid, boolean append, boolean autoFlush)
           
protected  long MapWrapper.getCollectionSize(OID oid)
           
protected  long SetWrapper.getCollectionSize(OID oid)
           
protected  long ListWrapper.getCollectionSize(OID oid)
           
 void PersistenceWrapper.loadAllFields(Wrappee wrappee, OID oid)
          Load all the fields of an object from the storage and initialize the object.
 void PersistenceWrapper.wrapCollections(Wrappee wrappee, OID oid, boolean isNew)
          This role method wraps all the collection of the current wrappee so that they will trigger the needed loads from the storage when they are accessed.
 void PersistenceWrapper.getCollection(Wrappee wrappee, OID oid, CollectionItem collection)
          This method loads alls the persistent objects that are contained in this collection from the storage.
protected  void PersistenceWrapper.addToCollection(Interaction interaction, OID oid, CollectionItem collection, Object value)
          This method stores the persistent object that is added to the collection into the storage.
protected  void PersistenceWrapper.removeFromCollection(Interaction interaction, OID oid, CollectionItem collection, Object value)
          This method delete the persistent object that is removed from the collection from the storage.
 void PersistenceWrapper.getReference(Wrappee wrappee, OID oid, FieldItem reference)
          This method loads the persistent object that is pointed by the reference from the storage.
protected  void PersistenceWrapper.setReference(Wrappee wrappee, OID oid, FieldItem reference, Wrappee value)
          This method stores the persistent object that is pointed by the reference into the storage.
protected  void PersistenceWrapper.setField(Wrappee wrappee, OID oid, FieldItem field)
          This method stores the field into the storage.
 void PersistenceWrapper.initCollections(Wrappee wrappee, OID oid, CollectionItem[] collections)
           
 void PersistenceWrapper.initAllFields(Wrappee wrappee, OID oid)
          Initialize all fields of an object in the storage.
protected abstract  long CollectionWrapper.getCollectionSize(OID oid)
           
 void Storage.deleteObject(OID oid)
          Delete an object from the storage.
 void Storage.setField(OID oid, FieldItem field, Object value)
          Initialize the value of an object's field.
 void Storage.updateField(OID oid, FieldItem field, Object value)
          Update a field value.
 Object Storage.getField(OID oid, FieldItem field)
          Get the value of a field.
 StorageField[] Storage.getFields(OID oid, ClassItem cl, FieldItem[] fields)
          Get the values of several fields.
 OID Storage.getCollectionID(OID oid, CollectionItem collection)
          Get the ID of a collection
 List Storage.getList(OID oid, CollectionItem collection)
          Get a List from the storage.
 List Storage.getList(OID cid)
          Get a List from the storage.
 Object Storage.getListItem(OID cid, long index)
          Get an element from a list
 long Storage.getListSize(OID cid)
          Get the number of objects contained in a list
 boolean Storage.listContains(OID cid, Object value)
          Say if a List contains an object.
 void Storage.addToList(OID cid, long position, Object value)
          Insert a value into an existing List.
 void Storage.addToList(OID cid, Object value)
          Add a value at the end of a list.
 void Storage.setListItem(OID cid, long index, Object value)
          Set the value of a list element.
 void Storage.removeFromList(OID cid, long position)
          Remove a value from an existing list.
 void Storage.removeFromList(OID cid, Object value)
          Remove the first value from an existing list.
 void Storage.clearList(OID cid)
          Remove all objects from a list.
 long Storage.getIndexInList(OID cid, Object value)
          Get the smallest index of an element in a List.
 long Storage.getLastIndexInList(OID cid, Object value)
          Get the highest index of an element in a List.
 List Storage.getSet(OID oid, CollectionItem collection)
          Get the elements of a Set.
 List Storage.getSet(OID cid)
          Get the elements of a Set.
 long Storage.getSetSize(OID cid)
          Get the number of objects contained in a set
 boolean Storage.addToSet(OID cid, Object value)
          Add an object to a Set.
 boolean Storage.removeFromSet(OID cid, Object value)
          Remove an element from a Set.
 void Storage.clearSet(OID cid)
          Remove all objects from a set.
 boolean Storage.setContains(OID cid, Object value)
          Say if a set contains an object.
 Map Storage.getMap(OID oid, CollectionItem collection)
          Describe getMap method here.
 Map Storage.getMap(OID cid)
          Get the elements of a Map.
 long Storage.getMapSize(OID cid)
          Get the number of objects contained in a map
 Object Storage.putInMap(OID cid, Object key, Object value)
          Put an element in a Map.
 Object Storage.getFromMap(OID cid, Object key)
          Get the value associated to a key from a Map.
 boolean Storage.mapContainsKey(OID cid, Object key)
          Says if a Map contains a key.
 boolean Storage.mapContainsValue(OID cid, Object value)
          Says if a Map contains a value.
 Object Storage.removeFromMap(OID cid, Object key)
          Remove a key from a Map.
 void Storage.clearMap(OID cid)
          Remove all objects from a set.
 void Storage.removeField(OID oid, FieldItem field, Object value)
          Remove a field from an existing object.
 String Storage.getNameFromOID(OID oid)
          Get the name of an object from its oid.
 void Storage.bindOIDToName(OID oid, String name)
          Bind an existing object to a logical name to that it can be found later on.
 String Storage.getClassID(OID oid)
          Get the class ID of a given object.
protected  void PersistenceAC.registerObject(OID oid, Object object)
          Add an object in the list of persistent objects.
 

Constructors in org.objectweb.jac.aspects.persistence with parameters of type OID
RootObject(OID oid, String name)
           
NoSuchOIDError(OID oid)