org.apache.cayenne.access
Interface DataContextFactory


public interface DataContextFactory

An interface for creating DataContexts.

Since:
1.2

Method Summary
 DataContext createDataContext(DataChannel parent, ObjectStore objectStore)
          Creates a DataContext with parent QueryEngine and a DataRowStore that should be used by the ObjectStore.
 

Method Detail

createDataContext

DataContext createDataContext(DataChannel parent,
                              ObjectStore objectStore)
Creates a DataContext with parent QueryEngine and a DataRowStore that should be used by the ObjectStore.

Parameters:
parent - parent QueryEngine used to communicate with the data source.
objectStore - ObjectStore used by DataContext.
Since:
1.2


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