info.joseluismartin.service
Class PersistentServiceFactory

java.lang.Object
  extended by info.joseluismartin.service.PersistentServiceFactory

public class PersistentServiceFactory
extends Object

Persistent Service Factory. Creates PersistentServices on the fly for entity classes.

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Constructor Summary
PersistentServiceFactory()
           
 
Method Summary
<T> PersistentService<T,Serializable>
createPersistentService(Class<T> clazz)
          Creates a PersistentService with default transaction attributes
<T> PersistentService<T,Serializable>
makeTransactionalProxy(PersistentService<T,Serializable> service)
          Creates a default transactional proxy for service with default transacction attributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentServiceFactory

public PersistentServiceFactory()
Method Detail

createPersistentService

public <T> PersistentService<T,Serializable> createPersistentService(Class<T> clazz)
Creates a PersistentService with default transaction attributes

Parameters:
clazz - entity class

makeTransactionalProxy

public <T> PersistentService<T,Serializable> makeTransactionalProxy(PersistentService<T,Serializable> service)
Creates a default transactional proxy for service with default transacction attributes

Type Parameters:
T -
Parameters:
service -
Returns:
a Tx Proxy for service with default tx attributes


Copyright © 2012 JDAL. All Rights Reserved.