|
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.TransactionResource<T>
T
- - type of real storage handlepublic class TransactionResource<T>
a wrapper class for the persistence handles used by EntityManager
s.
Main purpose is to seamlessly exchange Preferences
and JDBC-
Connection
s.
Constructor Summary | |
---|---|
TransactionResource(T realConnection)
|
Method Summary | |
---|---|
EntityHolder |
getEntityCache()
returns the entity cache used for this storage handle |
EntityIntrospector |
getEntityIntrospector()
returns the entity introspector used for this storage handle |
EntityUtils |
getEntityUtils()
returns utility instance used for this storage handle |
UserNameProvider |
getUserNameProvider()
gets the username provider used for this storage handle |
void |
setEntityCache(EntityHolder entityCache)
sets the entity cache used for this storage handle |
void |
setEntityIntrospector(EntityIntrospector entityIntrospector)
sets the entity introspector used for this storage handle |
void |
setEntityUtils(EntityUtils entityUtils)
sets the utility instance used for this storage handle |
void |
setUserNameProvider(UserNameProvider userNameProvider)
sets the username provider used for this storage handle |
T |
unwrap()
access the real storage handle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionResource(T realConnection)
Method Detail |
---|
public final EntityHolder getEntityCache()
public final EntityIntrospector getEntityIntrospector()
public final EntityUtils getEntityUtils()
public final UserNameProvider getUserNameProvider()
public final void setEntityCache(EntityHolder entityCache)
entityCache
- - an entity cachepublic final void setEntityIntrospector(EntityIntrospector entityIntrospector)
entityIntrospector
- - an entity introspectorpublic final void setEntityUtils(EntityUtils entityUtils)
entityUtils
- - an utility instancepublic final void setUserNameProvider(UserNameProvider userNameProvider)
userNameProvider
- - an username providerpublic T unwrap()
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |