Edit D:\app\Administrator\product\11.2.0\dbhome_1\olap\api\doc\oracle\olapi\data\source\Template.html
<!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.5.0_17) on Wed Aug 12 19:50:21 UTC 2009 --> <TITLE> Template (Oracle OLAP Java API Reference) </TITLE> <META NAME="keywords" CONTENT="oracle.olapi.data.source.Template class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="Template (Oracle OLAP Java API Reference)"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= 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="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> <b>Oracle® OLAP Java API Reference<br>11<i>g</i> Release 2 (11.2)</b><br>E10794-01<br>Beta Draft</EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../oracle/olapi/data/source/StringSource.html" title="class in oracle.olapi.data.source"><B>PREV CLASS</B></A> <A HREF="../../../../oracle/olapi/data/source/UnmatchedInputsException.html" title="class in oracle.olapi.data.source"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?oracle/olapi/data/source/Template.html" target="_top"><B>FRAMES</B></A> <A HREF="Template.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <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"> oracle.olapi.data.source</FONT> <BR> Class Template</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>oracle.olapi.data.source.Template</B> </PRE> <HR> <DL> <DT><PRE>public abstract class <B>Template</B><DT>extends java.lang.Object</DL> </PRE> <P> The basis for creating a <code>Source</code> that an application can dynamically change. An application can use a <code>Template</code> to take the selections made by an end user and produce a <code>Source</code> that represents a query on the data store, or a step in producing a query. <p> A <code>Template</code> uses the following related objects. <ul> <li><code>MetadataState</code> <li><code>DataProvider</code> <li><code>SourceGenerator</code> <li><code>DynamicDefinition</code> </ul> <p> Those objects work together as follows: <ul> <li>The <code>MetadataState</code> implementation for a <CODE>Template</CODE> has fields for storing values. <li>An application passes the <code>MetadataState</code> and the <CODE>DataProvider</CODE> to the <code>Template</code> constructor. The <code>Template</code> abstract class has methods that create a <code>DynamicDefinition</code> and that get and set the current state of the <code>MetadataState</code>. A class that extends <code>Template</code> adds methods that set the values of the fields of its <code>MetadataState</code>. <li>A <code>SourceGenerator</code> implementation has a <code>generateSource</code> method that uses the current state of the data in the <code>MetadataState</code> to produce a <code>Source</code>. <li>The <CODE>Template</CODE> gets a <code>DynamicDefinition</code> by passing a <code>SourceGenerator</code> to its <CODE>createDynamicDefinition</CODE> method. <li>The <code>DynamicDefinition</code> has a <code>getSource</code> method that returns the <CODE>Source</CODE> produced by the <code>SourceGenerator</code>. That <CODE>Source</CODE> is the dynamic <CODE>Source</CODE> for the <CODE>Template</CODE>. </ul> In the process of producing a <code>Source</code> that represents a single query, an application can use the <code>Source</code> objects produced by various other <code>Template</code> implementations. The application can change the selection of data for any one of the <code>Template</code> objects that comprise the query. Because the <code>DynamicDefinition</code> that gets the <code>Source</code> for a <code>Template</code> is a proxy, the application does not have to recreate all of the component <code>Source</code> objects to produce a <code>Source</code> for the query that includes the new selection. Instead, the application just calls the <code>getSource</code> method of the <code>DynamicDefinition</code> for the <code>Template</code> that produces the query, and the current state of the changed <code>Template</code> component is used in rebuilding the query. <p> An example of a <CODE>Template</CODE> that produces a query is the <CODE>TopBottomTemplate.java</CODE> class. In building the query, it uses the <CODE>Source</CODE> produced by the <CODE>SingleSelectionTemplate.java</CODE> class. The <CODE>TopBottomTest.java</CODE> class is an example program that creates a <CODE>SingleSelectionTemplate</CODE> and a <CODE>TopBottomTemplate.java</CODE>. For information on how to get the example classes, see <a href="../../../../doc-files/ExamplePrograms.html">Example Oracle OLAP Java API Programs</a>. <P> A <CODE>SingleSelectionTemplate</CODE> object produces a <CODE>Source</CODE> that represents the values of a measure that are specified by a set of single members of all but one of the dimensions of the measure. A <CODE>TopBottomTemplate</CODE> adds the remaining dimension of the measure. It selects the elements of that dimension that are specified by the criteria represented by the <CODE>Source</CODE> for the <CODE>SingleSelectionTemplate</CODE>. It sorts the selection in ascending or descending order and produces a <CODE>Source</CODE> that represents a specified number of elements from the sorted selection. <P> The <CODE>TopBottomTest.java</CODE> example program creates a <CODE>SingleSelectionTemplate</CODE> and a <CODE>TopBottomTemplate.java</CODE>. The program produces a <CODE>Source</CODE> that specifies the ten products that have the highest number of units sold for the set of single Time, Channel, and Customer dimension values. It prepares and commits the current <CODE>Transaction</CODE>. It then creates a <CODE>Cursor</CODE> for that <CODE>Source</CODE> and displays the values of the <CODE>Cursor</CODE>. The example classes <CODE>TopBottomTemplate.java</CODE> and <CODE>SingleSelectionTemplate.java</CODE> contain inner classes that implement the <CODE>SourceGenerator</CODE> interface. The <CODE>TopBottomTemplate</CODE> produces a query and the <CODE>SingleSelectionTemplate</CODE> produces a <CODE>Source</CODE> that the <CODE>TopBottomTemplate</CODE> uses in the process of building the query. <P> The program next changes the value for one of the dimensions specified by the <CODE>SingleSelectionTemplate</CODE>, and it changes the number of elements to select and the type of the selection. It prepares and commits the current <CODE>Transaction</CODE>, creates a new <CODE>Cursor</CODE> for the <CODE>Source</CODE>, and displays the values of the <CODE>Cursor</CODE>. The values are now the five products that have the lowest number of units sold for the set of the other dimension values. <P> Before creating the new <CODE>Cursor</CODE>, the program does not need to call the <code>getSource</code> method of the <CODE>DynamicDefinition</CODE> for either the <code>SingleSelectionTemplate</code> or the <CODE>TopBottomTemplate</CODE>. Committing the <CODE>Transaction</CODE> automatically updates the dynamic <CODE>Source</CODE> objects that those methods returned so that those <CODE>Source</CODE> objects represent the current state of the <CODE>Template</CODE> objects. <P> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../oracle/olapi/data/source/DynamicDefinition.html" title="class in oracle.olapi.data.source"><CODE>DynamicDefinition</CODE></A>, <A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager"><CODE>MetadataState</CODE></A>, <A HREF="../../../../oracle/olapi/data/source/SourceGenerator.html" title="interface in oracle.olapi.data.source"><CODE>SourceGenerator</CODE></A>, <A HREF="../../../../oracle/olapi/transaction/TransactionProvider.html" title="interface in oracle.olapi.transaction"><CODE>TransactionProvider</CODE></A></DL> <HR> <P> <!-- ======== 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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected </CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../oracle/olapi/data/source/Template.html#Template(oracle.olapi.transaction.metadataStateManager.MetadataState, oracle.olapi.data.source.DataProvider)">Template</A></B>(<A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A> initialState, <A HREF="../../../../oracle/olapi/data/source/DataProvider.html" title="class in oracle.olapi.data.source">DataProvider</A> dataProvider)</CODE> <BR> Creates a new <code>Template</code>.</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>protected <A HREF="../../../../oracle/olapi/data/source/DynamicDefinition.html" title="class in oracle.olapi.data.source">DynamicDefinition</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../oracle/olapi/data/source/Template.html#createDynamicDefinition(oracle.olapi.data.source.SourceGenerator)">createDynamicDefinition</A></B>(<A HREF="../../../../oracle/olapi/data/source/SourceGenerator.html" title="interface in oracle.olapi.data.source">SourceGenerator</A> sourceGenerator)</CODE> <BR> Creates a <code>DynamicDefinition</code> that acts as a proxy for the <code>SourceDefinition</code> for the <code>Source</code> generated by the <code>SourceGenerator</code> and returned by the <CODE>getSource</CODE> method of the <code>DynamicDefinition</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../oracle/olapi/data/source/Template.html#getCurrentState()">getCurrentState</A></B>()</CODE> <BR> Gets the current state for this <code>Template</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../oracle/olapi/data/source/Template.html#getCurrentStateForRead()">getCurrentStateForRead</A></B>()</CODE> <BR> Gets the actual <CODE>MetadataState</CODE> object for this <code>Template</code> rather than a clone of the state.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../oracle/olapi/data/source/Template.html#getCurrentStateForWrite()">getCurrentStateForWrite</A></B>()</CODE> <BR> Gets the current state for this <code>Template</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../oracle/olapi/data/source/DataProvider.html" title="class in oracle.olapi.data.source">DataProvider</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../oracle/olapi/data/source/Template.html#getDataProvider()">getDataProvider</A></B>()</CODE> <BR> Gets the <CODE>DataProvider</CODE> for this <CODE>Template</CODE>.</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="../../../../oracle/olapi/data/source/Template.html#setCurrentState(oracle.olapi.transaction.metadataStateManager.MetadataState)">setCurrentState</A></B>(<A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A> state)</CODE> <BR> Specifies a state as the current state for this <code>Template</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.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ========= 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="Template(oracle.olapi.transaction.metadataStateManager.MetadataState, oracle.olapi.data.source.DataProvider)"><!-- --></A><H3> Template</H3> <PRE> protected <B>Template</B>(<A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A> initialState, <A HREF="../../../../oracle/olapi/data/source/DataProvider.html" title="class in oracle.olapi.data.source">DataProvider</A> dataProvider) throws <A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></PRE> <DL> <DD>Creates a new <code>Template</code>. <P> <DL> <DT><B>Parameters:</B><DD><CODE>initialState</CODE> - The <code>MetadataState</code> that stores values for this <code>Template</code>.<DD><CODE>dataProvider</CODE> - The <code>DataProvider</code> created using the current <code>TransactionProvider</code>. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A></CODE></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="createDynamicDefinition(oracle.olapi.data.source.SourceGenerator)"><!-- --></A><H3> createDynamicDefinition</H3> <PRE> protected <A HREF="../../../../oracle/olapi/data/source/DynamicDefinition.html" title="class in oracle.olapi.data.source">DynamicDefinition</A> <B>createDynamicDefinition</B>(<A HREF="../../../../oracle/olapi/data/source/SourceGenerator.html" title="interface in oracle.olapi.data.source">SourceGenerator</A> sourceGenerator)</PRE> <DL> <DD>Creates a <code>DynamicDefinition</code> that acts as a proxy for the <code>SourceDefinition</code> for the <code>Source</code> generated by the <code>SourceGenerator</code> and returned by the <CODE>getSource</CODE> method of the <code>DynamicDefinition</code>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>sourceGenerator</CODE> - The <code>SourceGenerator</code> that generates a <code>Source</code> using the current state of this <code>Template</code>. <DT><B>Returns:</B><DD>A <code>DynamicDefinition</code> that provides access to the <code>Source</code> produced by the <code>SourceGenerator</code>.</DL> </DD> </DL> <HR> <A NAME="getCurrentState()"><!-- --></A><H3> getCurrentState</H3> <PRE> protected <A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A> <B>getCurrentState</B>() throws <A HREF="../../../../oracle/olapi/transaction/TransactionalObjectInvalidException.html" title="class in oracle.olapi.transaction">TransactionalObjectInvalidException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></PRE> <DL> <DD>Gets the current state for this <code>Template</code>. <P> <DD><DL> <DT><B>Returns:</B><DD>The current state for this <code>Template</code>. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionalObjectInvalidException.html" title="class in oracle.olapi.transaction">TransactionalObjectInvalidException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A></CODE></DL> </DD> </DL> <HR> <A NAME="getCurrentStateForRead()"><!-- --></A><H3> getCurrentStateForRead</H3> <PRE> protected <A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A> <B>getCurrentStateForRead</B>() throws <A HREF="../../../../oracle/olapi/transaction/TransactionalObjectInvalidException.html" title="class in oracle.olapi.transaction">TransactionalObjectInvalidException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></PRE> <DL> <DD>Gets the actual <CODE>MetadataState</CODE> object for this <code>Template</code> rather than a clone of the state. Do not modify the state returned by this method; use it only for read operations. <P> <DD><DL> <DT><B>Returns:</B><DD>The current state for this <code>Template</code>. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionalObjectInvalidException.html" title="class in oracle.olapi.transaction">TransactionalObjectInvalidException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></CODE></DL> </DD> </DL> <HR> <A NAME="getCurrentStateForWrite()"><!-- --></A><H3> getCurrentStateForWrite</H3> <PRE> protected <A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A> <B>getCurrentStateForWrite</B>() throws <A HREF="../../../../oracle/olapi/transaction/TransactionalObjectInvalidException.html" title="class in oracle.olapi.transaction">TransactionalObjectInvalidException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></PRE> <DL> <DD>Gets the current state for this <code>Template</code>. The returned state is a clone of the actual state, so you can modify it. If you modify it, then you must reset the state by passing it to the <CODE>setCurrentState</CODE> method. <P> <DD><DL> <DT><B>Returns:</B><DD>The current state for this <code>Template</code>. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionalObjectInvalidException.html" title="class in oracle.olapi.transaction">TransactionalObjectInvalidException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A></CODE></DL> </DD> </DL> <HR> <A NAME="getDataProvider()"><!-- --></A><H3> getDataProvider</H3> <PRE> public <A HREF="../../../../oracle/olapi/data/source/DataProvider.html" title="class in oracle.olapi.data.source">DataProvider</A> <B>getDataProvider</B>()</PRE> <DL> <DD>Gets the <CODE>DataProvider</CODE> for this <CODE>Template</CODE>. <P> <DD><DL> <DT><B>Returns:</B><DD>The <CODE>DataProvider</CODE> with which this <CODE>Template</CODE> was constructed.</DL> </DD> </DL> <HR> <A NAME="setCurrentState(oracle.olapi.transaction.metadataStateManager.MetadataState)"><!-- --></A><H3> setCurrentState</H3> <PRE> protected void <B>setCurrentState</B>(<A HREF="../../../../oracle/olapi/transaction/metadataStateManager/MetadataState.html" title="interface in oracle.olapi.transaction.metadataStateManager">MetadataState</A> state) throws <A HREF="../../../../oracle/olapi/data/source/CursorLockException.html" title="class in oracle.olapi.data.source">CursorLockException</A>, <A HREF="../../../../oracle/olapi/transaction/WriteLockException.html" title="class in oracle.olapi.transaction">WriteLockException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A>, <A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></PRE> <DL> <DD>Specifies a state as the current state for this <code>Template</code>. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>state</CODE> - The state to specify as the current state for this <code>Template</code>. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../oracle/olapi/data/source/CursorLockException.html" title="class in oracle.olapi.data.source">CursorLockException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionInactiveException.html" title="class in oracle.olapi.transaction">TransactionInactiveException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/TransactionTypeUnavailableException.html" title="class in oracle.olapi.transaction">TransactionTypeUnavailableException</A></CODE> <DD><CODE><A HREF="../../../../oracle/olapi/transaction/WriteLockException.html" title="class in oracle.olapi.transaction">WriteLockException</A></CODE></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="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> <center>Copyright © 2002, 2009, Oracle. All rights reserved.</center></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../oracle/olapi/data/source/StringSource.html" title="class in oracle.olapi.data.source"><B>PREV CLASS</B></A> <A HREF="../../../../oracle/olapi/data/source/UnmatchedInputsException.html" title="class in oracle.olapi.data.source"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?oracle/olapi/data/source/Template.html" target="_top"><B>FRAMES</B></A> <A HREF="Template.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <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> </BODY> </HTML>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de