blob: c986b2a544d47bc9732f4b896ccd7f689be59fc5 [file] [log] [blame]
Title: DataContext
<H2><A name="DataContext-DataContext"></A>DataContext</H2>
<P>In most applications <TT>org.apache.cayenne.access.DataContext</TT> is the main user access point to all Cayenne functionality. It provides query execution facilities as well as object state management functions. Applications rarely directly deal with access or mapping objects beyond DataContext.</P>
<P>One of the important features of DataContext is that it isolates changes made in a user session from other users. With this in mind, DataContext normally has a session scope. &quot;Session&quot; can have different meanings in different types of applications. Good example is an HttpSession in a web application. In fact a DataContext is often bound to HttpSession and is reused between requests for the same user.</P>
<H3><A name="DataContext-Sections"></A>Sections</H3>
<OL>
<LI><A href="obtaining-datacontext.html" title="Obtaining DataContext">Obtaining DataContext</A></LI>
<LI><A href="running-queries.html" title="Running Queries">Running Queries</A></LI>
<LI><A href="dataobject-state-management.html" title="DataObject State Management">DataObject State Management</A></LI>
<LI><A href="moving-objects-between-contexts.html" title="Moving Objects Between Contexts">Moving Objects Between Contexts</A></LI>
<LI><A href="datacontextdelegate.html" title="DataContextDelegate">DataContextDelegate</A></LI>
<LI><A href="datacontextfactory.html" title="DataContextFactory">DataContextFactory</A></LI>
<LI><A href="nested-contexts.html" title="Nested Contexts">Nested Contexts</A></LI>
<LI><A href="objectcontext-memory-management.html" title="ObjectContext Memory Management">ObjectContext Memory Management</A></LI>
</OL>