|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpeedoGenClassPO
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.
Field Summary |
---|
Fields inherited from interface org.objectweb.jorm.api.PBinding |
---|
ACTION_BIND, ACTION_EXIST, ACTION_EXPORT, ACTION_READ, ACTION_UNBIND, ACTION_UNEXPORT, ACTION_WRITE, LIFECYCLE_ACTIVEFORIO, LIFECYCLE_DELTOWRITE, LIFECYCLE_ERROR, LIFECYCLE_NEWTOWRITE, LIFECYCLE_NOTBOUND |
Method Summary | |
---|---|
void |
clear()
|
java.lang.Object |
createGenClass()
|
void |
fireSpeedoElementAdded(java.lang.Object elem)
Notifies the listeners of this gen class that an element has been added to this gen class. |
void |
fireSpeedoElementRemoved(java.lang.Object elem)
Notifies the listeners of this gen class that an element has been removed to this gen class. |
void |
init(org.objectweb.jorm.type.api.PType ptype,
java.lang.String linkedField,
java.lang.Object pnameHints,
org.objectweb.util.monolog.api.Logger logger)
Initializes a Genclass instance |
void |
setElements(java.lang.Object o)
Assignes the new value of the generic class (Collection, Map or Array or ...). |
void |
speedoAddGenClassListener(SpeedoGenClassListener l)
Adds a listener to this gen class instance. |
java.lang.String |
speedoGetGenClassId()
|
org.objectweb.jorm.api.PBinding |
speedoGetPBinding()
|
org.objectweb.jorm.type.api.PType |
speedoGetPType()
|
void |
speedoSetGcId(int gcid)
Sets the id of this gen class instance (id of the field that references this instance). |
void |
speedoSetLinkedField(java.lang.String lf)
Assignes the linked field name for this generic class. |
void |
speedoSetPBinding(org.objectweb.jorm.api.PBinding pb)
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. |
void |
speedoSetPNameHints(java.lang.Object hints)
Assignes the hints needed to build the PName of the persistent object during the export action. |
void |
speedoSetPType(org.objectweb.jorm.type.api.PType ptype)
Assignes the PType of the generic class. |
Methods inherited from interface org.objectweb.speedo.mim.api.PersistentObjectItf |
---|
speedoAdd, speedoCopyState, speedoCreateState, speedoGetEncodedPName, speedoGetHome, speedoGetPNameHints, speedoGetPOManager, speedoGetReferenceState, speedoGetState, speedoIsActive, speedoIsActive, speedoIsPersistent, speedoSetEncodedPName, speedoSetReferenceState |
Methods inherited from interface org.objectweb.jorm.api.PBinding |
---|
bind, exist, export, export, getPClassMapping, getPName, getStatus, init, read, read, read, unbind, unexport, write |
Methods inherited from interface org.objectweb.perseus.cache.replacement.api.ReplaceableCacheEntry |
---|
getCeAge, setCeAge |
Methods inherited from interface org.objectweb.perseus.cache.api.FixableCacheEntry |
---|
fixCe, getCeFixCount, unfixCe |
Methods inherited from interface org.objectweb.perseus.cache.api.CacheEntry |
---|
getCeIdentifier, getCeObject |
Methods inherited from interface org.objectweb.speedo.genclass.api.SpeedoGenClassCoherence |
---|
speedoAdd, speedoRemove |
Method Detail |
---|
void speedoSetPType(org.objectweb.jorm.type.api.PType ptype)
ptype
- of the generic classorg.objectweb.jorm.type.api.PType speedoGetPType()
java.lang.String speedoGetGenClassId()
void speedoSetLinkedField(java.lang.String lf)
lf
- is tring which represents the fully path of the persistent
field 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'void speedoSetPBinding(org.objectweb.jorm.api.PBinding pb)
pb
- is the PBinding.org.objectweb.jorm.api.PBinding speedoGetPBinding()
void setElements(java.lang.Object o)
java.lang.Object createGenClass()
void speedoSetGcId(int gcid)
gcid
- the new id of this gen class instance.void speedoAddGenClassListener(SpeedoGenClassListener l)
l
- a gen class listener.void fireSpeedoElementAdded(java.lang.Object elem)
elem
- the element that has been added.void fireSpeedoElementRemoved(java.lang.Object elem)
elem
- the element that has been removed.void clear()
void init(org.objectweb.jorm.type.api.PType ptype, java.lang.String linkedField, java.lang.Object pnameHints, org.objectweb.util.monolog.api.Logger logger)
ptype
- is the PType of the genclasslinkedField
- is the name of the field referencing the genclasspnameHints
- is a helper using for the identifier allocation (export)
persistentlogger
- is the logger instance for logging.void speedoSetPNameHints(java.lang.Object hints)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |