|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
It defines a home for a persitent class. The home groups common fields and methods.
Method Summary | |
QueryDefinition |
addNamedQuery(java.lang.String name,
QueryDefinition query)
Defines a named query |
void |
attachCopy(SpeedoProxy sp,
ProxyManager pm,
java.util.Map map,
java.lang.Object clone,
SpeedoAccessor sa,
boolean makeTransactional)
|
SpeedoProxy |
detachCopy(SpeedoProxy sp,
ProxyManager pm,
java.util.Map map,
java.lang.Object clone,
java.util.Collection fgHints)
|
java.util.Collection |
fgGetFieldsToLoad(java.lang.String fgName)
|
java.util.Collection |
fgGetFieldsToLoad(java.lang.String fgName,
boolean onlyDirectRef)
|
java.util.Collection |
fgGetNestedFetchGroups(java.lang.String fgName)
|
boolean |
fgIsDefined(java.lang.String fgName)
|
java.util.Properties |
getClassProperties()
|
QueryDefinition |
getNamedQuery(java.lang.String name)
Retrieves a query defintion from its name. |
java.lang.String |
getProjectName()
|
ProxyManagerFactory |
getProxyManagerFactory()
|
SpeedoAccessor |
getSpeedoAccessor(SpeedoProxy sp)
|
TransactionalPersistenceManager |
getTransactionalPersistenceManager()
|
byte |
getVersioningStrategy()
The versioning strategy. |
void |
initSH()
|
boolean |
isCacheable()
Indicates if the state of persistent instance managed by this home, are kept between two transaction. |
boolean |
isDetachable()
Indicates if the class has been marked as detacheable |
SpeedoAccessor |
readIntention(SpeedoProxy sp,
long[] fields)
Notifies the transactional persistency manager of a read intention for the given persistent instance. |
QueryDefinition |
removeNamedQuery(java.lang.String name)
Remove a named query |
void |
setCacheable(boolean v)
Permit to Indicate if the state of persistent instance managed by this home, are kept between two transaction. |
void |
setProxyManagerFactory(ProxyManagerFactory _pmf)
It assignes a PersistenceManagerFactory |
void |
setTransactionalPersistenceManager(TransactionalPersistenceManager _tpm)
It assignes a TransactionalPersistenceManager |
SpeedoAccessor |
writeIntention(SpeedoProxy sp,
long[] fields)
Notifies the transactional persistency manager of a write intention for the given persistent instance. |
Method Detail |
public java.lang.String getProjectName()
public boolean isDetachable()
public boolean isCacheable()
public void setCacheable(boolean v)
public byte getVersioningStrategy()
STATE_COMPARISON VERSION_NUMBER NO_VERSION
public ProxyManagerFactory getProxyManagerFactory()
public void setProxyManagerFactory(ProxyManagerFactory _pmf)
_pmf
- is the PersistenceManagerFactory representing the data
support where the proxy is persistent.public TransactionalPersistenceManager getTransactionalPersistenceManager()
public void setTransactionalPersistenceManager(TransactionalPersistenceManager _tpm)
_tpm
- is the TransactionalPersistenceManager which manage the
concurrency, loading, ... of the proxy.public SpeedoAccessor readIntention(SpeedoProxy sp, long[] fields)
sp
- is the SpeedoProxy which the read access is requested.fields
- the ids of the fields that may be accessed by the caller
of this method. If the i-th bit of 'fields' is set to 1, then the i-th
field of the given speedo accessor may be accessed by the caller of this
method.public SpeedoAccessor writeIntention(SpeedoProxy sp, long[] fields)
sp
- is the SpeedoProxy which the write access is requested.fields
- the ids of the fields that may be accessed by the caller
of this method. If the i-th bit of 'fields' is set to 1, then the i-th
field of the given speedo accessor may be accessed by the caller of this
method.public SpeedoAccessor getSpeedoAccessor(SpeedoProxy sp)
public SpeedoProxy detachCopy(SpeedoProxy sp, ProxyManager pm, java.util.Map map, java.lang.Object clone, java.util.Collection fgHints)
public void attachCopy(SpeedoProxy sp, ProxyManager pm, java.util.Map map, java.lang.Object clone, SpeedoAccessor sa, boolean makeTransactional)
public java.util.Collection fgGetNestedFetchGroups(java.lang.String fgName)
public boolean fgIsDefined(java.lang.String fgName)
fgName
- is a fetch group name
public java.util.Collection fgGetFieldsToLoad(java.lang.String fgName)
public java.util.Collection fgGetFieldsToLoad(java.lang.String fgName, boolean onlyDirectRef)
public java.util.Properties getClassProperties()
public QueryDefinition addNamedQuery(java.lang.String name, QueryDefinition query)
name
- is the name identifying the queryquery
- is the definition of the query
public QueryDefinition removeNamedQuery(java.lang.String name)
name
- is the name of the query definition to remove
public QueryDefinition getNamedQuery(java.lang.String name)
name
- is the name the wanted query definitionpublic void initSH()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |