# Uses of Interface
org.apache.cayenne.DataChannel

Packages that use DataChannel
Package
Description
org.apache.cayenne
Contains persistence APIs directly accessible by users.
org.apache.cayenne.access
Contains classes that make up Cayenne ORM stack.
org.apache.cayenne.configuration
org.apache.cayenne.configuration.runtime
org.apache.cayenne.runtime
API related to `CayenneRuntime` creation.
org.apache.cayenne.util
General utility classes.

- ## Uses of DataChannel in org.apache.cayenne

  Subinterfaces of DataChannel in org.apache.cayenne
  Modifier and Type
  Interface
  Description
  `interface`
  `ObjectContext`
  A Cayenne object facade to a persistent store.
  Classes in org.apache.cayenne that implement DataChannel
  Modifier and Type
  Class
  Description
  `class`
  `BaseContext`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `DataContext` directly
  Methods in org.apache.cayenne that return DataChannel
  Modifier and Type
  Method
  Description
  `default DataChannel`
  ObjectContext.`getChannel()`
  Deprecated, for removal: This API element is subject to removal in a future version.
  in favor of `DataChannel.getParent()`
  `DataChannel`
  DataChannel.`getParent()`
  Returns the parent channel of this channel in the DataChannel stack, or null if this is a root channel (such as a `DataDomain`).

- ## Uses of DataChannel in org.apache.cayenne.access

  Classes in org.apache.cayenne.access that implement DataChannel
  Modifier and Type
  Class
  Description
  `class`
  `DataContext`
  The most common implementation of `ObjectContext`.
  `class`
  `DataDomain`
  DataDomain performs query routing functions in Cayenne.
  Fields in org.apache.cayenne.access declared as DataChannel
  Modifier and Type
  Field
  Description
  `protected DataChannel`
  DataContext.`channel`
  Methods in org.apache.cayenne.access that return DataChannel
  Modifier and Type
  Method
  Description
  `DataChannel`
  DataContext.`getParent()`
  `DataChannel`
  DataDomain.`getParent()`
  Returns null, as DataDomain is the root of the DataChannel stack.
  Methods in org.apache.cayenne.access with parameters of type DataChannel
  Modifier and Type
  Method
  Description
  `protected void`
  DataContext.`attachToChannel(DataChannel channel)`
  Attaches to a provided DataChannel.
  `void`
  DataContext.`setChannel(DataChannel channel)`
  Sets a new DataChannel for this context.
  Constructors in org.apache.cayenne.access with parameters of type DataChannel
  Modifier
  Constructor
  Description
  ``
  `DataContext(DataChannel channel, ObjectStore objectStore)`
  Creates a new DataContext with parent DataChannel and ObjectStore.

- ## Uses of DataChannel in org.apache.cayenne.configuration

  Methods in org.apache.cayenne.configuration with parameters of type DataChannel
  Modifier and Type
  Method
  Description
  `ObjectContext`
  ObjectContextFactory.`createContext(DataChannel parent)`
  Creates an ObjectContext attached to a provided channel.

- ## Uses of DataChannel in org.apache.cayenne.configuration.runtime

  Methods in org.apache.cayenne.configuration.runtime with parameters of type DataChannel
  Modifier and Type
  Method
  Description
  `ObjectContext`
  DataContextFactory.`createContext(DataChannel parent)`
  `protected ObjectContext`
  DataContextFactory.`createFromGenericChannel(DataChannel parent)`
  `protected DataContext`
  DataContextFactory.`newInstance(DataChannel parent, ObjectStore objectStore)`

- ## Uses of DataChannel in org.apache.cayenne.runtime

  Methods in org.apache.cayenne.runtime that return DataChannel
  Modifier and Type
  Method
  Description
  `DataChannel`
  CayenneRuntime.`getChannel()`
  Deprecated, for removal: This API element is subject to removal in a future version.
  in favor of `CayenneRuntime.getDataDomain()`
  Methods in org.apache.cayenne.runtime with parameters of type DataChannel
  Modifier and Type
  Method
  Description
  `ObjectContext`
  CayenneRuntime.`newContext(DataChannel parentChannel)`
  Returns a new ObjectContext which is a child of the specified DataChannel.

- ## Uses of DataChannel in org.apache.cayenne.util

  Methods in org.apache.cayenne.util with parameters of type DataChannel
  Modifier and Type
  Method
  Description
  `static boolean`
  EventUtil.`listenForChannelEvents(DataChannel channel, DataChannelListener listener)`
  Utility method that sets up a GraphChangeListener to be notified when DataChannel posts an event.