postgredatasource.html
来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 482 行 · 第 1/2 页
HTML
482 行
<!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.4.2_13) on Tue Jun 05 11:36:19 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>PostgreDataSource (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.referencing.factory.epsg.PostgreDataSource class"><META NAME="keywords" CONTENT="CONFIGURATION_FILE"><META NAME="keywords" CONTENT="getPriority()"><META NAME="keywords" CONTENT="createFactory()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="PostgreDataSource (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></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=3 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/PostgreDataSource.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/LongitudeFirstFactory.html" title="class in org.geotools.referencing.factory.epsg"><B>PREV CLASS</B></A> <A HREF="../../../../../org/geotools/referencing/factory/epsg/SimpleDataSource.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="PostgreDataSource.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.geotools.referencing.factory.epsg</FONT><BR>Class PostgreDataSource</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">BaseDataSource <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">PGSimpleDataSource <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">Jdbc3SimpleDataSource <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>PostgreDataSource</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/sql/DataSource.html" title="class or interface in javax.sql">DataSource</A>, <A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html" title="interface in org.geotools.referencing.factory.epsg">DataSource</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/naming/Referenceable.html" title="class or interface in javax.naming">Referenceable</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD></DL><HR><DL><DT>public class <B>PostgreDataSource</B><DT>extends Jdbc3SimpleDataSource<DT>implements <A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html" title="interface in org.geotools.referencing.factory.epsg">DataSource</A></DL><P>Connection to the EPSG database in PostgreSQL database engine using JDBC. The EPSG database can be downloaded from <A HREF="http://www.epsg.org">http://www.epsg.org</A>. It should have been imported into a PostgreSQL database, which doesn't need to be on the local machine. <p> <h3>Connection parameters</h3> The preferred way to specify connection parameters is through the JNDI interface. However, this datasource provides the following alternative as a convenience: if an {@value} file is found in current directory or in the user's home directory, then the following properties are fetch. Note that the default value may change in a future version if a public server become available. <P> <TABLE BORDER="1"> <TR> <TH>Property</TH> <TH>Type</TH> <TH>Description</TH> <TH>Geotools Default</TH> </TR> <TR> <TD></TD> <TD>String</TD> <TD>PostgreSQL database server host name</TD> <TD></TD> </TR> <TR> <TD></TD> <TD>String</TD> <TD>PostgreSQL database name</TD> <TD></TD> </TR> <TR> <TD></TD> <TD>String</TD> <TD>The schema for the EPSG tables</TD> <TD></TD> </TR> <TR> <TD></TD> <TD>int</TD> <TD>TCP port which the PostgreSQL database server is listening on</TD> <TD></TD> </TR> <TR> <TD></TD> <TD>String</TD> <TD>User used to make database connections</TD> <TD></TD> </TR> <TR> <TD></TD> <TD>String</TD> <TD>Password used to make database connections</TD> <TD></TD></TR> </TABLE> <P> The database version is given in the edition attribute of the authority. The postgreSQL database should be read only. <P> Just having this class accessible in the classpath, together with the registration in the directory, is suffisient to get a working EPSG authority factory backed by this database. Vendors can create a copy of this class, modify it and bundle it with their own distribution if they want to connect their users to an other database.<P><P><DL><DT><B>Since:</B></DT> <DD>2.2</DD><DT><B>Author:</B></DT> <DD>Didier Richard, Martin Desruisseaux</DD><DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.geotools.referencing.factory.epsg.PostgreDataSource">Serialized Form</A><DT><B>Tutorial:</B></DT><DD><A HREF="http://docs.codehaus.org/display/GEOTOOLS/How+to+install+the+EPSG+database+in+PostgreSQL">How to install the EPSG database in PostgreSQL</A></DD><DT><B>Module:</B></DT><DD><CODE><B>plugin/epsg-postgresql</B></CODE> (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-epsg-postgresql/"><CODE>gt2-epsg-postgresql.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/epsg-postgresql/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/plugin/epsg-postgresql/src/org/geotools/referencing/factory/epsg/PostgreDataSource.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/referencing/factory/epsg/PostgreDataSource.html#CONFIGURATION_FILE">CONFIGURATION_FILE</A></B></CODE><BR> The user configuration file. </TD></TR></TABLE> <A NAME="fields_inherited_from_class_DataSource"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface <A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html" title="interface in org.geotools.referencing.factory.epsg">DataSource</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html#MAXIMUM_PRIORITY">MAXIMUM_PRIORITY</A>, <A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html#MINIMUM_PRIORITY">MINIMUM_PRIORITY</A>, <A HREF="../../../../../org/geotools/referencing/factory/epsg/DataSource.html#NORMAL_PRIORITY">NORMAL_PRIORITY</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"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../org/geotools/referencing/factory/epsg/PostgreDataSource.html#PostgreDataSource()">PostgreDataSource</A></B>()</CODE><BR> Creates a new instance of this data source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../org/geotools/referencing/factory/epsg/PostgreDataSource.html#PostgreDataSource(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">PostgreDataSource</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> server, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> database, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> schema, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> user, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> password)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?