|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schwarzrot.data.access.support.AbstractEntityManager
public abstract class AbstractEntityManager
abstract helper class for conveniance of creation of EntityManagers.
| 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()
EntityManagerEntityManager.
dumpTypeCache in interface EntityManagerpublic final String getApplicationName()
EntityManager
getApplicationName in interface EntityManagerpublic 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 EntityManagerentityType - - 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 EntityManagereh - - the cache handlerpublic final void setEntityIntrospector(EntityIntrospector entityIntrospector)
EntityManagerEntityDescriptor
with informations about entities.
setEntityIntrospector in interface EntityManagerentityIntrospector - - the introspector to usepublic final void setEntityUtils(EntityUtils entityUtils)
public final void setSchemaName(Class<?> entityType,
String schemaName,
TransactionResource<?> resource)
EntityManager
setSchemaName in interface EntityManagerentityType - - 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)
EntityManagerEntityManager
setUserNameProvider in interface EntityManageruserNameProvider - - 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 | |||||||||