|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interfaces represents a SpeedoProxy 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.
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(PType ptype,
java.lang.String linkedField,
java.lang.Object pnameHints,
Logger logger)
Initializes a Genclass instance |
java.lang.String |
jdoGetGenClassId()
|
PBinding |
jdoGetPBinding()
|
PType |
jdoGetPType()
|
void |
jdoMakePersistent(ProxyManager pm,
SpeedoProxy sp)
Askes to the SpeedoGenClassProxy to make persistent an element of the gen class. |
SpeedoAccessor |
jdoReadIntention()
Askes the read access on the genclass. |
void |
jdoSetLinkedField(java.lang.String lf)
Assignes the linked field name for this generic class. |
void |
jdoSetPBinding(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 |
jdoSetPNameHints(java.lang.Object hints)
Assignes the hints needed to build the PName of the persistent object during the export action. |
void |
jdoSetPType(PType ptype)
Assignes the PType of the generic class. |
SpeedoAccessor |
jdoWriteIntention()
Askes the write access on the genclass. |
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. |
void |
speedoSetGcId(int gcid)
Sets the id of this gen class instance (id of the field that references this instance). |
Methods inherited from interface org.objectweb.speedo.genclass.api.SpeedoGenClassCoherence |
speedoAdd, speedoRemove |
Method Detail |
public void jdoSetPType(PType ptype)
ptype
- of the generic classpublic PType jdoGetPType()
public java.lang.String jdoGetGenClassId()
public void jdoSetLinkedField(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'public void jdoSetPBinding(PBinding pb)
pb
- is the PBinding.public PBinding jdoGetPBinding()
public void setElements(java.lang.Object o)
public void jdoMakePersistent(ProxyManager pm, SpeedoProxy sp)
pm
- is the persistence manager to use for making persistent the
speedo proxy. If this parameter is null a pm will be fetched on the pmf
if needed.sp
- is the speedo proxy to make persistent. null value is not
supported.
javax.jdo.JDOUserException
- if pm is null and no
PersistenceManager has been attached to the thread.public java.lang.Object createGenClass()
public void speedoSetGcId(int gcid)
gcid
- the new id of this gen class instance.public void speedoAddGenClassListener(SpeedoGenClassListener l)
l
- a gen class listener.public void fireSpeedoElementAdded(java.lang.Object elem)
elem
- the element that has been added.public void fireSpeedoElementRemoved(java.lang.Object elem)
elem
- the element that has been removed.public void clear()
public void init(PType ptype, java.lang.String linkedField, java.lang.Object pnameHints, 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.public void jdoSetPNameHints(java.lang.Object hints)
public SpeedoAccessor jdoWriteIntention()
public SpeedoAccessor jdoReadIntention()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |