|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.mim.lib.SpeedoHomeImpl
Field Summary | |
protected java.util.Map |
namedQueries
|
protected ProxyManagerFactory |
pmf
|
protected TransactionalPersistenceManager |
tpm
|
Constructor Summary | |
SpeedoHomeImpl()
|
|
SpeedoHomeImpl(TransactionalPersistenceManager _tpm,
ProxyManagerFactory _pmf)
|
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)
This default implementation does nothing and returns null. |
java.util.Collection |
fgGetFieldsToLoad(java.lang.String fgName,
boolean onlyDirectRef)
|
java.util.Collection |
fgGetNestedFetchGroups(java.lang.String fgName)
This default implementation does nothing and returns null. |
boolean |
fgIsDefined(java.lang.String fgName)
This default implementation returns always false. |
java.lang.Class |
getClassForQuery(java.lang.String className,
java.lang.String queryName)
|
QueryDefinition |
getNamedQuery(java.lang.String name)
Retrieves a query defintion from its name. |
ProxyManagerFactory |
getProxyManagerFactory()
|
SpeedoAccessor |
getSpeedoAccessor(SpeedoProxy sp)
It retrieves the SpeedoAccessor instance used in the current context. |
TransactionalPersistenceManager |
getTransactionalPersistenceManager()
|
void |
initSH()
|
protected boolean |
isAbstract()
|
boolean |
isCacheable()
Indicates if the state of persistent instance managed by this home, are kept between two transaction. |
protected SpeedoProxy |
newSpeedoProxyInstance(java.lang.Class clazz)
Create a new instance of a SpeedoProxy which the clas is given in parameter. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.mim.api.SpeedoHome |
getClassProperties, getProjectName, getVersioningStrategy, isDetachable |
Field Detail |
protected TransactionalPersistenceManager tpm
protected ProxyManagerFactory pmf
protected java.util.Map namedQueries
Constructor Detail |
public SpeedoHomeImpl()
public SpeedoHomeImpl(TransactionalPersistenceManager _tpm, ProxyManagerFactory _pmf)
Method Detail |
protected boolean isAbstract()
protected SpeedoProxy newSpeedoProxyInstance(java.lang.Class clazz) throws java.lang.Exception
java.lang.Exception
public boolean isCacheable()
SpeedoHome
isCacheable
in interface SpeedoHome
public void setCacheable(boolean v)
SpeedoHome
setCacheable
in interface SpeedoHome
public java.util.Collection fgGetNestedFetchGroups(java.lang.String fgName)
fgGetNestedFetchGroups
in interface SpeedoHome
public boolean fgIsDefined(java.lang.String fgName)
fgIsDefined
in interface SpeedoHome
fgName
- is a fetch group name
public java.util.Collection fgGetFieldsToLoad(java.lang.String fgName)
fgGetFieldsToLoad
in interface SpeedoHome
public final ProxyManagerFactory getProxyManagerFactory()
getProxyManagerFactory
in interface SpeedoHome
public final void setProxyManagerFactory(ProxyManagerFactory _pmf)
setProxyManagerFactory
in interface SpeedoHome
_pmf
- is the PersistenceManagerFactory which represents the data
support inside which the proxy is persistent.public final TransactionalPersistenceManager getTransactionalPersistenceManager()
getTransactionalPersistenceManager
in interface SpeedoHome
public final void setTransactionalPersistenceManager(TransactionalPersistenceManager _tpm)
setTransactionalPersistenceManager
in interface SpeedoHome
_tpm
- is the TransactionalPersistenceManager which manage the
concurrency, loading, ... of the proxy.public final SpeedoAccessor readIntention(SpeedoProxy sp, long[] fields)
readIntention
in interface SpeedoHome
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 final SpeedoAccessor writeIntention(SpeedoProxy sp, long[] fields)
writeIntention
in interface SpeedoHome
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 final SpeedoAccessor getSpeedoAccessor(SpeedoProxy sp)
getSpeedoAccessor
in interface SpeedoHome
public final SpeedoProxy detachCopy(SpeedoProxy sp, ProxyManager pm, java.util.Map map, java.lang.Object clone, java.util.Collection fgHints)
detachCopy
in interface SpeedoHome
public final void attachCopy(SpeedoProxy sp, ProxyManager pm, java.util.Map map, java.lang.Object clone, SpeedoAccessor sa, boolean makeTransactional)
attachCopy
in interface SpeedoHome
public final java.util.Collection fgGetFieldsToLoad(java.lang.String fgName, boolean onlyDirectRef)
fgGetFieldsToLoad
in interface SpeedoHome
public void initSH()
initSH
in interface SpeedoHome
public java.lang.Class getClassForQuery(java.lang.String className, java.lang.String queryName)
public final QueryDefinition addNamedQuery(java.lang.String name, QueryDefinition query)
SpeedoHome
addNamedQuery
in interface SpeedoHome
name
- is the name identifying the queryquery
- is the definition of the query
public final QueryDefinition removeNamedQuery(java.lang.String name)
SpeedoHome
removeNamedQuery
in interface SpeedoHome
name
- is the name of the query definition to remove
public final QueryDefinition getNamedQuery(java.lang.String name)
SpeedoHome
getNamedQuery
in interface SpeedoHome
name
- is the name the wanted query definition
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |