Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Author:
  Andrus Adamchik

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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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