| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.6.0_24) on Sat Jun 11 11:32:58 EEST 2011 --> |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <TITLE> |
| DataContext (Cayenne Documentation 3.0.2 API) |
| </TITLE> |
| |
| <META NAME="date" CONTENT="2011-06-11"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="DataContext (Cayenne Documentation 3.0.2 API)"; |
| } |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| <HR> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/cayenne/access/ConnectionLogger.html" title="class in org.apache.cayenne.access"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/cayenne/access/DataContextDelegate.html" title="interface in org.apache.cayenne.access"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/cayenne/access/DataContext.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="DataContext.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.cayenne.access</FONT> |
| <BR> |
| Class DataContext</H2> |
| <PRE> |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">org.apache.cayenne.BaseContext</A> |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.cayenne.access.DataContext</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A>, <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A>, <A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>DataContext</B><DT>extends <A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A><DT>implements <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A></DL> |
| </PRE> |
| |
| <P> |
| The most common implementation of <A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne"><CODE>ObjectContext</CODE></A>. DataContext is an isolated |
| container of an object graph, in a sense that any uncommitted changes to persistent |
| objects that are registered with the context, are not visible to the users of other |
| contexts. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#org.apache.cayenne.access.DataContext">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/cayenne/map/EntityResolver.html" title="class in org.apache.cayenne.map">EntityResolver</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#entityResolver">entityResolver</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#lazyInitParentDomainName">lazyInitParentDomainName</A></B></CODE> |
| |
| <BR> |
| Stores the name of parent DataDomain.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected org.apache.cayenne.access.DataContextMergeHandler</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#mergeHandler">mergeHandler</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/cayenne/access/ObjectStore.html" title="class in org.apache.cayenne.access">ObjectStore</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectStore">objectStore</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#usingSharedSnaphsotCache">usingSharedSnaphsotCache</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#validatingObjectsOnCommit">validatingObjectsOnCommit</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_org.apache.cayenne.BaseContext"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from class org.apache.cayenne.<A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#channel">channel</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#queryCache">queryCache</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#threadObjectContext">threadObjectContext</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#userProperties">userProperties</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_org.apache.cayenne.DataChannel"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from interface org.apache.cayenne.<A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/apache/cayenne/DataChannel.html#FLUSH_CASCADE_SYNC">FLUSH_CASCADE_SYNC</A>, <A HREF="../../../../org/apache/cayenne/DataChannel.html#FLUSH_NOCASCADE_SYNC">FLUSH_NOCASCADE_SYNC</A>, <A HREF="../../../../org/apache/cayenne/DataChannel.html#GRAPH_CHANGED_SUBJECT">GRAPH_CHANGED_SUBJECT</A>, <A HREF="../../../../org/apache/cayenne/DataChannel.html#GRAPH_FLUSHED_SUBJECT">GRAPH_FLUSHED_SUBJECT</A>, <A HREF="../../../../org/apache/cayenne/DataChannel.html#GRAPH_ROLLEDBACK_SUBJECT">GRAPH_ROLLEDBACK_SUBJECT</A>, <A HREF="../../../../org/apache/cayenne/DataChannel.html#ROLLBACK_CASCADE_SYNC">ROLLBACK_CASCADE_SYNC</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#DataContext()">DataContext</A></B>()</CODE> |
| |
| <BR> |
| Creates a new DataContext that is not attached to the Cayenne stack.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#DataContext(org.apache.cayenne.DataChannel, org.apache.cayenne.access.ObjectStore)">DataContext</A></B>(<A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A> channel, |
| <A HREF="../../../../org/apache/cayenne/access/ObjectStore.html" title="class in org.apache.cayenne.access">ObjectStore</A> objectStore)</CODE> |
| |
| <BR> |
| Creates a new DataContext with parent DataChannel and ObjectStore.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#bindThreadDataContext(org.apache.cayenne.access.DataContext)">bindThreadDataContext</A></B>(<A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> context)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0, replaced by BaseContex#bindThreadObjectContext().</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#commitChanges()">commitChanges</A></B>()</CODE> |
| |
| <BR> |
| Synchronizes object graph with the database.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#commitChangesToParent()">commitChangesToParent</A></B>()</CODE> |
| |
| <BR> |
| "Flushes" the changes to the parent <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne"><CODE>DataChannel</CODE></A>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createAndRegisterNewObject(java.lang.Class)">createAndRegisterNewObject</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> objectClass)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0, use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObject(java.lang.Class)"><CODE>newObject(Class)</CODE></A> instead.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createAndRegisterNewObject(java.lang.String)">createAndRegisterNewObject</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> objEntityName)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0, use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObject(java.lang.String)"><CODE>newObject(String)</CODE></A> instead.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createChildContext()">createChildContext</A></B>()</CODE> |
| |
| <BR> |
| Creates and returns a new child ObjectContext.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createChildDataContext()">createChildDataContext</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0 use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#createChildContext()"><CODE>createChildContext()</CODE></A>.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createDataContext()">createDataContext</A></B>()</CODE> |
| |
| <BR> |
| Factory method that creates and returns a new instance of DataContext based on |
| default domain.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createDataContext(boolean)">createDataContext</A></B>(boolean useSharedCache)</CODE> |
| |
| <BR> |
| Factory method that creates and returns a new instance of DataContext based on |
| default domain.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createDataContext(java.lang.String)">createDataContext</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> domainName)</CODE> |
| |
| <BR> |
| Factory method that creates and returns a new instance of DataContext using named |
| domain as its parent.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#createDataContext(java.lang.String, boolean)">createDataContext</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> domainName, |
| boolean useSharedCache)</CODE> |
| |
| <BR> |
| Creates and returns new DataContext that will use a named DataDomain as its parent.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#currentSnapshot(org.apache.cayenne.Persistent)">currentSnapshot</A></B>(<A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A> object)</CODE> |
| |
| <BR> |
| Returns a DataRow reflecting current, possibly uncommitted, object state.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#deletedObjects()">deletedObjects</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of objects that are registered with this DataContext and have a |
| state PersistenceState.DELETED</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#deleteObject(java.lang.Object)">deleteObject</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> object)</CODE> |
| |
| <BR> |
| Schedules an object for deletion on the next commit of this DataContext.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#deleteObjects(java.util.Collection)">deleteObjects</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objects)</CODE> |
| |
| <BR> |
| Schedules all objects in the collection for deletion on the next commit of this |
| DataContext.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#fireDataChannelChanged(java.lang.Object, org.apache.cayenne.graph.GraphDiff)">fireDataChannelChanged</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> postedBy, |
| <A HREF="../../../../org/apache/cayenne/graph/GraphDiff.html" title="interface in org.apache.cayenne.graph">GraphDiff</A> changes)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getChannel()">getChannel</A></B>()</CODE> |
| |
| <BR> |
| Returns an DataChannel used by this context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/access/DataContextDelegate.html" title="interface in org.apache.cayenne.access">DataContextDelegate</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getDelegate()">getDelegate</A></B>()</CODE> |
| |
| <BR> |
| Returns a delegate currently associated with this DataContext.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/map/EntityResolver.html" title="class in org.apache.cayenne.map">EntityResolver</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getEntityResolver()">getEntityResolver</A></B>()</CODE> |
| |
| <BR> |
| Returns EntityResolver.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/graph/GraphManager.html" title="interface in org.apache.cayenne.graph">GraphManager</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getGraphManager()">getGraphManager</A></B>()</CODE> |
| |
| <BR> |
| Returns this context's ObjectStore.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/access/ObjectStore.html" title="class in org.apache.cayenne.access">ObjectStore</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getObjectStore()">getObjectStore</A></B>()</CODE> |
| |
| <BR> |
| Returns ObjectStore associated with this DataContext.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getParentDataDomain()">getParentDataDomain</A></B>()</CODE> |
| |
| <BR> |
| Returns a DataDomain used by this DataContext.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/cache/QueryCache.html" title="interface in org.apache.cayenne.cache">QueryCache</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getQueryCache()">getQueryCache</A></B>()</CODE> |
| |
| <BR> |
| Returns <A HREF="../../../../org/apache/cayenne/cache/QueryCache.html" title="interface in org.apache.cayenne.cache"><CODE>QueryCache</CODE></A> used by this DataContext, creating it on the fly if |
| needed.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#getThreadDataContext()">getThreadDataContext</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0, replaced by BaseContex#getThreadObjectContext().</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#hasChanges()">hasChanges</A></B>()</CODE> |
| |
| <BR> |
| Returns <code>true</code> if there are any modified, deleted or new objects |
| registered with this DataContext, <code>false</code> otherwise.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#isUsingSharedSnapshotCache()">isUsingSharedSnapshotCache</A></B>()</CODE> |
| |
| <BR> |
| Returns <code>true</code> if the ObjectStore uses shared cache of a parent |
| DataDomain.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#isValidatingObjectsOnCommit()">isValidatingObjectsOnCommit</A></B>()</CODE> |
| |
| <BR> |
| Returns whether this DataContext performs object validation before commit is |
| executed.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#localObject(org.apache.cayenne.ObjectId, java.lang.Object)">localObject</A></B>(<A HREF="../../../../org/apache/cayenne/ObjectId.html" title="class in org.apache.cayenne">ObjectId</A> id, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> prototype)</CODE> |
| |
| <BR> |
| Returns an object local to this DataContext and matching the ObjectId.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#modifiedObjects()">modifiedObjects</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of objects that are registered with this DataContext and have a |
| state PersistenceState.MODIFIED</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
| <TR ALIGN="right" VALIGN=""> |
| <TD NOWRAP><FONT SIZE="-1"> |
| <CODE><T> T</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObject(java.lang.Class)">newObject</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> persistentClass)</CODE> |
| |
| <BR> |
| Creates and registers a new persistent object.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObject(java.lang.String)">newObject</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> entityName)</CODE> |
| |
| <BR> |
| Instantiates a new object and registers it with this context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObjects()">newObjects</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of objects that are registered with this DataContext and have a |
| state PersistenceState.NEW</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> |
| <TR ALIGN="right" VALIGN=""> |
| <TD NOWRAP><FONT SIZE="-1"> |
| <CODE><T extends <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A>> |
| <BR> |
| T</CODE></FONT></TD> |
| </TR> |
| </TABLE> |
| </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectFromDataRow(java.lang.Class, org.apache.cayenne.DataRow, boolean)">objectFromDataRow</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> objectClass, |
| <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A> dataRow, |
| boolean refresh)</CODE> |
| |
| <BR> |
| Creates a DataObject from DataRow.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectFromDataRow(java.lang.String, org.apache.cayenne.DataRow, boolean)">objectFromDataRow</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> entityName, |
| <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A> dataRow, |
| boolean refresh)</CODE> |
| |
| <BR> |
| Creates a DataObject from DataRow.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectsFromDataRows(java.lang.Class, java.util.List, boolean, boolean)">objectsFromDataRows</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> objectClass, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><? extends <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A>> dataRows, |
| boolean refresh, |
| boolean resolveInheritanceHierarchy)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0 as refresh and resolveInheritanceHierarchy flags are |
| deprecated. Use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectsFromDataRows(org.apache.cayenne.reflect.ClassDescriptor, java.util.List)"><CODE>objectsFromDataRows(ClassDescriptor, List)</CODE></A> |
| instead.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectsFromDataRows(org.apache.cayenne.reflect.ClassDescriptor, java.util.List)">objectsFromDataRows</A></B>(<A HREF="../../../../org/apache/cayenne/reflect/ClassDescriptor.html" title="interface in org.apache.cayenne.reflect">ClassDescriptor</A> descriptor, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><? extends <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A>> dataRows)</CODE> |
| |
| <BR> |
| Converts a list of DataRows to a List of DataObject registered with this |
| DataContext.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectsFromDataRows(org.apache.cayenne.map.ObjEntity, java.util.List, boolean, boolean)">objectsFromDataRows</A></B>(<A HREF="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map">ObjEntity</A> entity, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> dataRows, |
| boolean refresh, |
| boolean resolveInheritanceHierarchy)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0 as refreshing and resolvingInheritanceHierarchy flags are |
| deprecated. Use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectsFromDataRows(org.apache.cayenne.reflect.ClassDescriptor, java.util.List)"><CODE>objectsFromDataRows(ClassDescriptor, List)</CODE></A> |
| instead.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/cayenne/graph/GraphDiff.html" title="interface in org.apache.cayenne.graph">GraphDiff</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#onContextFlush(org.apache.cayenne.ObjectContext, org.apache.cayenne.graph.GraphDiff, boolean)">onContextFlush</A></B>(<A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A> originatingContext, |
| <A HREF="../../../../org/apache/cayenne/graph/GraphDiff.html" title="interface in org.apache.cayenne.graph">GraphDiff</A> changes, |
| boolean cascade)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/QueryResponse.html" title="interface in org.apache.cayenne">QueryResponse</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#onQuery(org.apache.cayenne.ObjectContext, org.apache.cayenne.query.Query)">onQuery</A></B>(<A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A> context, |
| <A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</CODE> |
| |
| <BR> |
| An implementation of a <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne"><CODE>DataChannel</CODE></A> method that is used by child contexts to |
| execute queries.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/QueryResponse.html" title="interface in org.apache.cayenne">QueryResponse</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performGenericQuery(org.apache.cayenne.query.Query)">performGenericQuery</A></B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</CODE> |
| |
| <BR> |
| Executes a query returning a generic response.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/access/ResultIterator.html" title="interface in org.apache.cayenne.access">ResultIterator</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performIteratedQuery(org.apache.cayenne.query.Query)">performIteratedQuery</A></B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</CODE> |
| |
| <BR> |
| Performs a single database select query returning result as a ResultIterator.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performNonSelectingQuery(org.apache.cayenne.query.Query)">performNonSelectingQuery</A></B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</CODE> |
| |
| <BR> |
| Performs a single database query that does not select rows.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performNonSelectingQuery(java.lang.String)">performNonSelectingQuery</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName)</CODE> |
| |
| <BR> |
| Performs a named mapped query that does not select rows.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performNonSelectingQuery(java.lang.String, java.util.Map)">performNonSelectingQuery</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,?> parameters)</CODE> |
| |
| <BR> |
| Performs a named mapped non-selecting query using a map of parameters.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performQuery(org.apache.cayenne.query.Query)">performQuery</A></B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</CODE> |
| |
| <BR> |
| Performs a single selecting query.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><?></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performQuery(java.lang.String, boolean)">performQuery</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName, |
| boolean expireCachedLists)</CODE> |
| |
| <BR> |
| Returns a list of objects or DataRows for a named query stored in one of the |
| DataMaps.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><?></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#performQuery(java.lang.String, java.util.Map, boolean)">performQuery</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A> parameters, |
| boolean expireCachedLists)</CODE> |
| |
| <BR> |
| Returns a list of objects or DataRows for a named query stored in one of the |
| DataMaps.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#propertyChanged(org.apache.cayenne.Persistent, java.lang.String, java.lang.Object, java.lang.Object)">propertyChanged</A></B>(<A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A> object, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> property, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> oldValue, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> newValue)</CODE> |
| |
| <BR> |
| A callback method that child Persistent objects are expected to call from inside |
| the setter after modifying a value of a persistent property, including "simple" and |
| "arc" properties.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#refetchObject(org.apache.cayenne.ObjectId)">refetchObject</A></B>(<A HREF="../../../../org/apache/cayenne/ObjectId.html" title="class in org.apache.cayenne">ObjectId</A> oid)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>since 3.0 use <A HREF="../../../../org/apache/cayenne/query/ObjectIdQuery.html" title="class in org.apache.cayenne.query"><CODE>ObjectIdQuery</CODE></A> with appropriate refresh settings.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#registerNewObject(java.lang.Object)">registerNewObject</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> object)</CODE> |
| |
| <BR> |
| Registers a transient object with the context, recursively registering all |
| transient persistent objects attached to this object via relationships.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#rollbackChanges()">rollbackChanges</A></B>()</CODE> |
| |
| <BR> |
| Reverts any changes that have occurred to objects registered with DataContext; also |
| performs cascading rollback of all parent DataContexts.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#rollbackChangesLocally()">rollbackChangesLocally</A></B>()</CODE> |
| |
| <BR> |
| If the parent channel is a DataContext, reverts local changes to make this context |
| look like the parent, if the parent channel is a DataDomain, reverts all changes.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#setChannel(org.apache.cayenne.DataChannel)">setChannel</A></B>(<A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A> channel)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#setDelegate(org.apache.cayenne.access.DataContextDelegate)">setDelegate</A></B>(<A HREF="../../../../org/apache/cayenne/access/DataContextDelegate.html" title="interface in org.apache.cayenne.access">DataContextDelegate</A> delegate)</CODE> |
| |
| <BR> |
| Sets a DataContextDelegate for this context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#setValidatingObjectsOnCommit(boolean)">setValidatingObjectsOnCommit</A></B>(boolean flag)</CODE> |
| |
| <BR> |
| Sets the property defining whether this DataContext should perform object |
| validation before commit is executed.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#uncommittedObjects()">uncommittedObjects</A></B>()</CODE> |
| |
| <BR> |
| Returns a collection of all uncommitted registered objects.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/access/DataContext.html#unregisterObjects(java.util.Collection)">unregisterObjects</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> dataObjects)</CODE> |
| |
| <BR> |
| Unregisters a Collection of DataObjects from the DataContext and the underlying |
| ObjectStore.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.apache.cayenne.BaseContext"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class org.apache.cayenne.<A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#bindThreadObjectContext(org.apache.cayenne.ObjectContext)">bindThreadObjectContext</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#fireDataChannelCommitted(java.lang.Object, org.apache.cayenne.graph.GraphDiff)">fireDataChannelCommitted</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#fireDataChannelRolledback(java.lang.Object, org.apache.cayenne.graph.GraphDiff)">fireDataChannelRolledback</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#getEventManager()">getEventManager</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#getThreadObjectContext()">getThreadObjectContext</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#getUserProperties()">getUserProperties</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#getUserProperty(java.lang.String)">getUserProperty</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#injectInitialValue(java.lang.Object)">injectInitialValue</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#invalidateObjects(java.util.Collection)">invalidateObjects</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#onSync(org.apache.cayenne.ObjectContext, org.apache.cayenne.graph.GraphDiff, int)">onSync</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#prepareForAccess(org.apache.cayenne.Persistent, java.lang.String)">prepareForAccess</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#prepareForAccess(org.apache.cayenne.Persistent, java.lang.String, boolean)">prepareForAccess</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#setQueryCache(org.apache.cayenne.cache.QueryCache)">setQueryCache</A>, <A HREF="../../../../org/apache/cayenne/BaseContext.html#setUserProperty(java.lang.String, java.lang.Object)">setUserProperty</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.apache.cayenne.DataChannel"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from interface org.apache.cayenne.<A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/apache/cayenne/DataChannel.html#getEventManager()">getEventManager</A>, <A HREF="../../../../org/apache/cayenne/DataChannel.html#onSync(org.apache.cayenne.ObjectContext, org.apache.cayenne.graph.GraphDiff, int)">onSync</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="usingSharedSnaphsotCache"><!-- --></A><H3> |
| usingSharedSnaphsotCache</H3> |
| <PRE> |
| protected boolean <B>usingSharedSnaphsotCache</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="validatingObjectsOnCommit"><!-- --></A><H3> |
| validatingObjectsOnCommit</H3> |
| <PRE> |
| protected boolean <B>validatingObjectsOnCommit</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="objectStore"><!-- --></A><H3> |
| objectStore</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/cayenne/access/ObjectStore.html" title="class in org.apache.cayenne.access">ObjectStore</A> <B>objectStore</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="entityResolver"><!-- --></A><H3> |
| entityResolver</H3> |
| <PRE> |
| protected transient <A HREF="../../../../org/apache/cayenne/map/EntityResolver.html" title="class in org.apache.cayenne.map">EntityResolver</A> <B>entityResolver</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="mergeHandler"><!-- --></A><H3> |
| mergeHandler</H3> |
| <PRE> |
| protected transient org.apache.cayenne.access.DataContextMergeHandler <B>mergeHandler</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="lazyInitParentDomainName"><!-- --></A><H3> |
| lazyInitParentDomainName</H3> |
| <PRE> |
| protected transient <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>lazyInitParentDomainName</B></PRE> |
| <DL> |
| <DD>Stores the name of parent DataDomain. Used to defer initialization of the parent |
| QueryEngine after deserialization. This helps avoid an issue with certain servlet |
| engines (e.g. Tomcat) where HttpSessions with DataContext's are deserialized at |
| startup before Cayenne stack is fully initialized. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="DataContext()"><!-- --></A><H3> |
| DataContext</H3> |
| <PRE> |
| public <B>DataContext</B>()</PRE> |
| <DL> |
| <DD>Creates a new DataContext that is not attached to the Cayenne stack. |
| <P> |
| </DL> |
| <HR> |
| |
| <A NAME="DataContext(org.apache.cayenne.DataChannel, org.apache.cayenne.access.ObjectStore)"><!-- --></A><H3> |
| DataContext</H3> |
| <PRE> |
| public <B>DataContext</B>(<A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A> channel, |
| <A HREF="../../../../org/apache/cayenne/access/ObjectStore.html" title="class in org.apache.cayenne.access">ObjectStore</A> objectStore)</PRE> |
| <DL> |
| <DD>Creates a new DataContext with parent DataChannel and ObjectStore. |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getThreadDataContext()"><!-- --></A><H3> |
| getThreadDataContext</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> <B>getThreadDataContext</B>() |
| throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0, replaced by BaseContex#getThreadObjectContext().</I> |
| <P> |
| <DD>Returns the DataContext bound to the current thread. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the DataContext associated with caller thread. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</A></CODE> - if there is no DataContext bound to the current |
| thread.<DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/conf/WebApplicationContextFilter.html" title="class in org.apache.cayenne.conf"><CODE>WebApplicationContextFilter</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="bindThreadDataContext(org.apache.cayenne.access.DataContext)"><!-- --></A><H3> |
| bindThreadDataContext</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public static void <B>bindThreadDataContext</B>(<A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> context)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0, replaced by BaseContex#bindThreadObjectContext().</I> |
| <P> |
| <DD>Binds a DataContext to the current thread. DataContext can later be retrieved by |
| users in the same thread by calling <A HREF="../../../../org/apache/cayenne/access/DataContext.html#getThreadDataContext()"><CODE>getThreadDataContext()</CODE></A>. Using |
| null parameter will unbind currently bound DataContext. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createDataContext()"><!-- --></A><H3> |
| createDataContext</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> <B>createDataContext</B>()</PRE> |
| <DL> |
| <DD>Factory method that creates and returns a new instance of DataContext based on |
| default domain. If more than one domain exists in the current configuration, |
| <A HREF="../../../../org/apache/cayenne/access/DataContext.html#createDataContext(java.lang.String)"><CODE>createDataContext(String)</CODE></A> must be used instead. ObjectStore |
| associated with created DataContext will have a cache stack configured using parent |
| domain settings. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createDataContext(boolean)"><!-- --></A><H3> |
| createDataContext</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> <B>createDataContext</B>(boolean useSharedCache)</PRE> |
| <DL> |
| <DD>Factory method that creates and returns a new instance of DataContext based on |
| default domain. If more than one domain exists in the current configuration, |
| <A HREF="../../../../org/apache/cayenne/access/DataContext.html#createDataContext(java.lang.String, boolean)"><CODE>createDataContext(String, boolean)</CODE></A> must be used instead. |
| ObjectStore associated with newly created DataContext will have a cache stack |
| configured according to the specified policy, overriding a parent domain setting. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createDataContext(java.lang.String)"><!-- --></A><H3> |
| createDataContext</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> <B>createDataContext</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> domainName)</PRE> |
| <DL> |
| <DD>Factory method that creates and returns a new instance of DataContext using named |
| domain as its parent. If there is no domain matching the name argument, an |
| exception is thrown. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createDataContext(java.lang.String, boolean)"><!-- --></A><H3> |
| createDataContext</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> <B>createDataContext</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> domainName, |
| boolean useSharedCache)</PRE> |
| <DL> |
| <DD>Creates and returns new DataContext that will use a named DataDomain as its parent. |
| ObjectStore associated with newly created DataContext will have a cache stack |
| configured according to the specified policy, overriding a parent domain setting. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getQueryCache()"><!-- --></A><H3> |
| getQueryCache</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/cache/QueryCache.html" title="interface in org.apache.cayenne.cache">QueryCache</A> <B>getQueryCache</B>()</PRE> |
| <DL> |
| <DD>Returns <A HREF="../../../../org/apache/cayenne/cache/QueryCache.html" title="interface in org.apache.cayenne.cache"><CODE>QueryCache</CODE></A> used by this DataContext, creating it on the fly if |
| needed. Uses parent DataDomain <A HREF="../../../../org/apache/cayenne/cache/QueryCacheFactory.html" title="interface in org.apache.cayenne.cache"><CODE>QueryCacheFactory</CODE></A> to initialize the cache |
| for the first time, passing parent DataDomain's properties. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#getQueryCache()">getQueryCache</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>3.0</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createChildContext()"><!-- --></A><H3> |
| createChildContext</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A> <B>createChildContext</B>()</PRE> |
| <DL> |
| <DD>Creates and returns a new child ObjectContext. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#createChildContext()">createChildContext</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>3.0</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createChildDataContext()"><!-- --></A><H3> |
| createChildDataContext</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="../../../../org/apache/cayenne/access/DataContext.html" title="class in org.apache.cayenne.access">DataContext</A> <B>createChildDataContext</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0 use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#createChildContext()"><CODE>createChildContext()</CODE></A>.</I> |
| <P> |
| <DD>Creates and returns a new child DataContext. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setChannel(org.apache.cayenne.DataChannel)"><!-- --></A><H3> |
| setChannel</H3> |
| <PRE> |
| public void <B>setChannel</B>(<A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A> channel)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getChannel()"><!-- --></A><H3> |
| getChannel</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A> <B>getChannel</B>()</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#getChannel()">ObjectContext</A></CODE></B></DD> |
| <DD>Returns an DataChannel used by this context. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#getChannel()">getChannel</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#getChannel()">getChannel</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getParentDataDomain()"><!-- --></A><H3> |
| getParentDataDomain</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</A> <B>getParentDataDomain</B>()</PRE> |
| <DL> |
| <DD>Returns a DataDomain used by this DataContext. DataDomain is looked up in the |
| DataChannel hierarchy. If a channel is not a DataDomain or a DataContext, null is |
| returned. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>DataDomain that is a direct or indirect parent of this DataContext in the |
| DataChannel hierarchy.<DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setDelegate(org.apache.cayenne.access.DataContextDelegate)"><!-- --></A><H3> |
| setDelegate</H3> |
| <PRE> |
| public void <B>setDelegate</B>(<A HREF="../../../../org/apache/cayenne/access/DataContextDelegate.html" title="interface in org.apache.cayenne.access">DataContextDelegate</A> delegate)</PRE> |
| <DL> |
| <DD>Sets a DataContextDelegate for this context. Delegate is notified of certain events |
| in the DataContext lifecycle and can customize DataContext behavior. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDelegate()"><!-- --></A><H3> |
| getDelegate</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/access/DataContextDelegate.html" title="interface in org.apache.cayenne.access">DataContextDelegate</A> <B>getDelegate</B>()</PRE> |
| <DL> |
| <DD>Returns a delegate currently associated with this DataContext. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getObjectStore()"><!-- --></A><H3> |
| getObjectStore</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/access/ObjectStore.html" title="class in org.apache.cayenne.access">ObjectStore</A> <B>getObjectStore</B>()</PRE> |
| <DL> |
| <DD>Returns ObjectStore associated with this DataContext. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="hasChanges()"><!-- --></A><H3> |
| hasChanges</H3> |
| <PRE> |
| public boolean <B>hasChanges</B>()</PRE> |
| <DL> |
| <DD>Returns <code>true</code> if there are any modified, deleted or new objects |
| registered with this DataContext, <code>false</code> otherwise. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#hasChanges()">hasChanges</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="newObjects()"><!-- --></A><H3> |
| newObjects</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?> <B>newObjects</B>()</PRE> |
| <DL> |
| <DD>Returns a list of objects that are registered with this DataContext and have a |
| state PersistenceState.NEW |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#newObjects()">newObjects</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#newObjects()">newObjects</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="deletedObjects()"><!-- --></A><H3> |
| deletedObjects</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?> <B>deletedObjects</B>()</PRE> |
| <DL> |
| <DD>Returns a list of objects that are registered with this DataContext and have a |
| state PersistenceState.DELETED |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#deletedObjects()">deletedObjects</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#deletedObjects()">deletedObjects</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="modifiedObjects()"><!-- --></A><H3> |
| modifiedObjects</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?> <B>modifiedObjects</B>()</PRE> |
| <DL> |
| <DD>Returns a list of objects that are registered with this DataContext and have a |
| state PersistenceState.MODIFIED |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#modifiedObjects()">modifiedObjects</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#modifiedObjects()">modifiedObjects</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="uncommittedObjects()"><!-- --></A><H3> |
| uncommittedObjects</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><?> <B>uncommittedObjects</B>()</PRE> |
| <DL> |
| <DD>Returns a collection of all uncommitted registered objects. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#uncommittedObjects()">uncommittedObjects</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#uncommittedObjects()">uncommittedObjects</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="currentSnapshot(org.apache.cayenne.Persistent)"><!-- --></A><H3> |
| currentSnapshot</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A> <B>currentSnapshot</B>(<A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A> object)</PRE> |
| <DL> |
| <DD>Returns a DataRow reflecting current, possibly uncommitted, object state. |
| <p> |
| <strong>Warning:</strong> This method will return a partial snapshot if an object |
| or one of its related objects that propagate their keys to this object have |
| temporary ids. DO NOT USE this method if you expect a DataRow to represent a |
| complete object state. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="objectsFromDataRows(org.apache.cayenne.map.ObjEntity, java.util.List, boolean, boolean)"><!-- --></A><H3> |
| objectsFromDataRows</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>objectsFromDataRows</B>(<A HREF="../../../../org/apache/cayenne/map/ObjEntity.html" title="class in org.apache.cayenne.map">ObjEntity</A> entity, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> dataRows, |
| boolean refresh, |
| boolean resolveInheritanceHierarchy)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0 as refreshing and resolvingInheritanceHierarchy flags are |
| deprecated. Use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectsFromDataRows(org.apache.cayenne.reflect.ClassDescriptor, java.util.List)"><CODE>objectsFromDataRows(ClassDescriptor, List)</CODE></A> |
| instead.</I> |
| <P> |
| <DD>Converts a list of data rows to a list of DataObjects. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="objectsFromDataRows(org.apache.cayenne.reflect.ClassDescriptor, java.util.List)"><!-- --></A><H3> |
| objectsFromDataRows</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>objectsFromDataRows</B>(<A HREF="../../../../org/apache/cayenne/reflect/ClassDescriptor.html" title="interface in org.apache.cayenne.reflect">ClassDescriptor</A> descriptor, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><? extends <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A>> dataRows)</PRE> |
| <DL> |
| <DD>Converts a list of DataRows to a List of DataObject registered with this |
| DataContext. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>3.0</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="objectsFromDataRows(java.lang.Class, java.util.List, boolean, boolean)"><!-- --></A><H3> |
| objectsFromDataRows</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>objectsFromDataRows</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> objectClass, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><? extends <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A>> dataRows, |
| boolean refresh, |
| boolean resolveInheritanceHierarchy)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0 as refresh and resolveInheritanceHierarchy flags are |
| deprecated. Use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#objectsFromDataRows(org.apache.cayenne.reflect.ClassDescriptor, java.util.List)"><CODE>objectsFromDataRows(ClassDescriptor, List)</CODE></A> |
| instead.</I> |
| <P> |
| <DD>Converts a list of DataRows to a List of DataObject registered with this |
| DataContext. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne"><CODE>DataRow</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="objectFromDataRow(java.lang.Class, org.apache.cayenne.DataRow, boolean)"><!-- --></A><H3> |
| objectFromDataRow</H3> |
| <PRE> |
| public <T extends <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A>> T <B>objectFromDataRow</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> objectClass, |
| <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A> dataRow, |
| boolean refresh)</PRE> |
| <DL> |
| <DD>Creates a DataObject from DataRow. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne"><CODE>DataRow</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="objectFromDataRow(java.lang.String, org.apache.cayenne.DataRow, boolean)"><!-- --></A><H3> |
| objectFromDataRow</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A> <B>objectFromDataRow</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> entityName, |
| <A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne">DataRow</A> dataRow, |
| boolean refresh)</PRE> |
| <DL> |
| <DD>Creates a DataObject from DataRow. This variety of the 'objectFromDataRow' method |
| is normally used for generic classes. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>3.0</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/DataRow.html" title="class in org.apache.cayenne"><CODE>DataRow</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createAndRegisterNewObject(java.lang.String)"><!-- --></A><H3> |
| createAndRegisterNewObject</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A> <B>createAndRegisterNewObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> objEntityName)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0, use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObject(java.lang.String)"><CODE>newObject(String)</CODE></A> instead.</I> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="newObject(java.lang.Class)"><!-- --></A><H3> |
| newObject</H3> |
| <PRE> |
| public <T> T <B>newObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> persistentClass)</PRE> |
| <DL> |
| <DD>Creates and registers a new persistent object. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#newObject(java.lang.Class)">newObject</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#newObject(java.lang.Class)">newObject</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="newObject(java.lang.String)"><!-- --></A><H3> |
| newObject</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A> <B>newObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> entityName)</PRE> |
| <DL> |
| <DD>Instantiates a new object and registers it with this context. Object class is |
| determined from the mapped entity. Object class must have a default constructor. |
| <p/> |
| <i>Note: in most cases <A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObject(java.lang.Class)"><CODE>newObject(Class)</CODE></A> method should be used, however |
| this method is helpful when generic persistent classes are used.</i> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>3.0</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createAndRegisterNewObject(java.lang.Class)"><!-- --></A><H3> |
| createAndRegisterNewObject</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A> <B>createAndRegisterNewObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> objectClass)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0, use <A HREF="../../../../org/apache/cayenne/access/DataContext.html#newObject(java.lang.Class)"><CODE>newObject(Class)</CODE></A> instead.</I> |
| <P> |
| <DD>Instantiates new object and registers it with itself. Object class must have a |
| default constructor. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="registerNewObject(java.lang.Object)"><!-- --></A><H3> |
| registerNewObject</H3> |
| <PRE> |
| public void <B>registerNewObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> object)</PRE> |
| <DL> |
| <DD>Registers a transient object with the context, recursively registering all |
| transient persistent objects attached to this object via relationships. |
| <p/> |
| <i>Note that since 3.0 this method takes Object as an argument instead of a |
| <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne"><CODE>DataObject</CODE></A>.</i> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#registerNewObject(java.lang.Object)">registerNewObject</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#registerNewObject(java.lang.Object)">registerNewObject</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>object</CODE> - new object that needs to be made persistent.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="unregisterObjects(java.util.Collection)"><!-- --></A><H3> |
| unregisterObjects</H3> |
| <PRE> |
| public void <B>unregisterObjects</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> dataObjects)</PRE> |
| <DL> |
| <DD>Unregisters a Collection of DataObjects from the DataContext and the underlying |
| ObjectStore. This operation also unsets DataContext and ObjectId for each object |
| and changes its state to TRANSIENT. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/BaseContext.html#invalidateObjects(java.util.Collection)"><CODE>BaseContext.invalidateObjects(Collection)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="deleteObjects(java.util.Collection)"><!-- --></A><H3> |
| deleteObjects</H3> |
| <PRE> |
| public void <B>deleteObjects</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A> objects)</PRE> |
| <DL> |
| <DD>Schedules all objects in the collection for deletion on the next commit of this |
| DataContext. Object's persistence state is changed to PersistenceState.DELETED; |
| objects related to this object are processed according to delete rules, i.e. |
| relationships can be unset ("nullify" rule), deletion operation is cascaded |
| (cascade rule). |
| <p> |
| <i>"Nullify" delete rule side effect: </i> passing a collection representing |
| to-many relationship with nullify delete rule may result in objects being removed |
| from collection. |
| </p> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#deleteObjects(java.util.Collection)">deleteObjects</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="deleteObject(java.lang.Object)"><!-- --></A><H3> |
| deleteObject</H3> |
| <PRE> |
| public void <B>deleteObject</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> object) |
| throws <A HREF="../../../../org/apache/cayenne/DeleteDenyException.html" title="class in org.apache.cayenne">DeleteDenyException</A></PRE> |
| <DL> |
| <DD>Schedules an object for deletion on the next commit of this DataContext. Object's |
| persistence state is changed to PersistenceState.DELETED; objects related to this |
| object are processed according to delete rules, i.e. relationships can be unset |
| ("nullify" rule), deletion operation is cascaded (cascade rule). |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#deleteObject(java.lang.Object)">deleteObject</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#deleteObject(java.lang.Object)">deleteObject</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>object</CODE> - a persistent object that we want to delete. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/cayenne/DeleteDenyException.html" title="class in org.apache.cayenne">DeleteDenyException</A></CODE> - if a DENY delete rule is applicable for object |
| deletion. |
| <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if object is null.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="refetchObject(org.apache.cayenne.ObjectId)"><!-- --></A><H3> |
| refetchObject</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="../../../../org/apache/cayenne/DataObject.html" title="interface in org.apache.cayenne">DataObject</A> <B>refetchObject</B>(<A HREF="../../../../org/apache/cayenne/ObjectId.html" title="class in org.apache.cayenne">ObjectId</A> oid)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>since 3.0 use <A HREF="../../../../org/apache/cayenne/query/ObjectIdQuery.html" title="class in org.apache.cayenne.query"><CODE>ObjectIdQuery</CODE></A> with appropriate refresh settings.</I> |
| <P> |
| <DD>Refetches object data for ObjectId. This method is used internally by Cayenne to |
| resolve objects in state <code>PersistenceState.HOLLOW</code>. It can also be used |
| to refresh certain objects. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/cayenne/CayenneRuntimeException.html" title="class in org.apache.cayenne">CayenneRuntimeException</A></CODE> - if object id doesn't match any records, or if there |
| is more than one object is fetched.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="rollbackChangesLocally()"><!-- --></A><H3> |
| rollbackChangesLocally</H3> |
| <PRE> |
| public void <B>rollbackChangesLocally</B>()</PRE> |
| <DL> |
| <DD>If the parent channel is a DataContext, reverts local changes to make this context |
| look like the parent, if the parent channel is a DataDomain, reverts all changes. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#rollbackChangesLocally()">rollbackChangesLocally</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#rollbackChangesLocally()">rollbackChangesLocally</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="rollbackChanges()"><!-- --></A><H3> |
| rollbackChanges</H3> |
| <PRE> |
| public void <B>rollbackChanges</B>()</PRE> |
| <DL> |
| <DD>Reverts any changes that have occurred to objects registered with DataContext; also |
| performs cascading rollback of all parent DataContexts. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#rollbackChanges()">rollbackChanges</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#rollbackChanges()">rollbackChanges</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="commitChangesToParent()"><!-- --></A><H3> |
| commitChangesToParent</H3> |
| <PRE> |
| public void <B>commitChangesToParent</B>()</PRE> |
| <DL> |
| <DD>"Flushes" the changes to the parent <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne"><CODE>DataChannel</CODE></A>. If the parent channel is a |
| DataContext, it updates its objects with this context's changes, without a database |
| update. If it is a DataDomain (the most common case), the changes are written to |
| the database. To cause cascading commit all the way to the database, one must use |
| <A HREF="../../../../org/apache/cayenne/access/DataContext.html#commitChanges()"><CODE>commitChanges()</CODE></A>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#commitChangesToParent()">commitChangesToParent</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#commitChangesToParent()">commitChangesToParent</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/access/DataContext.html#commitChanges()"><CODE>commitChanges()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="commitChanges()"><!-- --></A><H3> |
| commitChanges</H3> |
| <PRE> |
| public void <B>commitChanges</B>() |
| throws <A HREF="../../../../org/apache/cayenne/CayenneRuntimeException.html" title="class in org.apache.cayenne">CayenneRuntimeException</A></PRE> |
| <DL> |
| <DD>Synchronizes object graph with the database. Executes needed insert, update and |
| delete queries (generated internally). |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#commitChanges()">commitChanges</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#commitChanges()">commitChanges</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/cayenne/CayenneRuntimeException.html" title="class in org.apache.cayenne">CayenneRuntimeException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="onContextFlush(org.apache.cayenne.ObjectContext, org.apache.cayenne.graph.GraphDiff, boolean)"><!-- --></A><H3> |
| onContextFlush</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/cayenne/graph/GraphDiff.html" title="interface in org.apache.cayenne.graph">GraphDiff</A> <B>onContextFlush</B>(<A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A> originatingContext, |
| <A HREF="../../../../org/apache/cayenne/graph/GraphDiff.html" title="interface in org.apache.cayenne.graph">GraphDiff</A> changes, |
| boolean cascade)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#onContextFlush(org.apache.cayenne.ObjectContext, org.apache.cayenne.graph.GraphDiff, boolean)">onContextFlush</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performIteratedQuery(org.apache.cayenne.query.Query)"><!-- --></A><H3> |
| performIteratedQuery</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/access/ResultIterator.html" title="interface in org.apache.cayenne.access">ResultIterator</A> <B>performIteratedQuery</B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query) |
| throws <A HREF="../../../../org/apache/cayenne/CayenneException.html" title="class in org.apache.cayenne">CayenneException</A></PRE> |
| <DL> |
| <DD>Performs a single database select query returning result as a ResultIterator. It is |
| caller's responsibility to explicitly close the ResultIterator. A failure to do so |
| will result in a database connection not being released. Another side effect of an |
| open ResultIterator is that an internal Cayenne transaction that originated in this |
| method stays open until the iterator is closed. So users should normally close the |
| iterator within the same thread that opened it. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/cayenne/CayenneException.html" title="class in org.apache.cayenne">CayenneException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performGenericQuery(org.apache.cayenne.query.Query)"><!-- --></A><H3> |
| performGenericQuery</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/QueryResponse.html" title="interface in org.apache.cayenne">QueryResponse</A> <B>performGenericQuery</B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</PRE> |
| <DL> |
| <DD>Executes a query returning a generic response. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#performGenericQuery(org.apache.cayenne.query.Query)">performGenericQuery</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#performGenericQuery(org.apache.cayenne.query.Query)">performGenericQuery</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performQuery(org.apache.cayenne.query.Query)"><!-- --></A><H3> |
| performQuery</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A> <B>performQuery</B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</PRE> |
| <DL> |
| <DD>Performs a single selecting query. Various query setting control the behavior of |
| this method and the results returned: |
| <ul> |
| <li>Query caching policy defines whether the results are retrieved from cache or |
| fetched from the database. Note that queries that use caching must have a name that |
| is used as a caching key.</li> |
| <li>Query refreshing policy controls whether to refresh existing data objects and |
| ignore any cached values.</li> |
| <li>Query data rows policy defines whether the result should be returned as |
| DataObjects or DataRows.</li> |
| </ul> |
| <p> |
| <i>Since 1.2 takes any Query parameter, not just GenericSelectQuery</i> |
| </p> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#performQuery(org.apache.cayenne.query.Query)">performQuery</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#performQuery(org.apache.cayenne.query.Query)">performQuery</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>A list of DataObjects or a DataRows, depending on the value returned by |
| <A HREF="../../../../org/apache/cayenne/query/QueryMetadata.html#isFetchingDataRows()"><CODE>QueryMetadata.isFetchingDataRows()</CODE></A>.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="onQuery(org.apache.cayenne.ObjectContext, org.apache.cayenne.query.Query)"><!-- --></A><H3> |
| onQuery</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/QueryResponse.html" title="interface in org.apache.cayenne">QueryResponse</A> <B>onQuery</B>(<A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A> context, |
| <A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</PRE> |
| <DL> |
| <DD>An implementation of a <A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne"><CODE>DataChannel</CODE></A> method that is used by child contexts to |
| execute queries. Not intended for direct use. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/DataChannel.html#onQuery(org.apache.cayenne.ObjectContext, org.apache.cayenne.query.Query)">onQuery</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>context</CODE> - an ObjectContext that originated the query, used to |
| register result objects. |
| <DT><B>Returns:</B><DD>a generic response object that encapsulates result of the execution.<DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performNonSelectingQuery(org.apache.cayenne.query.Query)"><!-- --></A><H3> |
| performNonSelectingQuery</H3> |
| <PRE> |
| public int[] <B>performNonSelectingQuery</B>(<A HREF="../../../../org/apache/cayenne/query/Query.html" title="interface in org.apache.cayenne.query">Query</A> query)</PRE> |
| <DL> |
| <DD>Performs a single database query that does not select rows. Returns an array of |
| update counts. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performNonSelectingQuery(java.lang.String)"><!-- --></A><H3> |
| performNonSelectingQuery</H3> |
| <PRE> |
| public int[] <B>performNonSelectingQuery</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName)</PRE> |
| <DL> |
| <DD>Performs a named mapped query that does not select rows. Returns an array of update |
| counts. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performNonSelectingQuery(java.lang.String, java.util.Map)"><!-- --></A><H3> |
| performNonSelectingQuery</H3> |
| <PRE> |
| public int[] <B>performNonSelectingQuery</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,?> parameters)</PRE> |
| <DL> |
| <DD>Performs a named mapped non-selecting query using a map of parameters. Returns an |
| array of update counts. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performQuery(java.lang.String, boolean)"><!-- --></A><H3> |
| performQuery</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><?> <B>performQuery</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName, |
| boolean expireCachedLists)</PRE> |
| <DL> |
| <DD>Returns a list of objects or DataRows for a named query stored in one of the |
| DataMaps. Internally Cayenne uses a caching policy defined in the named query. If |
| refresh flag is true, a refresh is forced no matter what the caching policy is. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>queryName</CODE> - a name of a GenericSelectQuery defined in one of the DataMaps. If |
| no such query is defined, this method will throw a |
| CayenneRuntimeException.<DD><CODE>expireCachedLists</CODE> - A flag that determines whether refresh of <b>cached |
| lists</b> is required in case a query uses caching.<DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performQuery(java.lang.String, java.util.Map, boolean)"><!-- --></A><H3> |
| performQuery</H3> |
| <PRE> |
| public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><?> <B>performQuery</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> queryName, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A> parameters, |
| boolean expireCachedLists)</PRE> |
| <DL> |
| <DD>Returns a list of objects or DataRows for a named query stored in one of the |
| DataMaps. Internally Cayenne uses a caching policy defined in the named query. If |
| refresh flag is true, a refresh is forced no matter what the caching policy is. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>queryName</CODE> - a name of a GenericSelectQuery defined in one of the DataMaps. If |
| no such query is defined, this method will throw a |
| CayenneRuntimeException.<DD><CODE>parameters</CODE> - A map of parameters to use with stored query.<DD><CODE>expireCachedLists</CODE> - A flag that determines whether refresh of <b>cached |
| lists</b> is required in case a query uses caching.<DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEntityResolver()"><!-- --></A><H3> |
| getEntityResolver</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/map/EntityResolver.html" title="class in org.apache.cayenne.map">EntityResolver</A> <B>getEntityResolver</B>()</PRE> |
| <DL> |
| <DD>Returns EntityResolver. EntityResolver can be null if DataContext has not been |
| attached to an DataChannel. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/DataChannel.html#getEntityResolver()">getEntityResolver</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/DataChannel.html" title="interface in org.apache.cayenne">DataChannel</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#getEntityResolver()">getEntityResolver</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#getEntityResolver()">getEntityResolver</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isUsingSharedSnapshotCache()"><!-- --></A><H3> |
| isUsingSharedSnapshotCache</H3> |
| <PRE> |
| public boolean <B>isUsingSharedSnapshotCache</B>()</PRE> |
| <DL> |
| <DD>Returns <code>true</code> if the ObjectStore uses shared cache of a parent |
| DataDomain. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isValidatingObjectsOnCommit()"><!-- --></A><H3> |
| isValidatingObjectsOnCommit</H3> |
| <PRE> |
| public boolean <B>isValidatingObjectsOnCommit</B>()</PRE> |
| <DL> |
| <DD>Returns whether this DataContext performs object validation before commit is |
| executed. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setValidatingObjectsOnCommit(boolean)"><!-- --></A><H3> |
| setValidatingObjectsOnCommit</H3> |
| <PRE> |
| public void <B>setValidatingObjectsOnCommit</B>(boolean flag)</PRE> |
| <DL> |
| <DD>Sets the property defining whether this DataContext should perform object |
| validation before commit is executed. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="propertyChanged(org.apache.cayenne.Persistent, java.lang.String, java.lang.Object, java.lang.Object)"><!-- --></A><H3> |
| propertyChanged</H3> |
| <PRE> |
| public void <B>propertyChanged</B>(<A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A> object, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> property, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> oldValue, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> newValue)</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#propertyChanged(org.apache.cayenne.Persistent, java.lang.String, java.lang.Object, java.lang.Object)">ObjectContext</A></CODE></B></DD> |
| <DD>A callback method that child Persistent objects are expected to call from inside |
| the setter after modifying a value of a persistent property, including "simple" and |
| "arc" properties. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#propertyChanged(org.apache.cayenne.Persistent, java.lang.String, java.lang.Object, java.lang.Object)">propertyChanged</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#propertyChanged(org.apache.cayenne.Persistent, java.lang.String, java.lang.Object, java.lang.Object)">propertyChanged</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getGraphManager()"><!-- --></A><H3> |
| getGraphManager</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/graph/GraphManager.html" title="interface in org.apache.cayenne.graph">GraphManager</A> <B>getGraphManager</B>()</PRE> |
| <DL> |
| <DD>Returns this context's ObjectStore. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#getGraphManager()">getGraphManager</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#getGraphManager()">getGraphManager</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="localObject(org.apache.cayenne.ObjectId, java.lang.Object)"><!-- --></A><H3> |
| localObject</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/cayenne/Persistent.html" title="interface in org.apache.cayenne">Persistent</A> <B>localObject</B>(<A HREF="../../../../org/apache/cayenne/ObjectId.html" title="class in org.apache.cayenne">ObjectId</A> id, |
| <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> prototype)</PRE> |
| <DL> |
| <DD>Returns an object local to this DataContext and matching the ObjectId. If |
| <code>prototype</code> is not null, local object is refreshed with the prototype |
| values. |
| <p> |
| In case you pass a non-null second parameter, you are responsible for setting |
| correct persistence state of the returned local object, as generally there is no |
| way for Cayenne to determine the resulting local object state. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html#localObject(org.apache.cayenne.ObjectId, java.lang.Object)">localObject</A></CODE> in interface <CODE><A HREF="../../../../org/apache/cayenne/ObjectContext.html" title="interface in org.apache.cayenne">ObjectContext</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#localObject(org.apache.cayenne.ObjectId, java.lang.Object)">localObject</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fireDataChannelChanged(java.lang.Object, org.apache.cayenne.graph.GraphDiff)"><!-- --></A><H3> |
| fireDataChannelChanged</H3> |
| <PRE> |
| protected void <B>fireDataChannelChanged</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> postedBy, |
| <A HREF="../../../../org/apache/cayenne/graph/GraphDiff.html" title="interface in org.apache.cayenne.graph">GraphDiff</A> changes)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html#fireDataChannelChanged(java.lang.Object, org.apache.cayenne.graph.GraphDiff)">fireDataChannelChanged</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/BaseContext.html" title="class in org.apache.cayenne">BaseContext</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/cayenne/access/ConnectionLogger.html" title="class in org.apache.cayenne.access"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/cayenne/access/DataContextDelegate.html" title="interface in org.apache.cayenne.access"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/cayenne/access/DataContext.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="DataContext.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 2001-2011 <a href="http://cayenne.apache.org/">Apache Cayenne</a>. All Rights Reserved. |
| </BODY> |
| </HTML> |