⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 db2datastore.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<P><DT><B>Parameters:</B><DD><CODE>connectionPool</CODE> - the initialized DB2 connection pool<DD><CODE>config</CODE> - the JDBCDataStoreConfiguration<DD><CODE>dbURL</CODE> - the database URL of the form        <code>jdbc:db2://hostname:hostport/dbname </code><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></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="buildAttributeType(java.sql.ResultSet)"><!-- --></A><H3>buildAttributeType</H3><PRE>protected <A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> <B>buildAttributeType</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/ResultSet.html" title="class or interface in java.sql">ResultSet</A>&nbsp;rs)                                    throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Handles DB2-specific geometry types.  If it isn't one, just let the parent method handle it.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#buildAttributeType(java.sql.ResultSet)">buildAttributeType</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rs</CODE> - The ResultSet containing the result of a        DatabaseMetaData.getColumns call.<DT><B>Returns:</B><DD>The AttributeType built from the ResultSet.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occurs processing the ResultSet.</DL></DD></DL><HR><A NAME="buildFIDMapperFactory(org.geotools.data.jdbc.JDBCDataStoreConfig)"><!-- --></A><H3>buildFIDMapperFactory</H3><PRE>protected <A HREF="../../../../org/geotools/data/jdbc/fidmapper/FIDMapperFactory.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapperFactory</A> <B>buildFIDMapperFactory</B>(<A HREF="../../../../org/geotools/data/jdbc/JDBCDataStoreConfig.html" title="class in org.geotools.data.jdbc">JDBCDataStoreConfig</A>&nbsp;config)</PRE><DL><DD>Creates a DB2-specific FIDMapperFactory.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#buildFIDMapperFactory(org.geotools.data.jdbc.JDBCDataStoreConfig)">buildFIDMapperFactory</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>config</CODE> - not used.<DT><B>Returns:</B><DD>a DB2FIDMapperFactory</DL></DD></DL><HR><A NAME="determineSRID(java.lang.String, java.lang.String)"><!-- --></A><H3>determineSRID</H3><PRE>protected int <B>determineSRID</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>&nbsp;tableName,                            <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;geometryColumnName)                     throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Get the SRID associated with a geometry column.  <p> The value returned is the EPSG coordinate system identifier, not the DB2 srs_id. </p><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#determineSRID(java.lang.String, java.lang.String)">determineSRID</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tableName</CODE> - The name of the table to get the SRID for.<DD><CODE>geometryColumnName</CODE> - The name of the geometry column within the        table to get SRID for.<DT><B>Returns:</B><DD>The SRID for the geometry column  or -1.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="getFeatureTypeHandler(org.geotools.data.jdbc.JDBCDataStoreConfig)"><!-- --></A><H3>getFeatureTypeHandler</H3><PRE>protected <A HREF="../../../../org/geotools/data/jdbc/FeatureTypeHandler.html" title="class in org.geotools.data.jdbc">FeatureTypeHandler</A> <B>getFeatureTypeHandler</B>(<A HREF="../../../../org/geotools/data/jdbc/JDBCDataStoreConfig.html" title="class in org.geotools.data.jdbc">JDBCDataStoreConfig</A>&nbsp;config)                                            throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Create a DB2-specific FeatureTypeHandler.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#getFeatureTypeHandler(org.geotools.data.jdbc.JDBCDataStoreConfig)">getFeatureTypeHandler</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>config</CODE> - a JDBCDataStoreConfig.<DT><B>Returns:</B><DD>a DB2FeatureTypeHandler.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the feature type handler could not be created.</DL></DD></DL><HR><A NAME="getGeometryAttributeIO(org.geotools.feature.AttributeType, org.geotools.data.jdbc.QueryData)"><!-- --></A><H3>getGeometryAttributeIO</H3><PRE>protected <A HREF="../../../../org/geotools/data/jdbc/attributeio/AttributeIO.html" title="interface in org.geotools.data.jdbc.attributeio">AttributeIO</A> <B>getGeometryAttributeIO</B>(<A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type,                                             <A HREF="../../../../org/geotools/data/jdbc/QueryData.html" title="class in org.geotools.data.jdbc">QueryData</A>&nbsp;queryData)</PRE><DL><DD>Gets the handler to convert a geometry database value to a JTS geometry.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#getGeometryAttributeIO(org.geotools.feature.AttributeType, org.geotools.data.jdbc.QueryData)">getGeometryAttributeIO</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - not used.<DD><CODE>queryData</CODE> - not used.<DT><B>Returns:</B><DD>AttributIO</DL></DD></DL><HR><A NAME="getSqlBuilder(java.lang.String)"><!-- --></A><H3>getSqlBuilder</H3><PRE>public <A HREF="../../../../org/geotools/data/jdbc/SQLBuilder.html" title="interface in org.geotools.data.jdbc">SQLBuilder</A> <B>getSqlBuilder</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>&nbsp;typeName)                         throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Gets the DB2-specific SQL builder object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#getSqlBuilder(java.lang.String)">getSqlBuilder</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - Name of the type to build the SQL for.<DT><B>Returns:</B><DD>DB2SQLBuilder<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="getTypeNames()"><!-- --></A><H3>getTypeNames</H3><PRE>public <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>getTypeNames</B>()                      throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Gets the names of tables (types) that contain a spatial column.  Note that there is still an issue concerning the ambiguity of spatial tables that have the same table name but different table schema names.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/DataStore.html#getTypeNames()">getTypeNames</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/DataStore.html" title="interface in org.geotools.data">DataStore</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#getTypeNames()">getTypeNames</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Array of type names as Strings.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the spatial catalog can not be accessed.<DT><B>See Also:</B><DD><CODE>org.geotools.data.DataStore#getFeatureTypes()</CODE></DL></DD></DL><HR><A NAME="refreshCatalog()"><!-- --></A><H3>refreshCatalog</H3><PRE>public void <B>refreshCatalog</B>()                    throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Reloads the spatial catalog from the database. <p> This is useful in case anything changed after the datastore was initialized.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><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="getTableSchema()"><!-- --></A><H3>getTableSchema</H3><PRE>public <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>getTableSchema</B>()</PRE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -