org.apache.geronimo.persistence
Class CMPEntityManagerTxScoped

java.lang.Object
  extended by org.apache.geronimo.persistence.CMPEntityManagerTxScoped
All Implemented Interfaces:
EntityManager

public class CMPEntityManagerTxScoped
extends Object
implements EntityManager


Constructor Summary
CMPEntityManagerTxScoped(org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager, String persistenceUnit, EntityManagerFactory entityManagerFactory, Map entityManagerProperties)
           
 
Method Summary
 void clear()
           
 void close()
           
 boolean contains(Object o)
           
 Query createNamedQuery(String s)
           
 Query createNativeQuery(String s)
           
 Query createNativeQuery(String s, Class aClass)
           
 Query createNativeQuery(String s, String s1)
           
 Query createQuery(String s)
           
<T> T
find(Class<T> aClass, Object o)
           
 void flush()
           
 Object getDelegate()
           
 FlushModeType getFlushMode()
           
<T> T
getReference(Class<T> aClass, Object o)
           
 EntityTransaction getTransaction()
           
 boolean isOpen()
           
 void joinTransaction()
           
 void lock(Object o, LockModeType lockModeType)
           
<T> T
merge(T t)
           
 void persist(Object o)
           
 void refresh(Object o)
           
 void remove(Object o)
           
 void setFlushMode(FlushModeType flushModeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMPEntityManagerTxScoped

public CMPEntityManagerTxScoped(org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager,
                                String persistenceUnit,
                                EntityManagerFactory entityManagerFactory,
                                Map entityManagerProperties)
Method Detail

persist

public void persist(Object o)
Specified by:
persist in interface EntityManager

merge

public <T> T merge(T t)
Specified by:
merge in interface EntityManager

remove

public void remove(Object o)
Specified by:
remove in interface EntityManager

find

public <T> T find(Class<T> aClass,
                  Object o)
Specified by:
find in interface EntityManager

getReference

public <T> T getReference(Class<T> aClass,
                          Object o)
Specified by:
getReference in interface EntityManager

flush

public void flush()
Specified by:
flush in interface EntityManager

setFlushMode

public void setFlushMode(FlushModeType flushModeType)
Specified by:
setFlushMode in interface EntityManager

getFlushMode

public FlushModeType getFlushMode()
Specified by:
getFlushMode in interface EntityManager

lock

public void lock(Object o,
                 LockModeType lockModeType)
Specified by:
lock in interface EntityManager

refresh

public void refresh(Object o)
Specified by:
refresh in interface EntityManager

clear

public void clear()
Specified by:
clear in interface EntityManager

contains

public boolean contains(Object o)
Specified by:
contains in interface EntityManager

createQuery

public Query createQuery(String s)
Specified by:
createQuery in interface EntityManager

createNamedQuery

public Query createNamedQuery(String s)
Specified by:
createNamedQuery in interface EntityManager

createNativeQuery

public Query createNativeQuery(String s)
Specified by:
createNativeQuery in interface EntityManager

createNativeQuery

public Query createNativeQuery(String s,
                               Class aClass)
Specified by:
createNativeQuery in interface EntityManager

createNativeQuery

public Query createNativeQuery(String s,
                               String s1)
Specified by:
createNativeQuery in interface EntityManager

close

public void close()
Specified by:
close in interface EntityManager

isOpen

public boolean isOpen()
Specified by:
isOpen in interface EntityManager

getTransaction

public EntityTransaction getTransaction()
Specified by:
getTransaction in interface EntityManager

joinTransaction

public void joinTransaction()
Specified by:
joinTransaction in interface EntityManager

getDelegate

public Object getDelegate()
Specified by:
getDelegate in interface EntityManager


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.