SRJRCFrames
v0.1.296

de.schwarzrot.data.access
Class TransactionResource<T>

java.lang.Object
  extended by de.schwarzrot.data.access.TransactionResource<T>
Type Parameters:
T - - type of real storage handle

public class TransactionResource<T>
extends Object

a wrapper class for the persistence handles used by EntityManagers. Main purpose is to seamlessly exchange Preferences and JDBC- Connections.

Author:
Reinhard Mantey

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

TransactionResource

public TransactionResource(T realConnection)
Method Detail

getEntityCache

public final EntityHolder getEntityCache()
returns the entity cache used for this storage handle

Returns:
- an entity cache

getEntityIntrospector

public final EntityIntrospector getEntityIntrospector()
returns the entity introspector used for this storage handle

Returns:
an entity introspector

getEntityUtils

public final EntityUtils getEntityUtils()
returns utility instance used for this storage handle

Returns:
- an utility instance

getUserNameProvider

public final UserNameProvider getUserNameProvider()
gets the username provider used for this storage handle

Returns:
- an username provider

setEntityCache

public final void setEntityCache(EntityHolder entityCache)
sets the entity cache used for this storage handle

Parameters:
entityCache - - an entity cache

setEntityIntrospector

public final void setEntityIntrospector(EntityIntrospector entityIntrospector)
sets the entity introspector used for this storage handle

Parameters:
entityIntrospector - - an entity introspector

setEntityUtils

public final void setEntityUtils(EntityUtils entityUtils)
sets the utility instance used for this storage handle

Parameters:
entityUtils - - an utility instance

setUserNameProvider

public final void setUserNameProvider(UserNameProvider userNameProvider)
sets the username provider used for this storage handle

Parameters:
userNameProvider - - an username provider

unwrap

public T unwrap()
access the real storage handle

Returns:
- unwrapped storage handle

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.