|
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 de.schwarzrot.data.access.NullEntityManager
public class NullEntityManager
serves as a "remainder" for developers, that a certain entity is not handled
the right way. Repository
uses this "manager" as a fallback wich in
turn throws an Exception for each call.
Field Summary |
---|
Fields inherited from class de.schwarzrot.data.access.support.AbstractEntityManager |
---|
appDefaults |
Constructor Summary | |
---|---|
NullEntityManager()
|
Method Summary | |
---|---|
void |
commit(TransactionResource<?> resource)
used to persist all changes made during transaction. |
TransactionResource<?> |
createTransactionResource(Transaction t)
create an abstract handle to storage. |
void |
execute(TransactionalOperation<?> tao)
execute a single step of ApplicationTransaction |
EntityDescriptor |
getEntityDescriptor(Class<?> entityType,
TransactionResource<?> res)
accessor to description instances of entities. |
void |
releaseTransactionResource(TransactionResource<?> resource)
free given storage handle |
void |
rollback(TransactionResource<?> handle)
discards changes of given storage handle and marks Transaction as
failed. |
Methods inherited from class de.schwarzrot.data.access.support.AbstractEntityManager |
---|
dumpTypeCache, getApplicationDefaults, getApplicationName, getEntityCache, getEntityIntrospector, getEntityUtils, getName, getSchemaName, getSchemaName, getUserNameProvider, loadClass, needsTransaction, setEntityCache, setEntityIntrospector, setEntityUtils, setSchemaName, setSchemaName, setUserNameProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullEntityManager()
Method Detail |
---|
public void commit(TransactionResource<?> resource)
EntityManager
resource
- - an abstract handle to storagepublic TransactionResource<?> createTransactionResource(Transaction t) throws Exception
EntityManager
TransactionResource
is a
wrapper to handle jdbc and preferences the same way.
t
- - the transaction
Exception
- - depends on implementationpublic void execute(TransactionalOperation<?> tao) throws Exception
EntityManager
ApplicationTransaction
tao
- - the transactional operation to execute
Exception
- - depends on implementationpublic EntityDescriptor getEntityDescriptor(Class<?> entityType, TransactionResource<?> res)
EntityManager
EntityDescriptor
holds all information needed by an
EntityManager
to handle instances of that entity. The
EntityDescriptor
may vary between different EntityManager
s.
entityType
- - the class of that entityres
- - the wrapped storage handle
public void releaseTransactionResource(TransactionResource<?> resource)
EntityManager
resource
- - a wrapped storage handlepublic void rollback(TransactionResource<?> handle)
EntityManager
Transaction
as
failed.
handle
- - a wrapped storage handle
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |