📄 hsqldatasource.html
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class jdbcDataSource</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getConnection, getDatabase, getLoginTimeout, getLogWriter, getReference, getUser, setDatabase, setLoginTimeout, setLogWriter, setPassword, setUser</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/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/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_DataSource"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html#getConnection(java.lang.String, java.lang.String)" title="class or interface in javax.sql">getConnection</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html#getLoginTimeout()" title="class or interface in javax.sql">getLoginTimeout</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html#getLogWriter()" title="class or interface in javax.sql">getLogWriter</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html#setLoginTimeout(int)" title="class or interface in javax.sql">setLoginTimeout</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html#setLogWriter(java.io.PrintWriter)" title="class or interface in javax.sql">setLogWriter</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"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="DIRECTORY_KEY"><!-- --></A><H3>DIRECTORY_KEY</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>DIRECTORY_KEY</B></PRE><DL><DD>The key for fetching the database directory from <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#getProperty(java.lang.String)" title="class or interface in java.lang">system properties</A>.<P><DL><DT><B>Since:</B></DT> <DD>2.3</DD><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.referencing.factory.epsg.HSQLDataSource.DIRECTORY_KEY">Constant Field Values</A></DL></DL><HR><A NAME="DATABASE_NAME"><!-- --></A><H3>DATABASE_NAME</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>DATABASE_NAME</B></PRE><DL><DD>The database name.<P><DL><DT><B>Since:</B></DT> <DD>2.3</DD><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.geotools.referencing.factory.epsg.HSQLDataSource.DATABASE_NAME">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="HSQLDataSource()"><!-- --></A><H3>HSQLDataSource</H3><PRE>public <B>HSQLDataSource</B>()</PRE><DL><DD>Creates a new instance of this data source. If the <A HREF="../../../../../org/geotools/referencing/factory/epsg/HSQLDataSource.html#DIRECTORY_KEY"><CODE>DIRECTORY_KEY</CODE></A> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#getProperty(java.lang.String)" title="class or interface in java.lang">system property</A> is defined and contains the name of a directory with a valid <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html#getParent()" title="class or interface in java.io">parent</A>, then the <A HREF="../../../../../org/geotools/referencing/factory/epsg/HSQLDataSource.html#DATABASE_NAME"><CODE>DATABASE_NAME</CODE></A> database will be saved in that directory. Otherwise, a temporary directory will be used.<P></DL><HR><A NAME="HSQLDataSource(java.io.File)"><!-- --></A><H3>HSQLDataSource</H3><PRE>public <B>HSQLDataSource</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> directory)</PRE><DL><DD>Creates a new instance of this data source using the <A HREF="../../../../../org/geotools/referencing/factory/epsg/HSQLDataSource.html#DATABASE_NAME"><CODE>DATABASE_NAME</CODE></A> database in the specified directory. If is , then callers are responsible to invoke <CODE>jdbcDataSource.setDatabase(java.lang.String)</CODE> explicitly.<P><DT><B>Parameters:</B><DD><CODE>directory</CODE> - The directory for the <A HREF="../../../../../org/geotools/referencing/factory/epsg/HSQLDataSource.html#DATABASE_NAME"><CODE>DATABASE_NAME</CODE></A> HSQL database, or if none.<DT><B>Since:</B></DT> <DD>2.3</DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getPriority()"><!-- --></A><H3>getPriority</H3><PRE>public int <B>getPriority</B>()</PRE><DL><DD>Returns the priority for this data source. This priority is set to a lower value than the <A HREF="../../../../../org/geotools/referencing/factory/epsg/AccessDataSource.html" title="class in org.geotools.referencing.factory.epsg">AccessDataSource</A>'s one in order to give the priority to the Access-backed database, if presents. Priorities are set that way because: <ul> <li>The MS-Access format is the primary EPSG database format.</li> <li>If a user downloads the MS-Access database himself, he probably wants to use it.</li> </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html#getPriority()">getPriority</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html" title="interface in org.geotools.referencing.factory.epsg">DataSource</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getConnection()"><!-- --></A><H3>getConnection</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A> <B>getConnection</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/SQLException.html" title="class or interface in java.sql">SQLException</A></PRE><DL><DD>Opens a connection to the database. If the cached tables are not available, they will be created now from the SQL scripts bundled in this plugin.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html#getConnection()" title="class or interface in javax.sql">getConnection</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/SQLException.html" title="class or interface in java.sql">SQLException</A></CODE></DL></DD></DL><HR><A NAME="createFactory(org.geotools.factory.Hints)"><!-- --></A><H3>createFactory</H3><PRE>public <A HREF="../../../../../org/geotools/referencing/factory/AbstractAuthorityFactory.html" title="class in org.geotools.referencing.factory">AbstractAuthorityFactory</A> <B>createFactory</B>(<A HREF="../../../../../org/geotools/factory/Hints.html" title="class in org.geotools.factory">Hints</A> hints) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/SQLException.html" title="class or interface in java.sql">SQLException</A></PRE><DL><DD>Opens a connection and creates an <A HREF="../../../../../org/geotools/referencing/factory/epsg/FactoryUsingSQL.html" title="class in org.geotools.referencing.factory.epsg">EPSG factory</A> for it.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html#createFactory(org.geotools.factory.Hints)">createFactory</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html" title="interface in org.geotools.referencing.factory.epsg">DataSource</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hints</CODE> - A map of hints, including the low-level factories to use for CRS creation.<DT><B>Returns:</B><DD>The EPSG factory using HSQLDB SQL syntax.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/SQLException.html" title="class or interface in java.sql">SQLException</A></CODE> - if connection to the database failed.</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=3 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/HSQLDataSource.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/geotools/referencing/factory/epsg/FactoryUsingWKT.html" title="class in org.geotools.referencing.factory.epsg"><B>PREV CLASS</B></A> <A HREF="../../../../../org/geotools/referencing/factory/epsg/LongitudeFirstFactory.html" title="class in org.geotools.referencing.factory.epsg"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="HSQLDataSource.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 © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -