public class EnvAmberManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addAmberManager(AmberPersistenceUnit manager)
Adds an amber manager.
|
void |
addEntityHome(java.lang.String name,
AmberEntityHome home)
Adds the entity home.
|
void |
complete(java.util.ArrayList<AmberCompletion> completions)
Completions affecting the cache.
|
AmberConnection |
createAmberConnection(boolean isExtended)
Returns the cache connection.
|
static EnvAmberManager |
createLocal() |
void |
destroy()
destroys the manager.
|
java.lang.ClassLoader |
getEnhancedLoader()
Returns the enhanced loader.
|
EntityItem |
getEntity(EntityType rootType,
java.lang.Object key)
Returns the query result.
|
EntityType |
getEntity(java.lang.String className)
Returns a matching entity.
|
EntityType |
getEntityByInstanceClass(java.lang.String className)
Returns a matching entity.
|
AmberEntityHome |
getEntityHome(java.lang.String name)
Returns the entity home.
|
EntityItem |
getEntityItem(java.lang.String homeName,
java.lang.Object key)
Returns the entity item.
|
AmberGenerator |
getGenerator()
Sets the generator.
|
AmberEntityHome |
getHome(java.lang.Class cl)
Returns an EntityHome.
|
JClassLoader |
getJClassLoader()
Returns the enhanced loader.
|
ResultSetCacheChunk |
getQueryChunk(QueryCacheKey key)
Returns the query result.
|
long |
getTableCacheTimeout()
Get the default table cache time.
|
long |
getXid()
Returns a new xid.
|
void |
init()
Initialize the resource.
|
void |
initEntityHomes()
Initialize the home interfaces.
|
void |
initLoaders()
Initialize the resource.
|
EntityItem |
putEntity(EntityType rootType,
java.lang.Object key,
EntityItem entity)
Sets the entity result.
|
void |
putQueryChunk(QueryCacheKey key,
ResultSetCacheChunk chunk)
Sets the query result.
|
EntityItem |
removeEntity(EntityType rootType,
java.lang.Object key)
Remove the entity result.
|
void |
setGenerator(AmberGenerator generator)
Sets the generator.
|
void |
setTableCacheTimeout(long timeout)
Set the default table cache time.
|
java.lang.String |
toString() |
public static EnvAmberManager createLocal()
public void addAmberManager(AmberPersistenceUnit manager)
public void setTableCacheTimeout(long timeout)
public long getTableCacheTimeout()
public long getXid()
public java.lang.ClassLoader getEnhancedLoader()
public JClassLoader getJClassLoader()
public void addEntityHome(java.lang.String name, AmberEntityHome home)
public AmberEntityHome getEntityHome(java.lang.String name)
public EntityType getEntity(java.lang.String className)
public EntityType getEntityByInstanceClass(java.lang.String className)
public void setGenerator(AmberGenerator generator)
public AmberGenerator getGenerator()
public void initLoaders() throws ConfigException, java.io.IOException
ConfigException
java.io.IOException
public AmberConnection createAmberConnection(boolean isExtended)
public void initEntityHomes() throws java.lang.Exception
java.lang.Exception
public void init() throws ConfigException, java.io.IOException
ConfigException
java.io.IOException
public AmberEntityHome getHome(java.lang.Class cl)
public ResultSetCacheChunk getQueryChunk(QueryCacheKey key)
public void putQueryChunk(QueryCacheKey key, ResultSetCacheChunk chunk)
public EntityItem getEntityItem(java.lang.String homeName, java.lang.Object key) throws AmberException
AmberException
public EntityItem getEntity(EntityType rootType, java.lang.Object key)
public EntityItem putEntity(EntityType rootType, java.lang.Object key, EntityItem entity)
public EntityItem removeEntity(EntityType rootType, java.lang.Object key)
public void complete(java.util.ArrayList<AmberCompletion> completions)
public void destroy()
public java.lang.String toString()
toString
in class java.lang.Object