| java.lang.Object org.objectweb.speedo.mim.lib.AbstractHomeImpl
All known Subclasses: org.objectweb.speedo.mim.ejb.lib.EJBAbstractHomeImpl, org.objectweb.speedo.mim.jdo.lib.JDOAbstractHomeImpl, org.objectweb.speedo.genclass.AbstractGenClassHome,
AbstractHomeImpl | abstract public class AbstractHomeImpl implements HomeItf(Code) | | author: S.Chassande-Barrioz |
Method Summary | |
public boolean | activeUserCache(String cacheName) | final public QueryDefinition | addNamedQuery(String name, QueryDefinition query) | protected synchronized UserCache | addUserCache(String userCacheName, String[] fields, int id) | public boolean | allLoaded() | final public void | attachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, StateItf sa) | final public PersistentObjectItf | detachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, Collection fgHints) | public Collection | fgGetFieldsToLoad(String fgName) This default implementation does nothing and returns null. | final public Collection | fgGetFieldsToLoad(String fgName, boolean onlyDirectRef) | public Collection | fgGetNestedFetchGroups(String fgName) This default implementation does nothing and returns null. | public boolean | fgIsDefined(String fgName) This default implementation returns always false. | public Collection | getActiveUserCache() | public Class | getClassForQuery(String className, String queryName) | final public QueryDefinition | getNamedQuery(String name) | final public POManagerFactoryItf | getPOManagerFactory() | public String | getPath() | public boolean | getPrefetchOnExtent() | public boolean | getPrefetchOnGenClass() | public boolean | getPrefetchOnQuery() | final public StateItf | getState(PersistentObjectItf sp) It retrieves the StateItf instance used in the current context.
If the po is not active then the reference accessor is returned.
If there is an active then the $classNameFields used in the context is
returned. | final public TransactionalPersistenceManager | getTransactionalPersistenceManager() the TransactionalPersistenceManager which manage theconcurrency, loading, ... | public UserCache | getUserCache(int cacheId) | public UserCache | getUserCache(Collection fieldNames) | public boolean | hasToFix() | public void | initSH() | protected boolean | isAbstract() | public boolean | isCacheable() | public boolean | isFieldLockingLevel() | public boolean | isShareable() | protected PersistentObjectItf | newSpeedoPOInstance(Class clazz) Create a new instance of a PersistentObjectItf which the clas is given in
parameter. | final public StateItf | readIntention(PersistentObjectItf sp, long[] fields) Notifies the transactional persistency manager of a read intention for
the given persistent instance.
Parameters: sp - is the PersistentObjectItf which the read access is requested. Parameters: fields - the ids of the fields that may be accessed by the callerof this method. | final public QueryDefinition | removeNamedQuery(String name) | public void | setCachePolicy(byte v) | public void | setFieldLockingLevel(boolean val) | final public void | setPOManagerFactory(POManagerFactoryItf _pmf) | public void | setPrefetchOnExtent(boolean prefetch) | public void | setPrefetchOnGenClass(boolean prefetch) | public void | setPrefetchOnQuery(boolean prefetch) | public void | setShareable(boolean v) | final public void | setTransactionalPersistenceManager(TransactionalPersistenceManager _tpm) It assignes a TransactionalPersistenceManager
Parameters: _tpm - is the TransactionalPersistenceManager which manage theconcurrency, loading, ... | public void | userCacheEntryUnbound(Object oid) | final public StateItf | writeIntention(PersistentObjectItf sp, long[] fields) | public StateItf | writeIntention(PersistentObjectItf sp, long[] fields, Object thinLock) Notifies the transactional persistency manager of a write intention for
the given persistent instance.
Parameters: sp - is the PersistentObjectItf which the write access is requested. Parameters: fields - the ids of the fields that may be accessed by the callerof this method. |
cachePolicy | byte cachePolicy(Code) | | |
isFieldLockingLevel | boolean isFieldLockingLevel(Code) | | |
isShareable | boolean isShareable(Code) | | |
prefetchOnExtent | boolean prefetchOnExtent(Code) | | |
prefetchOnGenClass | boolean prefetchOnGenClass(Code) | | |
prefetchOnQuery | boolean prefetchOnQuery(Code) | | |
tpm | protected TransactionalPersistenceManager tpm(Code) | | |
activeUserCache | public boolean activeUserCache(String cacheName)(Code) | | This method is implemented by the generated XXXHome class
|
allLoaded | public boolean allLoaded()(Code) | | |
fgGetFieldsToLoad | public Collection fgGetFieldsToLoad(String fgName)(Code) | | This default implementation does nothing and returns null.
Subclass to change the behavior
|
fgGetNestedFetchGroups | public Collection fgGetNestedFetchGroups(String fgName)(Code) | | This default implementation does nothing and returns null.
Subclass to change the behavior
|
fgIsDefined | public boolean fgIsDefined(String fgName)(Code) | | This default implementation returns always false.
Subclass to change the behavior
|
getPOManagerFactory | final public POManagerFactoryItf getPOManagerFactory()(Code) | | the PersistenceManagerFactory which represents the data supportinside which the po is persistent. |
getPrefetchOnExtent | public boolean getPrefetchOnExtent()(Code) | | |
getPrefetchOnGenClass | public boolean getPrefetchOnGenClass()(Code) | | |
getPrefetchOnQuery | public boolean getPrefetchOnQuery()(Code) | | |
getState | final public StateItf getState(PersistentObjectItf sp)(Code) | | It retrieves the StateItf instance used in the current context.
If the po is not active then the reference accessor is returned.
If there is an active then the $classNameFields used in the context is
returned. Be careul, if the persistent object is not used in the current
context, then a null value will be returned, because no StateItf
is registered in the working set.
|
getTransactionalPersistenceManager | final public TransactionalPersistenceManager getTransactionalPersistenceManager()(Code) | | the TransactionalPersistenceManager which manage theconcurrency, loading, ... of the po. |
hasToFix | public boolean hasToFix()(Code) | | |
initSH | public void initSH()(Code) | | |
isAbstract | protected boolean isAbstract()(Code) | | false because it corresponds to most of caseSubclass to change the behavior |
isCacheable | public boolean isCacheable()(Code) | | |
isFieldLockingLevel | public boolean isFieldLockingLevel()(Code) | | |
isShareable | public boolean isShareable()(Code) | | |
newSpeedoPOInstance | protected PersistentObjectItf newSpeedoPOInstance(Class clazz) throws Exception(Code) | | Create a new instance of a PersistentObjectItf which the clas is given in
parameter. The default implementation does a
simple 'clazz.newInstance()'.
|
readIntention | final public StateItf readIntention(PersistentObjectItf sp, long[] fields)(Code) | | Notifies the transactional persistency manager of a read intention for
the given persistent instance.
Parameters: sp - is the PersistentObjectItf which the read access is requested. Parameters: fields - the ids of the fields that may be accessed by the callerof this method. If the i-th bit of 'fields' is set to 1, then the i-thfield of the given speedo accessor may be accessed by the caller of thismethod. |
setCachePolicy | public void setCachePolicy(byte v)(Code) | | |
setFieldLockingLevel | public void setFieldLockingLevel(boolean val)(Code) | | |
setPOManagerFactory | final public void setPOManagerFactory(POManagerFactoryItf _pmf)(Code) | | It assignes a PersistenceManagerFactory
Parameters: _pmf - is the PersistenceManagerFactory which represents the datasupport inside which the po is persistent. |
setPrefetchOnExtent | public void setPrefetchOnExtent(boolean prefetch)(Code) | | |
setPrefetchOnGenClass | public void setPrefetchOnGenClass(boolean prefetch)(Code) | | |
setPrefetchOnQuery | public void setPrefetchOnQuery(boolean prefetch)(Code) | | |
setShareable | public void setShareable(boolean v)(Code) | | |
setTransactionalPersistenceManager | final public void setTransactionalPersistenceManager(TransactionalPersistenceManager _tpm)(Code) | | It assignes a TransactionalPersistenceManager
Parameters: _tpm - is the TransactionalPersistenceManager which manage theconcurrency, loading, ... of the po. |
userCacheEntryUnbound | public void userCacheEntryUnbound(Object oid)(Code) | | |
writeIntention | public StateItf writeIntention(PersistentObjectItf sp, long[] fields, Object thinLock)(Code) | | Notifies the transactional persistency manager of a write intention for
the given persistent instance.
Parameters: sp - is the PersistentObjectItf which the write access is requested. Parameters: fields - the ids of the fields that may be accessed by the callerof this method. If the i-th bit of 'fields' is set to 1, then the i-thfield of the given speedo accessor may be accessed by the caller of thismethod. |
|
|