org.apache.cayenne.jpa
Interface CayenneEntityManager

All Known Implementing Classes:
JtaEntityManager, ResourceLocalEntityManager, TypeCheckingEntityManager

public interface CayenneEntityManager

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.

Author:
Andrus Adamchik

Method Summary
 DataChannel getChannel()
          Returns a Cayenne DataChannel that is used to link EntityManager with Cayenne runtime.
 

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-2007 Apache Cayenne. All Rights Reserved.