| java.lang.Object org.objectweb.speedo.genclass.GenClass
All known Subclasses: org.objectweb.speedo.genclass.map.MapImpl, org.objectweb.speedo.genclass.ejb.EJBGenClass, org.objectweb.speedo.genclass.collection.CollectionImpl, org.objectweb.speedo.genclass.jdo.JDOGenClass,
GenClass | abstract public class GenClass implements SpeedoGenClassPO,SpeedoGenClassSerializable,Loggable,PBindingCtrl(Code) | | This class is a basic implementation of the SpeedoGenClassPO interface.
It uses a delegate PBinding.
author: S.Chassande-Barrioz |
Method Summary | |
public void | bind(PName name) | public boolean | elementIsReference() | public boolean | exist(Object o) | public PName | export(Object o) | public PName | export(Object o, Object o1) | public void | fireSpeedoElementAdded(Object elem) | public void | fireSpeedoElementRemoved(Object elem) | public void | fixCe() | public long | getCeAge() | public int | getCeFixCount() | public Object | getCeIdentifier() | public Object | getCeObject() | public Object | getDataIdentifier(Object o) | public Collection | getDataIdentifiers(Collection os) | public Logger | getLogger() | public LoggerFactory | getLoggerFactory() | public PClassMapping | getPClassMapping() | public PName | getPName() | public Collection | getSpeedoAccessors() | public byte | getStatus() | public void | init(PType _ptype, String _linkedField, Object _pnameHints, Logger _logger) | public void | init(PClassMapping mapping) | public void | read(Object o, PAccessor accessor) | public void | read(Object o, PAccessor pAccessor, Object o1) | public void | read(Object o, PAccessor pAccessor, Object o1, boolean forUpdate) | public void | removeSpeedoAccessor(StateItf sa) | public void | setCeAge(long l) | public void | setElements(Object o) Assignes the new value of the generic class (Collection, Map or Array
or ...). | public void | setLogger(Logger _logger) | public void | setLoggerFactory(LoggerFactory loggerfactory) | public void | setPName(PName pName) | public void | setStatus(byte b) | public void | speedoAdd(Object elem, int gcFieldNumber) | public boolean | speedoAdd(Object elemToAdd, Object hints) | public void | speedoAddGenClassListener(SpeedoGenClassListener l) | public void | speedoCopyState(StateItf src, StateItf dest) | abstract public StateItf | speedoCreateState() | public Object | speedoGetEncodedPName() | public String | speedoGetGenClassId() | public HomeItf | speedoGetHome() | public PBinding | speedoGetPBinding() the pbinding associated to the generic class. | public Object | speedoGetPNameHints() | public POManagerItf | speedoGetPOManager() | public PType | speedoGetPType() | abstract public StateItf | speedoGetReferenceState() | public StateItf | speedoGetState() | public boolean | speedoIsActive() | public void | speedoIsActive(boolean newvalue) | public boolean | speedoIsPersistent() | public boolean | speedoRemove(Object elemToRemove, Object hints) | public void | speedoSetEncodedPName(Object _encodedPName) | public void | speedoSetGcId(int _gcid) | public void | speedoSetLinkedField(String lf) Assignes the linked field name for this generic class. | public void | speedoSetPBinding(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. | public void | speedoSetPNameHints(Object hints) | public void | speedoSetPType(PType _ptype) Assignes the PType of the generic class. | abstract public void | speedoSetReferenceState(StateItf refAcc) | public void | unbind() | public void | unexport(Object o) | public void | unfixCe() | public void | write(Object o, PAccessor accessor) |
gcid | protected int gcid(Code) | | Id of the field that references this gen class instance
|
linkedField | protected String linkedField(Code) | | The linked field associated to this gen class
|
listeners | protected List listeners(Code) | | List of SpeedoGenClassListener
|
logger | public transient Logger logger(Code) | | The logger used to trace this generic class
Defined as transient.
|
mapperName | protected String mapperName(Code) | | is the name of the mapper inside which the generic class is persistent
|
pbinding | protected PBindingCtrl pbinding(Code) | | is the PBinding which permits to store/load the data into/from the support
|
pnameHints | protected Object pnameHints(Code) | | Is the PName which
|
projectName | protected String projectName(Code) | | is the name of the project name inside which the generic class is used.
|
ptype | protected PType ptype(Code) | | is the type of the generic class
|
speedoIsActive | protected boolean speedoIsActive(Code) | | This fields indicates if the po is active
|
bind | public void bind(PName name) throws PException(Code) | | |
elementIsReference | public boolean elementIsReference()(Code) | | |
fireSpeedoElementAdded | public void fireSpeedoElementAdded(Object elem)(Code) | | |
fireSpeedoElementRemoved | public void fireSpeedoElementRemoved(Object elem)(Code) | | |
fixCe | public void fixCe()(Code) | | |
getCeAge | public long getCeAge()(Code) | | |
getCeFixCount | public int getCeFixCount()(Code) | | |
getLogger | public Logger getLogger()(Code) | | |
getLoggerFactory | public LoggerFactory getLoggerFactory()(Code) | | |
getPClassMapping | public PClassMapping getPClassMapping()(Code) | | |
getPName | public PName getPName()(Code) | | |
getStatus | public byte getStatus()(Code) | | |
init | public void init(PType _ptype, String _linkedField, Object _pnameHints, Logger _logger)(Code) | | |
init | public void init(PClassMapping mapping) throws PException(Code) | | |
read | public void read(Object o, PAccessor accessor) throws PException(Code) | | |
read | public void read(Object o, PAccessor pAccessor, Object o1, boolean forUpdate) throws PException(Code) | | |
removeSpeedoAccessor | public void removeSpeedoAccessor(StateItf sa)(Code) | | |
setCeAge | public void setCeAge(long l)(Code) | | |
setElements | public void setElements(Object o)(Code) | | Assignes the new value of the generic class (Collection, Map or Array
or ...).
|
setLogger | public void setLogger(Logger _logger)(Code) | | |
setLoggerFactory | public void setLoggerFactory(LoggerFactory loggerfactory)(Code) | | |
setPName | public void setPName(PName pName)(Code) | | |
setStatus | public void setStatus(byte b)(Code) | | |
speedoAdd | public void speedoAdd(Object elem, int gcFieldNumber)(Code) | | |
speedoGetEncodedPName | public Object speedoGetEncodedPName()(Code) | | |
speedoGetGenClassId | public 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 | public PBinding speedoGetPBinding()(Code) | | the pbinding associated to the generic class. The value is if thegeneric class is not persistent. |
speedoGetPNameHints | public Object speedoGetPNameHints()(Code) | | |
speedoGetPType | public PType speedoGetPType()(Code) | | the PType of the generic class. |
speedoGetReferenceState | abstract public StateItf speedoGetReferenceState()(Code) | | |
speedoIsActive | public boolean speedoIsActive()(Code) | | |
speedoIsActive | public void speedoIsActive(boolean newvalue)(Code) | | |
speedoIsPersistent | public boolean speedoIsPersistent()(Code) | | |
speedoSetEncodedPName | public void speedoSetEncodedPName(Object _encodedPName)(Code) | | |
speedoSetGcId | public void speedoSetGcId(int _gcid)(Code) | | |
speedoSetLinkedField | public 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 | public 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 | public void speedoSetPNameHints(Object hints)(Code) | | |
speedoSetPType | public void speedoSetPType(PType _ptype)(Code) | | Assignes the PType of the generic class.
Parameters: _ptype - of the generic class |
speedoSetReferenceState | abstract public void speedoSetReferenceState(StateItf refAcc)(Code) | | |
unbind | public void unbind() throws PException(Code) | | |
unexport | public void unexport(Object o) throws PException(Code) | | |
unfixCe | public void unfixCe() throws UnFixProtocolException(Code) | | |
write | public void write(Object o, PAccessor accessor) throws PException(Code) | | |
|
|