| org.objectweb.speedo.genclass.api.SpeedoGenClassPO
All known Subclasses: org.objectweb.speedo.genclass.map.HashtableImpl, org.objectweb.speedo.genclass.collection.ArrayListImpl, org.objectweb.speedo.genclass.collection.HashSetImpl, org.objectweb.speedo.genclass.GenClass, org.objectweb.speedo.genclass.collection.VectorImpl, org.objectweb.speedo.genclass.map.HashMapImpl, org.objectweb.speedo.genclass.map.PropertiesImpl, org.objectweb.speedo.genclass.collection.LinkedListImpl, org.objectweb.speedo.genclass.map.TreeMapImpl,
SpeedoGenClassPO | public interface SpeedoGenClassPO extends PersistentObjectItf,SpeedoGenClassCoherence(Code) | | This interfaces represents a PersistentObjectItf for a generic class (Collectio, Set,
Map, ...)
It permits to specify the mapper throught the generic class is persistent.
The Mapper name permits to know the type of GenClassMapping and
GenClassBinding (rdb, fos, ...).
The PType of the generic class permit to known which is GenClassMapping
instance to use.
author: S.Chassande-Barrioz |
fireSpeedoElementAdded | void fireSpeedoElementAdded(Object elem)(Code) | | Notifies the listeners of this gen class that an element has been added
to this gen class.
Parameters: elem - the element that has been added. |
fireSpeedoElementRemoved | void fireSpeedoElementRemoved(Object elem)(Code) | | Notifies the listeners of this gen class that an element has been removed
to this gen class.
Parameters: elem - the element that has been removed. |
init | void init(PType ptype, String linkedField, Object pnameHints, Logger logger)(Code) | | Initializes a Genclass instance
Parameters: ptype - is the PType of the genclass Parameters: linkedField - is the name of the field referencing the genclass Parameters: pnameHints - is a helper using for the identifier allocation (export)persistent Parameters: logger - is the logger instance for logging. |
setElements | void setElements(Object o)(Code) | | Assignes the new value of the generic class (Collection, Map or Array
or ...).
|
speedoAddGenClassListener | void speedoAddGenClassListener(SpeedoGenClassListener l)(Code) | | Adds a listener to this gen class instance. This listener will be
notified each time an element is added or removed for this gen class.
Parameters: l - a gen class listener. |
speedoGetGenClassId | String speedoGetGenClassId()(Code) | | a string which represents the fully path of the persistent fieldof the class with wich the generic class is persistent.If the linked fiekf is the 'f1' provided by the class 'com.foo.Bar'then the returned string will be 'com.foo.Bar/f1' |
speedoGetPBinding | PBinding speedoGetPBinding()(Code) | | the pbinding associated to the generic class. The value is notused if the generic class is not persistent. |
speedoGetPType | PType speedoGetPType()(Code) | | the PType of the generic class. |
speedoSetGcId | void speedoSetGcId(int gcid)(Code) | | Sets the id of this gen class instance (id of the field that references
this instance).
Parameters: gcid - the new id of this gen class instance. |
speedoSetLinkedField | void speedoSetLinkedField(String lf)(Code) | | Assignes the linked field name for this generic class.
Parameters: lf - is tring which represents the fully path of the persistentfield of the class with wich the generic class is persistent.If the linked fiekf is the 'f1' provided by the class 'com.foo.Bar'then the expected string is 'com.foo.Bar/f1' |
speedoSetPBinding | void speedoSetPBinding(PBinding pb)(Code) | | assignes the PBinding to use to load/store the generic class
Call this method with null value means that the generic is no more
persistent.
Parameters: pb - is the PBinding. |
speedoSetPNameHints | void speedoSetPNameHints(Object hints)(Code) | | Assignes the hints needed to build the PName of the persistent object
during the export action.
|
speedoSetPType | void speedoSetPType(PType ptype)(Code) | | Assignes the PType of the generic class.
Parameters: ptype - of the generic class |
|
|