|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.schwarzrot.data.access.support.AbstractEntityManager
public abstract class AbstractEntityManager
abstract helper class for conveniance of creation of EntityManager
s.
Field Summary | |
---|---|
protected SystemDefault |
appDefaults
|
Constructor Summary | |
---|---|
AbstractEntityManager()
|
Method Summary | |
---|---|
void |
dumpTypeCache()
for debugging purpose only. |
protected SystemDefault |
getApplicationDefaults()
|
String |
getApplicationName()
returns the name of the application |
EntityHolder |
getEntityCache()
|
EntityIntrospector |
getEntityIntrospector()
|
EntityUtils |
getEntityUtils()
|
String |
getName()
|
String |
getSchemaName()
|
String |
getSchemaName(Class<?> entityType,
TransactionResource<?> resource)
returns the schema name, used by entities of given type and given storage |
UserNameProvider |
getUserNameProvider()
|
protected Class<?> |
loadClass(String className)
|
boolean |
needsTransaction()
|
void |
setEntityCache(EntityHolder eh)
sets the cache for entity instances |
void |
setEntityIntrospector(EntityIntrospector entityIntrospector)
sets the entity introspector used to fill an EntityDescriptor
with informations about entities. |
void |
setEntityUtils(EntityUtils entityUtils)
|
void |
setSchemaName(Class<?> entityType,
String schemaName,
TransactionResource<?> resource)
sets the schema name to use by instances of given entity and resource |
void |
setSchemaName(String schemaName)
|
void |
setUserNameProvider(UserNameProvider userNameProvider)
sets the username provider used by this EntityManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.schwarzrot.data.access.EntityManager |
---|
commit, createTransactionResource, execute, getEntityDescriptor, releaseTransactionResource, rollback |
Field Detail |
---|
protected SystemDefault appDefaults
Constructor Detail |
---|
public AbstractEntityManager()
Method Detail |
---|
public void dumpTypeCache()
EntityManager
EntityManager
.
dumpTypeCache
in interface EntityManager
public final String getApplicationName()
EntityManager
getApplicationName
in interface EntityManager
public final EntityHolder getEntityCache()
public final EntityIntrospector getEntityIntrospector()
public final EntityUtils getEntityUtils()
public final String getName()
public final String getSchemaName()
public final String getSchemaName(Class<?> entityType, TransactionResource<?> resource)
EntityManager
getSchemaName
in interface EntityManager
entityType
- - the class of entityresource
- - the wrapped storage handle
public final UserNameProvider getUserNameProvider()
public boolean needsTransaction()
public final void setEntityCache(EntityHolder eh)
EntityManager
setEntityCache
in interface EntityManager
eh
- - the cache handlerpublic final void setEntityIntrospector(EntityIntrospector entityIntrospector)
EntityManager
EntityDescriptor
with informations about entities.
setEntityIntrospector
in interface EntityManager
entityIntrospector
- - the introspector to usepublic final void setEntityUtils(EntityUtils entityUtils)
public final void setSchemaName(Class<?> entityType, String schemaName, TransactionResource<?> resource)
EntityManager
setSchemaName
in interface EntityManager
entityType
- - class of entityschemaName
- - the schema nameresource
- - a wrapped storage handlepublic final void setSchemaName(String schemaName)
schemaName
- the schemaName to setpublic final void setUserNameProvider(UserNameProvider userNameProvider)
EntityManager
EntityManager
setUserNameProvider
in interface EntityManager
userNameProvider
- - the username provider to useprotected SystemDefault getApplicationDefaults()
protected final Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |