org.apache.geronimo.persistence
Class InternalCMPEntityManagerExtended

java.lang.Object
  extended by org.apache.geronimo.persistence.InternalCMPEntityManagerExtended
All Implemented Interfaces:
EntityManager, Synchronization, EntityManagerWrapper

public class InternalCMPEntityManagerExtended
extends Object
implements EntityManager, EntityManagerWrapper

InternalCMPEntityManagerExtended is an EntityManager wrapper that CMPEntityManagerExtended wraps the real EntityManager with and registers with the transaction.


Constructor Summary
InternalCMPEntityManagerExtended(EntityManager entityManager, String persistenceUnit, org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager)
           
 
Method Summary
 void afterCompletion(int i)
           
 void beforeCompletion()
           
 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()
           
 EntityManager getEntityManager()
           
 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

InternalCMPEntityManagerExtended

public InternalCMPEntityManagerExtended(EntityManager entityManager,
                                        String persistenceUnit,
                                        org.apache.geronimo.transaction.manager.TransactionManagerImpl transactionManager)
Method Detail

getEntityManager

public EntityManager getEntityManager()
Specified by:
getEntityManager in interface EntityManagerWrapper

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

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int i)
Specified by:
afterCompletion in interface Synchronization


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.