Edit D:\app\Administrator\product\11.2.0\dbhome_1\olap\api\doc\oracle\olapi\session\UserSession.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:25 UTC 2009 --> <TITLE> UserSession (Oracle OLAP Java API Reference) </TITLE> <META NAME="keywords" CONTENT="oracle.olapi.session.UserSession class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="UserSession (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"> PREV CLASS NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?oracle/olapi/session/UserSession.html" target="_top"><B>FRAMES</B></A> <A HREF="UserSession.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <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.session</FONT> <BR> Class UserSession</H2> <PRE> java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>oracle.olapi.session.UserSession</B> </PRE> <HR> <DL> <DT><PRE>public class <B>UserSession</B><DT>extends java.lang.Object</DL> </PRE> <P> Associates a <CODE>DataProvider</CODE> with an <CODE>OracleConnection</CODE>. An application creates a <CODE>UserSession</CODE> with the <CODE>createSession</CODE> method of a <CODE>DataProvider</CODE>. <P> An application can have many <CODE>UserSession</CODE> objects that share the same <CODE>DataProvider</CODE>. Each <CODE>UserSession</CODE> has a separate <CODE>OracleConnection</CODE>. The metadata provided by the <CODE>DataProvider</CODE> is the same for all of the <CODE>UserSession</CODE> objects. <P> To end a <CODE>UserSession</CODE>, an application calls the <CODE>closeSession</CODE> method of the <CODE>UserSession</CODE>. Doing so closes any open <CODE>CursorManager</CODE> objects and commits or rolls back any <CODE>Transaction</CODE> objects associated with the <CODE>UserSession</CODE>. It does not, however, close the associated <CODE>OracleConnection</CODE>. <P> <P> <HR> <P> <!-- ========== 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> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../oracle/olapi/session/UserSession.html#closeSession()">closeSession</A></B>()</CODE> <BR> Closes the <code>UserSession</code> but does not close the associated <CODE>OracleConnection</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> oracle.jdbc.OracleConnection</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../oracle/olapi/session/UserSession.html#getConnection()">getConnection</A></B>()</CODE> <BR> Gets the <CODE>OracleConnection</CODE> associated with the <CODE>UserSession</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/session/UserSession.html#getDataProvider()">getDataProvider</A></B>()</CODE> <BR> Gets the <CODE>DataProvider</CODE> associated with the <CODE>UserSession</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../oracle/olapi/session/UserSession.html#getDefaultLanguage()">getDefaultLanguage</A></B>()</CODE> <BR> Gets the default language for the <CODE>UserSession</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../oracle/olapi/transaction/Transaction.html" title="interface in oracle.olapi.transaction">Transaction</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../oracle/olapi/session/UserSession.html#getRootTransaction()">getRootTransaction</A></B>()</CODE> <BR> Gets the root <CODE>Transaction</CODE> associated with the <CODE>UserSession</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../oracle/olapi/metadata/XMLParserCallback.html" title="interface in oracle.olapi.metadata">XMLParserCallback</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../oracle/olapi/session/UserSession.html#getServerXMLParserCallback()">getServerXMLParserCallback</A></B>()</CODE> <BR> Gets the <CODE>XMLParserCallback</CODE> implementation that is associated with this <CODE>UserSession</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.Properties</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../oracle/olapi/session/UserSession.html#getSettings()">getSettings</A></B>()</CODE> <BR> Get the <code>Properties</code> object that contains all of the settings used by this <code>UserSession</code>.</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="../../../oracle/olapi/session/UserSession.html#interrupt()">interrupt</A></B>()</CODE> <BR> Terminates any operation that is currently executing in the <CODE>UserSession</CODE>.</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="../../../oracle/olapi/session/UserSession.html#isOpen()">isOpen</A></B>()</CODE> <BR> Indicates whether the <CODE>OracleConnection</CODE> has an open connection to 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="../../../oracle/olapi/session/UserSession.html#setServerXMLParserCallback(oracle.olapi.metadata.XMLParserCallback)">setServerXMLParserCallback</A></B>(<A HREF="../../../oracle/olapi/metadata/XMLParserCallback.html" title="interface in oracle.olapi.metadata">XMLParserCallback</A> callback)</CODE> <BR> Specifies an <CODE>XMLParserCallback</CODE> for Oracle OLAP to use when it retrieves a metadata object that is stored on the server.</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> <!-- ============ 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="getRootTransaction()"><!-- --></A><H3> getRootTransaction</H3> <PRE> public <A HREF="../../../oracle/olapi/transaction/Transaction.html" title="interface in oracle.olapi.transaction">Transaction</A> <B>getRootTransaction</B>()</PRE> <DL> <DD>Gets the root <CODE>Transaction</CODE> associated with the <CODE>UserSession</CODE>. <P> <DD><DL> <DT><B>Returns:</B><DD>The root <CODE>Transaction</CODE> associated with the <CODE>UserSession</CODE>.</DL> </DD> </DL> <HR> <A NAME="getConnection()"><!-- --></A><H3> getConnection</H3> <PRE> public oracle.jdbc.OracleConnection <B>getConnection</B>()</PRE> <DL> <DD>Gets the <CODE>OracleConnection</CODE> associated with the <CODE>UserSession</CODE>. <P> <DD><DL> <DT><B>Returns:</B><DD>The root <CODE>OracleConnection</CODE> associated with the <CODE>UserSession</CODE>.</DL> </DD> </DL> <HR> <A NAME="isOpen()"><!-- --></A><H3> isOpen</H3> <PRE> public boolean <B>isOpen</B>()</PRE> <DL> <DD>Indicates whether the <CODE>OracleConnection</CODE> has an open connection to the database. <P> <DD><DL> <DT><B>Returns:</B><DD>A <CODE>boolean</CODE> that is <CODE>true</CODE> if the <CODE>OracleConnection</CODE> is open or <CODE>false</CODE> if it is not.</DL> </DD> </DL> <HR> <A NAME="closeSession()"><!-- --></A><H3> closeSession</H3> <PRE> public void <B>closeSession</B>()</PRE> <DL> <DD>Closes the <code>UserSession</code> but does not close the associated <CODE>OracleConnection</CODE>. <P> <DD><DL> </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> associated with the <CODE>UserSession</CODE>. <P> <DD><DL> <DT><B>Returns:</B><DD>The <CODE>DataProvider</CODE> associated with the <CODE>UserSession</CODE>.</DL> </DD> </DL> <HR> <A NAME="getSettings()"><!-- --></A><H3> getSettings</H3> <PRE> public java.util.Properties <B>getSettings</B>()</PRE> <DL> <DD>Get the <code>Properties</code> object that contains all of the settings used by this <code>UserSession</code>. <P> <DD><DL> <DT><B>Returns:</B><DD>A <CODE>Properties</CODE> object that contains the settings used by this <code>UserSession</code>.</DL> </DD> </DL> <HR> <A NAME="getDefaultLanguage()"><!-- --></A><H3> getDefaultLanguage</H3> <PRE> public final java.lang.String <B>getDefaultLanguage</B>()</PRE> <DL> <DD>Gets the default language for the <CODE>UserSession</CODE>. <P> <DD><DL> <DT><B>Returns:</B><DD>A <CODE>String</CODE> that identifies the default language for the session.</DL> </DD> </DL> <HR> <A NAME="setServerXMLParserCallback(oracle.olapi.metadata.XMLParserCallback)"><!-- --></A><H3> setServerXMLParserCallback</H3> <PRE> public void <B>setServerXMLParserCallback</B>(<A HREF="../../../oracle/olapi/metadata/XMLParserCallback.html" title="interface in oracle.olapi.metadata">XMLParserCallback</A> callback)</PRE> <DL> <DD>Specifies an <CODE>XMLParserCallback</CODE> for Oracle OLAP to use when it retrieves a metadata object that is stored on the server. For example, if an application specifies an <CODE>XMLParserCallback</CODE> with this method and then calls a method like <CODE>MdmMetadataProvider.getMetadataObject(id)</CODE> or <CODE>MdmDatabaseSchema.getTopLevelObject(name)</CODE> and the requested object is invalid, then Oracle OLAP calls a method of the <CODE>XMLParserCallback</CODE>. A object stored on the server can become invalid if, for example, the column or table that the object references no longer exists in the database. <P> The <CODE>XMLParserCallback.ERROR_BY_EXCEPTION</CODE> constant is not used by Oracle OLAP for an <CODE>XMLParserCallback</CODE> specified by this method. If a method of the <CODE>XMLParserCallback</CODE> returns the <CODE>ERROR_BY_EXCEPTION</CODE> constant, then Oracle OLAP uses the default constant, which is <CODE>ERROR_BY_SET_TO_NULL</CODE>. <P> The <CODE>XMLParserCallback</CODE> specified by this method is not used by the <CODE>MdmMetadataProvider.importXML</CODE> or the <CODE>SyntaxObject.fromSyntax</CODE> methods. Those methods use the <CODE>XMLParserCallback</CODE> that the application passes to them. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>callback</CODE> - An implementation of the <CODE>XMLParserCallback</CODE> interface.</DL> </DD> </DL> <HR> <A NAME="getServerXMLParserCallback()"><!-- --></A><H3> getServerXMLParserCallback</H3> <PRE> public <A HREF="../../../oracle/olapi/metadata/XMLParserCallback.html" title="interface in oracle.olapi.metadata">XMLParserCallback</A> <B>getServerXMLParserCallback</B>()</PRE> <DL> <DD>Gets the <CODE>XMLParserCallback</CODE> implementation that is associated with this <CODE>UserSession</CODE>. <P> <DD><DL> <DT><B>Returns:</B><DD>The <CODE>XMLParserCallback</CODE> associated with this <CODE>UserSession</CODE>.</DL> </DD> </DL> <HR> <A NAME="interrupt()"><!-- --></A><H3> interrupt</H3> <PRE> public final void <B>interrupt</B>()</PRE> <DL> <DD>Terminates any operation that is currently executing in the <CODE>UserSession</CODE>. This method has the same effect as calling the <CODE>oracle.jdbc.OracleConnection.cancel</CODE> method. <P> An application must call this method in a separate thread. An application can use this method to terminate a build operation that was initiated by a <CODE>DataProvider.executeBuild</CODE> method. <P> <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="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"> PREV CLASS NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?oracle/olapi/session/UserSession.html" target="_top"><B>FRAMES</B></A> <A HREF="UserSession.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <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