rolapconnection.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 772 行 · 第 1/3 页
HTML
772 行
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getConnectString()">getConnectString</A></B>()</CODE><BR> Get the Connect String associated with this Connection.</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/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getDataSource()">getDataSource</A></B>()</CODE><BR> Returns the data source this connection uses to create connections to the underlying JDBC database.</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/Locale.html" title="class or interface in java.util">Locale</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getLocale()">getLocale</A></B>()</CODE><BR> Returns the locale this connection belongs to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected org.apache.log4j.Logger</CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getLogger()">getLogger</A></B>()</CODE><BR> </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/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getProperty(java.lang.String)">getProperty</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE><BR> Returns the value of a connection property.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/Role.html" title="interface in mondrian.olap">Role</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getRole()">getRole</A></B>()</CODE><BR> Returns the access-control profile for this connection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/Schema.html" title="interface in mondrian.olap">Schema</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getSchema()">getSchema</A></B>()</CODE><BR> Get the Schema associated with this Connection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../mondrian/olap/SchemaReader.html" title="interface in mondrian.olap">SchemaReader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../mondrian/rolap/RolapConnection.html#getSchemaReader()">getSchemaReader</A></B>()</CODE><BR> Returns a schema reader with access control appropriate to the current role.</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="../../mondrian/rolap/RolapConnection.html#setLocale(java.util.Locale)">setLocale</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</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="../../mondrian/rolap/RolapConnection.html#setRole(mondrian.olap.Role)">setRole</A></B>(<A HREF="../../mondrian/olap/Role.html" title="interface in mondrian.olap">Role</A> role)</CODE><BR> Sets the privileges for the this connection.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_mondrian.olap.ConnectionBase"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class mondrian.olap.<A HREF="../../mondrian/olap/ConnectionBase.html" title="class in mondrian.olap">ConnectionBase</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../mondrian/olap/ConnectionBase.html#getFullConnectString()">getFullConnectString</A>, <A HREF="../../mondrian/olap/ConnectionBase.html#memoryUsageNotification(mondrian.olap.Query, java.lang.String)">memoryUsageNotification</A>, <A HREF="../../mondrian/olap/ConnectionBase.html#parseExpression(java.lang.String)">parseExpression</A>, <A HREF="../../mondrian/olap/ConnectionBase.html#parseQuery(java.lang.String)">parseQuery</A>, <A HREF="../../mondrian/olap/ConnectionBase.html#parseQuery(java.lang.String, boolean)">parseQuery</A>, <A HREF="../../mondrian/olap/ConnectionBase.html#parseQuery(java.lang.String, mondrian.olap.FunTable, boolean)">parseQuery</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" 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#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#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#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#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#wait(long, int)" title="class or interface in java.lang">wait</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="role"><!-- --></A><H3>role</H3><PRE>protected <A HREF="../../mondrian/olap/Role.html" title="interface in mondrian.olap">Role</A> <B>role</B></PRE><DL><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="RolapConnection(mondrian.olap.Util.PropertyList)"><!-- --></A><H3>RolapConnection</H3><PRE>public <B>RolapConnection</B>(<A HREF="../../mondrian/olap/Util.PropertyList.html" title="class in mondrian.olap">Util.PropertyList</A> connectInfo)</PRE><DL><DD>Creates a connection.<P><DL><DT><B>Parameters:</B><DD><CODE>connectInfo</CODE> - Connection properties; keywords are described in <A HREF="../../mondrian/rolap/RolapConnectionProperties.html" title="enum in mondrian.rolap"><CODE>RolapConnectionProperties</CODE></A>.</DL></DL><HR><A NAME="RolapConnection(mondrian.olap.Util.PropertyList, javax.sql.DataSource)"><!-- --></A><H3>RolapConnection</H3><PRE>public <B>RolapConnection</B>(<A HREF="../../mondrian/olap/Util.PropertyList.html" title="class in mondrian.olap">Util.PropertyList</A> connectInfo, <A HREF="http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A> dataSource)</PRE><DL><DD>Creates a connection.<P><DL><DT><B>Parameters:</B><DD><CODE>connectInfo</CODE> - Connection properties; keywords are described in <A HREF="../../mondrian/rolap/RolapConnectionProperties.html" title="enum in mondrian.rolap"><CODE>RolapConnectionProperties</CODE></A>.</DL></DL><HR><A NAME="RolapConnection(mondrian.olap.Util.PropertyList, mondrian.rolap.RolapSchema)"><!-- --></A><H3>RolapConnection</H3><PRE><B>RolapConnection</B>(<A HREF="../../mondrian/olap/Util.PropertyList.html" title="class in mondrian.olap">Util.PropertyList</A> connectInfo, <A HREF="../../mondrian/rolap/RolapSchema.html" title="class in mondrian.rolap">RolapSchema</A> schema)</PRE><DL><DD>Creates a RolapConnection. <p>Only <A HREF="../../mondrian/rolap/RolapSchema.Pool.html#get(java.lang.String, java.lang.String, java.lang.String, java.lang.String, mondrian.olap.Util.PropertyList)"><CODE>RolapSchema.Pool.get(java.lang.String, java.lang.String, java.lang.String, java.lang.String, mondrian.olap.Util.PropertyList)</CODE></A> calls this with schema != null (to create a schema's internal connection). Other uses retrieve a schema from the cache based upon the <code>Catalog</code> property.<P><DL><DT><B>Parameters:</B><DD><CODE>connectInfo</CODE> - Connection properties; keywords are described in <A HREF="../../mondrian/rolap/RolapConnectionProperties.html" title="enum in mondrian.rolap"><CODE>RolapConnectionProperties</CODE></A>.<DD><CODE>schema</CODE> - Schema for the connection. Must be null unless this is to be an internal connection.<DT><B>Pre-condition:</B></DT> <DD>connectInfo != null</DD></DL></DL><HR><A NAME="RolapConnection(mondrian.olap.Util.PropertyList, mondrian.rolap.RolapSchema, javax.sql.DataSource)"><!-- --></A><H3>RolapConnection</H3><PRE><B>RolapConnection</B>(<A HREF="../../mondrian/olap/Util.PropertyList.html" title="class in mondrian.olap">Util.PropertyList</A> connectInfo, <A HREF="../../mondrian/rolap/RolapSchema.html" title="class in mondrian.rolap">RolapSchema</A> schema, <A HREF="http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A> dataSource)</PRE><DL><DD>Creates a RolapConnection. <p>Only <A HREF="../../mondrian/rolap/RolapSchema.Pool.html#get(java.lang.String, java.lang.String, java.lang.String, java.lang.String, mondrian.olap.Util.PropertyList)"><CODE>RolapSchema.Pool.get(java.lang.String, java.lang.String, java.lang.String, java.lang.String, mondrian.olap.Util.PropertyList)</CODE></A> calls this with schema != null (to create a schema's internal connection). Other uses retrieve a schema from the cache based upon the <code>Catalog</code> property.<P><DL><DT><B>Parameters:</B><DD><CODE>connectInfo</CODE> - Connection properties; keywords are described in <A HREF="../../mondrian/rolap/RolapConnectionProperties.html" title="enum in mondrian.rolap"><CODE>RolapConnectionProperties</CODE></A>.<DD><CODE>schema</CODE> - Schema for the connection. Must be null unless this is to be an internal connection.<DD><CODE>dataSource</CODE> - If not null an external DataSource to be used by Mondrian<DT><B>Pre-condition:</B></DT> <DD>connectInfo != null</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="getLogger()"><!-- --></A><H3>getLogger</H3><PRE>protected org.apache.log4j.Logger <B>getLogger</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../mondrian/olap/ConnectionBase.html#getLogger()">getLogger</A></CODE> in class <CODE><A HREF="../../mondrian/olap/ConnectionBase.html" title="class in mondrian.olap">ConnectionBase</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="createDataSource(javax.sql.DataSource, mondrian.olap.Util.PropertyList, java.lang.StringBuilder)"><!-- --></A><H3>createDataSource</H3><PRE>static <A HREF="http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A> <B>createDataSource</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A> dataSource, <A HREF="../../mondrian/olap/Util.PropertyList.html" title="class in mondrian.olap">Util.PropertyList</A> connectInfo, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/StringBuilder.html" title="class or interface in java.lang">StringBuilder</A> buf)</PRE><DL><DD>Creates a JDBC data source from the JDBC credentials contained within a set of mondrian connection properties. <p>This method is package-level so that it can be called from the RolapConnectionTest unit test.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataSource</CODE> - Anonymous data source from user, or null<DD><CODE>connectInfo</CODE> - Mondrian connection properties<DD><CODE>buf</CODE> - Into which method writes a description of the JDBC credentials<DT><B>Returns:</B><DD>Data source</DL></DD></DL><HR><A NAME="getConnectInfo()"><!-- --></A><H3>getConnectInfo</H3><PRE>public <A HREF="../../mondrian/olap/Util.PropertyList.html" title="class in mondrian.olap">Util.PropertyList</A> <B>getConnectInfo</B>()</PRE><DL><DD><DL></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?