# Uses of Class
org.apache.cayenne.access.DataContext

Packages that use DataContext
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.access.flush
org.apache.cayenne.configuration.runtime

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

  Subclasses of DataContext in org.apache.cayenne
  Modifier and Type
  Class
  Description
  `class`
  `BaseContext`
  Deprecated, for removal: This API element is subject to removal in a future version.
  use `DataContext` directly

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

  Fields in org.apache.cayenne.access declared as DataContext
  Modifier and Type
  Field
  Description
  `protected DataContext`
  ObjectStore.`context`
  The DataContext that owns this ObjectStore.
  `protected final DataContext`
  IncrementalFaultList.`dataContext`
  Methods in org.apache.cayenne.access that return DataContext
  Modifier and Type
  Method
  Description
  `DataContext`
  ObjectStore.`getContext()`
  `DataContext`
  IncrementalFaultList.`getDataContext()`
  Returns the dataContext.
  Methods in org.apache.cayenne.access with parameters of type DataContext
  Modifier and Type
  Method
  Description
  `void`
  ObjectStore.`setContext(DataContext context)`
  `Query`
  DataContextDelegate.`willPerformGenericQuery(DataContext context, Query query)`
  Invoked before a Query is executed via DataContext.performGenericQuery.
  `Query`
  DataContextDelegate.`willPerformQuery(DataContext context, Query query)`
  Invoked before a Query is executed via DataContext.performQuery.

- ## Uses of DataContext in org.apache.cayenne.access.flush

  Methods in org.apache.cayenne.access.flush with parameters of type DataContext
  Modifier and Type
  Method
  Description
  `GraphDiff`
  DataDomainFlushAction.`flush(DataContext context, GraphDiff changes)`
  `GraphDiff`
  DefaultDataDomainFlushAction.`flush(DataContext context, GraphDiff changes)`
  `protected void`
  DefaultDataDomainFlushAction.`postprocess(DataContext context, ObjectStoreGraphDiff changes, CompoundDiff afterCommitDiff, List<DbRowOp> dbRowOps)`
  Notify `ObjectStore` and it's data row cache about actual changes we performed.

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

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