org.objectweb.speedo.runtime.genclass
Class GenClass

org.objectweb.speedo.runtime.genclass.GenClass
All Implemented Interfaces:
SpeedoAccessor, SpeedoGenClassProxy, SpeedoProxy
Direct Known Subclasses:
CollectionImpl, MapImpl

public abstract class GenClass
implements SpeedoGenClassProxy

This class is a basic implementation of the SpeedoGenClassProxy interface. It uses a delegate PBinding.

Author:
S.Chassande-Barrioz

Field Summary
protected  SpeedoAccessor accessor
          Accessor used in pessimistic and persistent non transactional mode
protected  java.util.Collection accessors
          It is the list of accessors (optimistic case)
protected  long age
          This field is a logical clock used by the ReplacementManager
protected  int fixCount
          This field counts the fix operation done over this ReplaceableCacheEntry
protected  java.lang.Object inner
           
protected  boolean jdoIsActive
          This fields indicates if the proxy is active (attached to at least a Proxy Manager)
protected  byte jdoStatus
          The status of the instance used in pessimistic mode or outside a transaction.
protected  java.lang.String linkedField
          TODO
protected  org.objectweb.util.monolog.api.Logger logger
          The logger used to trace this generic class
protected  java.lang.String mapperName
          is the name of the mapper inside which the generic class is persistent
protected  org.objectweb.jorm.api.PBindingCtrl pbinding
          is the PBinding which permits to store/load the data into/from the support
protected  javax.jdo.PersistenceManagerFactory pmf
          This is field is null when the proxy is not active
protected  ProxyManagerSwitch pms
          This is field is null when the proxy is not active
protected  java.lang.Object pnameHints
          Is the PName which
protected  java.lang.String projectName
          is the name of the project name inside which the generic class is used.
protected  org.objectweb.jorm.type.api.PType ptype
          is the type of the generic class
protected  org.objectweb.perseus.persistence.api.TransactionalPersistenceManager tpm
          This field is the Transactional persistence manager.
protected  Transaction tx
          This field is the transaction (Working set associate to the proxy used in pessimistic mode or outside transaction.
 
Constructor Summary
GenClass()
           
GenClass(org.objectweb.jorm.type.api.PType ptype, java.lang.String linkedField, java.lang.Object pnameHints, java.lang.String mapperName)
           
 
Method Summary
 void bind(org.objectweb.jorm.naming.api.PName name)
           
protected abstract  SpeedoAccessor createAccessor()
           
 boolean elementIsReference()
           
 boolean exist(java.lang.Object o)
           
 org.objectweb.jorm.naming.api.PName export(java.lang.Object o)
           
 org.objectweb.jorm.naming.api.PName export(java.lang.Object o, java.lang.Object o1)
           
 void fixCe()
           
 long getCeAge()
           
 int getCeFixCount()
           
 java.lang.Object getCeIdentifier()
           
 java.lang.Object getCeObject()
           
abstract  java.util.Collection getGenClassElements(SpeedoAccessor sa)
           
 java.lang.Object getJormConfig()
          It retrieves an object helping the configuration of the Jorm class.
 org.objectweb.util.monolog.api.Logger getLogger()
           
 org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
           
 java.lang.Object getMemoryInstance()
           
 org.objectweb.jorm.api.PClassMapping getPClassMapping()
           
 org.objectweb.jorm.naming.api.PName getPName()
           
 SpeedoAccessor getSpeedoAccessor()
          It retrieves the SpeedoAccessor instance used in the current context.
 java.util.Collection getSpeedoAccessors()
          It retrieves the SpeedoAccessor instance used in the current context.
 byte getStatus()
           
 void init(org.objectweb.jorm.api.PClassMapping mapping)
           
 void jdoChangeStatus(byte action)
          Changes the status of this object
 void jdoCopyFields(java.lang.Object pc, int[] fieldNumbers)
           
 void jdoCopyKeyFieldsFromObjectId(javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer objectIdFieldConsumer, java.lang.Object o)
           
 void jdoCopyKeyFieldsToObjectId(java.lang.Object o)
           
 void jdoCopyKeyFieldsToObjectId(javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier objectIdFieldSupplier, java.lang.Object o)
           
 void jdoDeletePersistent(ProxyManager pm)
           
 java.lang.Object jdoGePNameHints()
          Retrieves the hints needed to build the PName of the persistent object during the export action.
 java.lang.String jdoGetGenClassId()
           
 java.lang.String jdoGetJdoFileName()
           
 java.lang.String jdoGetMapperName()
           
 java.lang.Object jdoGetObjectId()
           
 javax.jdo.PersistenceManager jdoGetPersistenceManager()
           
 javax.jdo.PersistenceManagerFactory jdoGetPersistenceManagerFactory()
           
 ProxyManagerSwitch jdoGetPersistenceManagerSwitch()
           
 java.lang.String jdoGetProjectName()
           
 org.objectweb.jorm.type.api.PType jdoGetPType()
           
 SpeedoProxy jdoGetSpeedoProxy()
           
 byte jdoGetStatus()
          Gets the current status of this object
 Transaction jdoGetTransaction()
           
 java.lang.Object jdoGetTransactionalObjectId()
           
 org.objectweb.perseus.persistence.api.TransactionalPersistenceManager jdoGetTransactionalPersistenceManager()
           
 boolean jdoIsActive()
          Tests whether the Proxy infrastructure has already been set.
 void jdoIsActive(boolean newvalue)
          Sets the new value of the proxy flags
 boolean jdoIsContainerId()
          The identifier of a generic class is based on the identifier of the class which references this generic class.
 boolean jdoIsDeleted()
           
 boolean jdoIsDirty()
           
 boolean jdoIsNew()
           
 boolean jdoIsPersistent()
           
 boolean jdoIsTransactional()
           
abstract  void jdoLoadFieldsFromAccessor(SpeedoAccessor sa)
          Stores fields owned by the accessor into the proxy
abstract  void jdoLoadFieldsInAccessor(SpeedoAccessor sa)
          Stores fields owned by this object into an accessor
 void jdoMakeDirty(java.lang.String fieldName)
           
 void jdoMakePersistent(ProxyManager pm, SpeedoProxy sp)
           
 javax.jdo.spi.PersistenceCapable jdoNewInstance(javax.jdo.spi.StateManager sm)
           
 javax.jdo.spi.PersistenceCapable jdoNewInstance(javax.jdo.spi.StateManager sm, java.lang.Object oid)
           
 java.lang.Object jdoNewObjectIdInstance()
           
 java.lang.Object jdoNewObjectIdInstance(java.lang.String s)
           
 void jdoProvideField(int fieldNumber)
           
 void jdoProvideFields(int[] fieldNumbers)
           
 void jdoReadIntention(SpeedoAccessor sa)
           
 void jdoReplaceField(int fieldNumber)
           
 void jdoReplaceFields(int[] fieldNumbers)
           
 void jdoReplaceFlags()
           
 void jdoReplaceStateManager(javax.jdo.spi.StateManager sm)
           
 void jdoSetLinkedField(java.lang.String lf)
          Assignes the linked field name for this generic class.
 void jdoSetMapperName(java.lang.String mn)
           
 org.objectweb.jorm.api.PBinding jdoSetPBinding()
           
 void jdoSetPBinding(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 jdoSetPersistenceManagerFactory(javax.jdo.PersistenceManagerFactory pmf)
          It assignes a PersistenceManagerFactory
 void jdoSetPersistenceManagerSwitch(ProxyManagerSwitch pms)
          It assignes the ProxyManager switch which will permit to find the ProxyManager which manages the proxy in a given context(thread)
 void jdoSetPNameHints(java.lang.Object hints)
          Assignes the hints needed to build the PName of the persistent object during the export action.
 void jdoSetPType(org.objectweb.jorm.type.api.PType ptype)
          Assignes the PType of the generic class.
 void jdoSetSpeedoProxy(SpeedoProxy sp)
          Assignes the SpeedoProxy attached to this state representation.
 void jdoSetStatus(byte newValue)
          Forces the new value of the status
 void jdoSetTransaction(Transaction tx)
          Assignes the context with which the accessor is bound.
 void jdoSetTransactionalPersistenceManager(org.objectweb.perseus.persistence.api.TransactionalPersistenceManager tpm)
          It assignes a TransactionalPersistenceManager
 void jdoWriteIntention(SpeedoAccessor sa)
           
 void read(java.lang.Object o, org.objectweb.jorm.api.PAccessor accessor)
           
 void read(java.lang.Object o, org.objectweb.jorm.api.PAccessor pAccessor, java.lang.Object o1)
           
 void removeSpeedoAccessor(SpeedoAccessor sa)
          Removes the given speedo accessor from the list of accessors of this proxy.
 void setCeAge(long l)
           
abstract  void setGCValue(java.lang.Object o)
           
 void setInner(java.lang.Object o)
          Assignes the new value of the generic class (Collection, Map or Array or ...).
 void setLogger(org.objectweb.util.monolog.api.Logger _logger)
           
 void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerfactory)
           
 void setPName(org.objectweb.jorm.naming.api.PName pName)
           
 void setStatus(byte b)
           
 void unbind()
           
 void unexport(java.lang.Object o)
           
 void unfixCe()
           
 void write(java.lang.Object o, org.objectweb.jorm.api.PAccessor accessor)
           
 
Methods inherited from interface org.objectweb.speedo.api.SpeedoProxy
jdoMakePersistent
 

Field Detail

jdoIsActive

protected boolean jdoIsActive
This fields indicates if the proxy is active (attached to at least a Proxy Manager)

jdoStatus

protected byte jdoStatus
The status of the instance used in pessimistic mode or outside a transaction. Otherwise the $classNameFields contains its status.

pmf

protected javax.jdo.PersistenceManagerFactory pmf
This is field is null when the proxy is not active

pms

protected ProxyManagerSwitch pms
This is field is null when the proxy is not active

tpm

protected org.objectweb.perseus.persistence.api.TransactionalPersistenceManager tpm
This field is the Transactional persistence manager.

accessors

protected java.util.Collection accessors
It is the list of accessors (optimistic case)

tx

protected Transaction tx
This field is the transaction (Working set associate to the proxy used in pessimistic mode or outside transaction.

fixCount

protected int fixCount
This field counts the fix operation done over this ReplaceableCacheEntry

age

protected long age
This field is a logical clock used by the ReplacementManager

pbinding

protected org.objectweb.jorm.api.PBindingCtrl pbinding
is the PBinding which permits to store/load the data into/from the support

accessor

protected SpeedoAccessor accessor
Accessor used in pessimistic and persistent non transactional mode

logger

protected org.objectweb.util.monolog.api.Logger logger
The logger used to trace this generic class

mapperName

protected java.lang.String mapperName
is the name of the mapper inside which the generic class is persistent

projectName

protected java.lang.String projectName
is the name of the project name inside which the generic class is used.

ptype

protected org.objectweb.jorm.type.api.PType ptype
is the type of the generic class

linkedField

protected java.lang.String linkedField
TODO

pnameHints

protected java.lang.Object pnameHints
Is the PName which

inner

protected java.lang.Object inner
Constructor Detail

GenClass

public GenClass()

GenClass

public GenClass(org.objectweb.jorm.type.api.PType ptype,
                java.lang.String linkedField,
                java.lang.Object pnameHints,
                java.lang.String mapperName)
Method Detail

elementIsReference

public boolean elementIsReference()

jdoMakePersistent

public void jdoMakePersistent(ProxyManager pm,
                              SpeedoProxy sp)

createAccessor

protected abstract SpeedoAccessor createAccessor()

jdoLoadFieldsInAccessor

public abstract void jdoLoadFieldsInAccessor(SpeedoAccessor sa)
Description copied from interface: SpeedoProxy
Stores fields owned by this object into an accessor
Specified by:
jdoLoadFieldsInAccessor in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Parameters:
sa - the accessor requiring persistent fields

jdoLoadFieldsFromAccessor

public abstract void jdoLoadFieldsFromAccessor(SpeedoAccessor sa)
Description copied from interface: SpeedoProxy
Stores fields owned by the accessor into the proxy
Specified by:
jdoLoadFieldsFromAccessor in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Parameters:
sa - the accessor containing persistent fields

getGenClassElements

public abstract java.util.Collection getGenClassElements(SpeedoAccessor sa)

setGCValue

public abstract void setGCValue(java.lang.Object o)

bind

public void bind(org.objectweb.jorm.naming.api.PName name)
          throws org.objectweb.jorm.api.PException

exist

public boolean exist(java.lang.Object o)
              throws org.objectweb.jorm.api.PException

export

public org.objectweb.jorm.naming.api.PName export(java.lang.Object o)
                                           throws org.objectweb.jorm.api.PException

export

public org.objectweb.jorm.naming.api.PName export(java.lang.Object o,
                                                  java.lang.Object o1)
                                           throws org.objectweb.jorm.api.PException

getPClassMapping

public org.objectweb.jorm.api.PClassMapping getPClassMapping()

getPName

public org.objectweb.jorm.naming.api.PName getPName()

getStatus

public byte getStatus()

setPName

public void setPName(org.objectweb.jorm.naming.api.PName pName)

setStatus

public void setStatus(byte b)

init

public void init(org.objectweb.jorm.api.PClassMapping mapping)
          throws org.objectweb.jorm.api.PException

read

public void read(java.lang.Object o,
                 org.objectweb.jorm.api.PAccessor accessor)
          throws org.objectweb.jorm.api.PException

read

public void read(java.lang.Object o,
                 org.objectweb.jorm.api.PAccessor pAccessor,
                 java.lang.Object o1)
          throws org.objectweb.jorm.api.PException

unbind

public void unbind()
            throws org.objectweb.jorm.api.PException

unexport

public void unexport(java.lang.Object o)
              throws org.objectweb.jorm.api.PException

write

public void write(java.lang.Object o,
                  org.objectweb.jorm.api.PAccessor accessor)
           throws org.objectweb.jorm.api.PException

jdoGetPersistenceManager

public javax.jdo.PersistenceManager jdoGetPersistenceManager()

jdoReplaceFlags

public void jdoReplaceFlags()

jdoNewInstance

public javax.jdo.spi.PersistenceCapable jdoNewInstance(javax.jdo.spi.StateManager sm)

jdoNewInstance

public javax.jdo.spi.PersistenceCapable jdoNewInstance(javax.jdo.spi.StateManager sm,
                                                       java.lang.Object oid)

jdoNewObjectIdInstance

public java.lang.Object jdoNewObjectIdInstance()

jdoGetObjectId

public java.lang.Object jdoGetObjectId()

jdoGetTransactionalObjectId

public java.lang.Object jdoGetTransactionalObjectId()

jdoReplaceField

public void jdoReplaceField(int fieldNumber)

jdoReplaceFields

public void jdoReplaceFields(int[] fieldNumbers)

jdoProvideField

public void jdoProvideField(int fieldNumber)

jdoProvideFields

public void jdoProvideFields(int[] fieldNumbers)

jdoCopyFields

public void jdoCopyFields(java.lang.Object pc,
                          int[] fieldNumbers)

jdoMakeDirty

public void jdoMakeDirty(java.lang.String fieldName)

jdoIsDirty

public boolean jdoIsDirty()

jdoIsTransactional

public boolean jdoIsTransactional()

jdoIsPersistent

public boolean jdoIsPersistent()

jdoIsNew

public boolean jdoIsNew()

jdoIsDeleted

public boolean jdoIsDeleted()

jdoReplaceStateManager

public void jdoReplaceStateManager(javax.jdo.spi.StateManager sm)

jdoNewObjectIdInstance

public java.lang.Object jdoNewObjectIdInstance(java.lang.String s)

jdoCopyKeyFieldsToObjectId

public void jdoCopyKeyFieldsToObjectId(java.lang.Object o)

jdoCopyKeyFieldsToObjectId

public void jdoCopyKeyFieldsToObjectId(javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier objectIdFieldSupplier,
                                       java.lang.Object o)

jdoCopyKeyFieldsFromObjectId

public void jdoCopyKeyFieldsFromObjectId(javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer objectIdFieldConsumer,
                                         java.lang.Object o)

jdoSetMapperName

public void jdoSetMapperName(java.lang.String mn)
Specified by:
jdoSetMapperName in interface SpeedoGenClassProxy
Parameters:
mn - is the mapper name by which the instance is persistent.

jdoSetPType

public void jdoSetPType(org.objectweb.jorm.type.api.PType ptype)
Assignes the PType of the generic class.
Specified by:
jdoSetPType in interface SpeedoGenClassProxy
Parameters:
ptype - of the generic class

jdoGetPType

public org.objectweb.jorm.type.api.PType jdoGetPType()
Specified by:
jdoGetPType in interface SpeedoGenClassProxy
Returns:
the PType of the generic class.

jdoSetPBinding

public void jdoSetPBinding(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.
Specified by:
jdoSetPBinding in interface SpeedoGenClassProxy
Parameters:
pb - is the PBinding.

jdoSetPBinding

public org.objectweb.jorm.api.PBinding jdoSetPBinding()
Specified by:
jdoSetPBinding in interface SpeedoGenClassProxy
Returns:
the pbinding associated to the generic class. The value is if the generic class is not persistent.

jdoGetGenClassId

public java.lang.String jdoGetGenClassId()
Specified by:
jdoGetGenClassId in interface SpeedoGenClassProxy
Returns:
a string 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 returned string will be 'com.foo.Bar/f1'

jdoSetLinkedField

public void jdoSetLinkedField(java.lang.String lf)
Assignes the linked field name for this generic class.
Specified by:
jdoSetLinkedField in interface SpeedoGenClassProxy
Parameters:
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'

setInner

public void setInner(java.lang.Object o)
Assignes the new value of the generic class (Collection, Map or Array or ...).
Specified by:
setInner in interface SpeedoGenClassProxy

jdoGePNameHints

public java.lang.Object jdoGePNameHints()
Description copied from interface: SpeedoProxy
Retrieves the hints needed to build the PName of the persistent object during the export action.
Specified by:
jdoGePNameHints in interface SpeedoProxy

jdoSetPNameHints

public void jdoSetPNameHints(java.lang.Object hints)
Description copied from interface: SpeedoProxy
Assignes the hints needed to build the PName of the persistent object during the export action.
Specified by:
jdoSetPNameHints in interface SpeedoProxy

jdoGetMapperName

public java.lang.String jdoGetMapperName()
Specified by:
jdoGetMapperName in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Returns:
return the mapper name by which the instance is persistent.

jdoGetProjectName

public java.lang.String jdoGetProjectName()
Specified by:
jdoGetProjectName in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Returns:
return the mapper name by which the instance is persistent.

jdoIsActive

public boolean jdoIsActive()
Description copied from interface: SpeedoProxy
Tests whether the Proxy infrastructure has already been set. A proxy has a correct PClassMapping linked to a PBinder, a PName obtained thanks to this PClassMapping.
Specified by:
jdoIsActive in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Returns:
true if this object is a Proxy.

jdoIsActive

public void jdoIsActive(boolean newvalue)
Description copied from interface: SpeedoProxy
Sets the new value of the proxy flags
Specified by:
jdoIsActive in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Parameters:
newvalue - the new value of the proxy flag
See Also:
SpeedoProxy.jdoIsActive()

getSpeedoAccessor

public SpeedoAccessor getSpeedoAccessor()
Description copied from interface: SpeedoProxy
It retrieves the SpeedoAccessor instance used in the current context. If the proxy is not active then 'this' is returned. If there is an active and otpimistic transaction then a $classNameFields is returned. Otherwise 'this' is returned.
Specified by:
getSpeedoAccessor in interface SpeedoProxy

getSpeedoAccessors

public java.util.Collection getSpeedoAccessors()
Description copied from interface: SpeedoProxy
It retrieves the SpeedoAccessor instance used in the current context. If the proxy is not active then 'this' is returned. If there is an active and otpimistic transaction then a $classNameFields is returned. Otherwise 'this' is returned.
Specified by:
getSpeedoAccessors in interface SpeedoProxy

removeSpeedoAccessor

public void removeSpeedoAccessor(SpeedoAccessor sa)
Description copied from interface: SpeedoProxy
Removes the given speedo accessor from the list of accessors of this proxy.
Specified by:
removeSpeedoAccessor in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Parameters:
sa - a speedo accessor of this proxy.

jdoIsContainerId

public boolean jdoIsContainerId()
The identifier of a generic class is based on the identifier of the class which references this generic class.
Specified by:
jdoIsContainerId in interface SpeedoProxy
Returns:
false;

jdoGetPersistenceManagerSwitch

public ProxyManagerSwitch jdoGetPersistenceManagerSwitch()
Specified by:
jdoGetPersistenceManagerSwitch in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Returns:
the ProxyManager switch links to the proxy

jdoSetPersistenceManagerSwitch

public void jdoSetPersistenceManagerSwitch(ProxyManagerSwitch pms)
Description copied from interface: SpeedoProxy
It assignes the ProxyManager switch which will permit to find the ProxyManager which manages the proxy in a given context(thread)
Specified by:
jdoSetPersistenceManagerSwitch in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Parameters:
pms -  

jdoGetPersistenceManagerFactory

public javax.jdo.PersistenceManagerFactory jdoGetPersistenceManagerFactory()
Specified by:
jdoGetPersistenceManagerFactory in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Returns:
the PersistenceManagerFactory which represents the data support inside which the proxy is persistent.

jdoSetPersistenceManagerFactory

public void jdoSetPersistenceManagerFactory(javax.jdo.PersistenceManagerFactory pmf)
Description copied from interface: SpeedoProxy
It assignes a PersistenceManagerFactory
Specified by:
jdoSetPersistenceManagerFactory in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Parameters:
pmf - is the PersistenceManagerFactory which represents the data support inside which the proxy is persistent.

jdoGetTransactionalPersistenceManager

public org.objectweb.perseus.persistence.api.TransactionalPersistenceManager jdoGetTransactionalPersistenceManager()
Specified by:
jdoGetTransactionalPersistenceManager in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Returns:
the TransactionalPersistenceManager which manage the concurrency, loading, ... of the proxy.

jdoSetTransactionalPersistenceManager

public void jdoSetTransactionalPersistenceManager(org.objectweb.perseus.persistence.api.TransactionalPersistenceManager tpm)
Description copied from interface: SpeedoProxy
It assignes a TransactionalPersistenceManager
Specified by:
jdoSetTransactionalPersistenceManager in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Parameters:
tpm - is the TransactionalPersistenceManager which manage the concurrency, loading, ... of the proxy.

jdoReadIntention

public void jdoReadIntention(SpeedoAccessor sa)

jdoWriteIntention

public void jdoWriteIntention(SpeedoAccessor sa)

getJormConfig

public java.lang.Object getJormConfig()
Description copied from interface: SpeedoProxy
It retrieves an object helping the configuration of the Jorm class. Currently Jorm is not fractalize then the returned object is the PBinder class name.
Specified by:
getJormConfig in interface SpeedoProxy

jdoGetJdoFileName

public java.lang.String jdoGetJdoFileName()
Specified by:
jdoGetJdoFileName in interface SpeedoProxy
Following copied from interface: org.objectweb.speedo.api.SpeedoProxy
Returns:
The file name of the jdo descriptor. This file must be availlable in the class at runtime.

jdoDeletePersistent

public void jdoDeletePersistent(ProxyManager pm)
Specified by:
jdoDeletePersistent in interface SpeedoProxy

getMemoryInstance

public java.lang.Object getMemoryInstance()

jdoChangeStatus

public void jdoChangeStatus(byte action)
Description copied from interface: SpeedoAccessor
Changes the status of this object
Specified by:
jdoChangeStatus in interface SpeedoAccessor
Following copied from interface: org.objectweb.speedo.api.SpeedoAccessor
Parameters:
action - the action that may change the status
See Also:
LifeCycle

jdoGetStatus

public byte jdoGetStatus()
Description copied from interface: SpeedoAccessor
Gets the current status of this object
Specified by:
jdoGetStatus in interface SpeedoAccessor
Following copied from interface: org.objectweb.speedo.api.SpeedoAccessor
Returns:
the current state in the life cycle
See Also:
LifeCycle

jdoSetStatus

public void jdoSetStatus(byte newValue)
Description copied from interface: SpeedoAccessor
Forces the new value of the status
Specified by:
jdoSetStatus in interface SpeedoAccessor
Following copied from interface: org.objectweb.speedo.api.SpeedoAccessor
Parameters:
newValue - the new status of this object
See Also:
LifeCycle

jdoGetSpeedoProxy

public SpeedoProxy jdoGetSpeedoProxy()
Specified by:
jdoGetSpeedoProxy in interface SpeedoAccessor
Following copied from interface: org.objectweb.speedo.api.SpeedoAccessor
Returns:
The SpeedoProxy attached to this state representation.

jdoSetSpeedoProxy

public void jdoSetSpeedoProxy(SpeedoProxy sp)
Description copied from interface: SpeedoAccessor
Assignes the SpeedoProxy attached to this state representation.
Specified by:
jdoSetSpeedoProxy in interface SpeedoAccessor

jdoGetTransaction

public Transaction jdoGetTransaction()
Specified by:
jdoGetTransaction in interface SpeedoAccessor
Following copied from interface: org.objectweb.speedo.api.SpeedoAccessor
Returns:
The context associated to the accessor.

jdoSetTransaction

public void jdoSetTransaction(Transaction tx)
Description copied from interface: SpeedoAccessor
Assignes the context with which the accessor is bound.
Specified by:
jdoSetTransaction in interface SpeedoAccessor
Following copied from interface: org.objectweb.speedo.api.SpeedoAccessor
Parameters:
tx - is the context

getCeObject

public java.lang.Object getCeObject()

getCeIdentifier

public java.lang.Object getCeIdentifier()

fixCe

public void fixCe()

unfixCe

public void unfixCe()
             throws org.objectweb.perseus.cache.api.UnFixProtocolException

getCeFixCount

public int getCeFixCount()

getCeAge

public long getCeAge()

setCeAge

public void setCeAge(long l)

setLogger

public void setLogger(org.objectweb.util.monolog.api.Logger _logger)

setLoggerFactory

public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerfactory)

getLogger

public org.objectweb.util.monolog.api.Logger getLogger()

getLoggerFactory

public org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()