org.apache.cayenne.jpa
Interface CayenneEntityManager

All Superinterfaces:
javax.persistence.EntityManager
All Known Implementing Classes:
JtaEntityManager, ResourceLocalEntityManager, TypeCheckingEntityManager

public interface CayenneEntityManager
extends javax.persistence.EntityManager

An interface that allows to access Cayenne runtime hidden behind standard JPA classes. To do that, simply cast an EntityManager returned by Cayenne provider to "CayenneEntityManager". Note that a regular JPA application shouldn't normally attempt to do that. Otherwise it will not be portable across JPA providers.


Method Summary
 DataChannel getChannel()
          Returns a Cayenne DataChannel that is used to link EntityManager with Cayenne runtime.
 
Methods inherited from interface javax.persistence.EntityManager
clear, close, contains, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, find, flush, getDelegate, getFlushMode, getReference, getTransaction, isOpen, joinTransaction, lock, merge, persist, refresh, remove, setFlushMode
 

Method Detail

getChannel

DataChannel getChannel()
Returns a Cayenne DataChannel that is used to link EntityManager with Cayenne runtime. DataChannel can be used for instance to obtain Cayenne metadata or add listeners.



Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.