|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface what is a Proxy in Speedo. A proxy a PersistentCapable instance because it is the user object. It is the jorm PBinding because it is unique even in optimistic case. Finally it is also a SpeedoAccessor because in pessimistic mode or when the object is not active the state values are stored inside the proxy. In addition there are several fields:
Method Summary | |
java.lang.Object |
getJormConfig()
It retrieves an object helping the configuration of the Jorm class. |
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. |
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 |
jdoGetJdoFileName()
|
java.lang.String |
jdoGetMapperName()
|
javax.jdo.PersistenceManagerFactory |
jdoGetPersistenceManagerFactory()
|
ProxyManagerSwitch |
jdoGetPersistenceManagerSwitch()
|
java.lang.String |
jdoGetProjectName()
|
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()
Indicates the identity-type of this object |
void |
jdoLoadFieldsFromAccessor(SpeedoAccessor sa)
Stores fields owned by the accessor into the proxy |
void |
jdoLoadFieldsInAccessor(SpeedoAccessor sa)
Stores fields owned by this object into an accessor |
void |
jdoMakePersistent(ProxyManager pm)
|
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 |
jdoSetTransactionalPersistenceManager(org.objectweb.perseus.persistence.api.TransactionalPersistenceManager tpm)
It assignes a TransactionalPersistenceManager |
void |
removeSpeedoAccessor(SpeedoAccessor sa)
Removes the given speedo accessor from the list of accessors of this proxy. |
Methods inherited from interface org.objectweb.speedo.api.SpeedoAccessor |
jdoChangeStatus, jdoGetSpeedoProxy, jdoGetStatus, jdoGetTransaction, jdoSetSpeedoProxy, jdoSetStatus, jdoSetTransaction |
Method Detail |
public void jdoLoadFieldsInAccessor(SpeedoAccessor sa)
sa
- the accessor requiring persistent fieldspublic void jdoLoadFieldsFromAccessor(SpeedoAccessor sa)
sa
- the accessor containing persistent fieldspublic boolean jdoIsActive()
public void jdoIsActive(boolean newvalue)
newvalue
- the new value of the proxy flagjdoIsActive()
public SpeedoAccessor getSpeedoAccessor()
public void removeSpeedoAccessor(SpeedoAccessor sa)
sa
- a speedo accessor of this proxy.public java.util.Collection getSpeedoAccessors()
public boolean jdoIsContainerId()
public ProxyManagerSwitch jdoGetPersistenceManagerSwitch()
public void jdoSetPersistenceManagerSwitch(ProxyManagerSwitch pms)
pms
- public javax.jdo.PersistenceManagerFactory jdoGetPersistenceManagerFactory()
public void jdoSetPersistenceManagerFactory(javax.jdo.PersistenceManagerFactory pmf)
pmf
- is the PersistenceManagerFactory which represents the data
support inside which the proxy is persistent.public org.objectweb.perseus.persistence.api.TransactionalPersistenceManager jdoGetTransactionalPersistenceManager()
public void jdoSetTransactionalPersistenceManager(org.objectweb.perseus.persistence.api.TransactionalPersistenceManager tpm)
tpm
- is the TransactionalPersistenceManager which manage the
concurrency, loading, ... of the proxy.public java.lang.Object getJormConfig()
public void jdoMakePersistent(ProxyManager pm)
public void jdoDeletePersistent(ProxyManager pm)
public java.lang.String jdoGetMapperName()
public java.lang.String jdoGetProjectName()
public java.lang.String jdoGetJdoFileName()
public java.lang.Object jdoGePNameHints()
public void jdoSetPNameHints(java.lang.Object hints)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |