|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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. There are several fields:
Method Summary | |
void |
copyAccessor(SpeedoAccessor src,
SpeedoAccessor dest)
Copies persistent fields from an accessor to another. |
SpeedoAccessor |
createAccessor()
|
java.util.Collection |
fgGetFieldsToLoad(java.lang.String fgName)
|
java.util.Collection |
fgGetFieldsToLoad(java.lang.String fgName,
boolean onlyDirectRef)
Same as fgGetFieldsToLoad(String fgName) but if onlyDirectRef is set to true, all the fields of type a.b.c or a#element or a/fg are removed from the returned collection. |
java.util.Collection |
fgGetNestedFetchGroups(java.lang.String fgName)
|
boolean |
fgIsDefined(java.lang.String fgName)
|
boolean |
fgIsPostload(java.lang.String fgName)
|
java.lang.Object |
getEncodedPName()
|
SpeedoAccessor |
getReferenceAccessor()
|
SpeedoAccessor |
getSpeedoAccessor()
It retrieves the SpeedoAccessor instance used in the current context. |
void |
jdoAttachCopy(ProxyManager pm,
java.util.Map map,
java.lang.Object clone,
SpeedoAccessor sa,
boolean makeTransactional)
Attach the detached clone to the datastore. |
void |
jdoDeletePersistent(ProxyManager pm,
SpeedoAccessor sa)
|
SpeedoProxy |
jdoDetachCopy(ProxyManager pm,
java.util.Map map,
java.lang.Object clone,
java.util.Collection fgHints)
|
java.lang.String |
jdoGetJdoFileName()
|
java.lang.Object |
jdoGetPNameHints()
Retrieves the hints needed to build the PName of the persistent object during the export action. |
java.lang.String |
jdoGetProjectName()
|
ProxyManagerFactory |
jdoGetProxyManagerFactory()
|
TransactionalPersistenceManager |
jdoGetTransactionalPersistenceManager()
|
byte |
jdoGetVersioningStrategy()
The versioning strategy. |
boolean |
jdoIsActive()
Tests whether the Proxy infrastructure has already been set. |
void |
jdoIsActive(boolean newvalue)
Sets the new value of the proxy flags |
boolean |
jdoIsDetachable()
|
void |
jdoMakePersistent(ProxyManager pm,
SpeedoAccessor sa)
|
void |
jdoRefresh(ProxyManager pm,
java.util.Map map,
java.util.Collection fgHints)
Refresh the fields to be fetched according to the active fetch groups |
void |
jdoSetProxyManagerFactory(ProxyManagerFactory pmf)
It assignes a ProxyManagerFactory |
void |
jdoSetTransactionalPersistenceManager(TransactionalPersistenceManager tpm)
It assignes a TransactionalPersistenceManager |
void |
setEncodedPName(java.lang.Object encodedPName)
Set the encoded PName of the detach copy to allow serialization. |
void |
setReferenceAccessor(SpeedoAccessor refAcc)
Assignes the reference accessor to the SpeedoProxy The Reference accessor is used for non persistent instance, as cache value and for pessimistic policy. |
void |
speedoAdd(java.lang.Object elem,
int gcFieldNumber)
Adds an element in the gen class field whose number is given. |
Method Detail |
public boolean jdoIsActive()
public void jdoIsActive(boolean newvalue)
newvalue
- the new value of the proxy flagjdoIsActive()
public byte jdoGetVersioningStrategy()
SpeeedoVersion.TIMESTAMP, STATE_COMPARISON, VERSION_NUMBER, NO_VERSION
public SpeedoAccessor getSpeedoAccessor()
public SpeedoAccessor getReferenceAccessor()
public void setReferenceAccessor(SpeedoAccessor refAcc)
refAcc
- the new reference accessorpublic SpeedoAccessor createAccessor()
public void copyAccessor(SpeedoAccessor src, SpeedoAccessor dest)
src
- is the accessor containing peristent fields to copydest
- is the accessor where persistent fields have to be copiedpublic void setEncodedPName(java.lang.Object encodedPName)
encodedPName
- : the encoded PName of the persistent objectpublic java.lang.Object getEncodedPName()
public ProxyManagerFactory jdoGetProxyManagerFactory()
public void jdoSetProxyManagerFactory(ProxyManagerFactory pmf)
pmf
- is the ProxyManagerFactory which represents the data
support inside which the proxy is persistent.public TransactionalPersistenceManager jdoGetTransactionalPersistenceManager()
public void jdoSetTransactionalPersistenceManager(TransactionalPersistenceManager tpm)
tpm
- is the TransactionalPersistenceManager which manage the
concurrency, loading, ... of the proxy.public void jdoMakePersistent(ProxyManager pm, SpeedoAccessor sa)
public void jdoDeletePersistent(ProxyManager pm, SpeedoAccessor sa)
public SpeedoProxy jdoDetachCopy(ProxyManager pm, java.util.Map map, java.lang.Object clone, java.util.Collection fgHints)
public void jdoAttachCopy(ProxyManager pm, java.util.Map map, java.lang.Object clone, SpeedoAccessor sa, boolean makeTransactional)
public void jdoRefresh(ProxyManager pm, java.util.Map map, java.util.Collection fgHints)
public java.lang.String jdoGetProjectName()
public boolean jdoIsDetachable()
public java.lang.String jdoGetJdoFileName()
public java.lang.Object jdoGetPNameHints()
public void speedoAdd(java.lang.Object elem, int gcFieldNumber)
public boolean fgIsPostload(java.lang.String fgName)
fgName
- The name of the fetchgroup
public java.util.Collection fgGetFieldsToLoad(java.lang.String fgName)
fgName
- The name of the fetchgroup
public java.util.Collection fgGetFieldsToLoad(java.lang.String fgName, boolean onlyDirectRef)
fgName
- onlyDirectRef
-
public java.util.Collection fgGetNestedFetchGroups(java.lang.String fgName)
fgName
- The name of the fetchgroup
public boolean fgIsDefined(java.lang.String fgName)
fgName
- The name of the fetchgroup
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |