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

📄 jdbcdatastore.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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:32 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>JDBCDataStore (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.data.jdbc.JDBCDataStore class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="JDBCDataStore (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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/JDBCDataStore.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/geotools/data/jdbc/JDBC2DataStore.html" title="class in org.geotools.data.jdbc"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/geotools/data/jdbc/JDBCDataStoreConfig.html" title="class in org.geotools.data.jdbc"><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>  &nbsp;&nbsp;<A HREF="JDBCDataStore.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_JDBC2DataStore">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#methods_inherited_from_class_JDBC2DataStore">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;METHOD</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.data.jdbc</FONT><BR>Class JDBCDataStore</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"><A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html" title="class in org.geotools.data.jdbc">JDBC1DataStore</A>      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../org/geotools/data/jdbc/JDBC2DataStore.html" title="class in org.geotools.data.jdbc">JDBC2DataStore</A>          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>JDBCDataStore</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/geotools/data/DataStore.html" title="interface in org.geotools.data">DataStore</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/geotools/data/db2/DB2DataStore.html" title="class in org.geotools.data.db2">DB2DataStore</A>, <A HREF="../../../../org/geotools/data/geomedia/GeoMediaDataStore.html" title="class in org.geotools.data.geomedia">GeoMediaDataStore</A>, <A HREF="../../../../org/geotools/data/mysql/MySQLDataStore.html" title="class in org.geotools.data.mysql">MySQLDataStore</A>, <A HREF="../../../../org/geotools/data/oracle/OracleDataStore.html" title="class in org.geotools.data.oracle">OracleDataStore</A>, <A HREF="../../../../org/geotools/data/postgis/PostgisDataStore.html" title="class in org.geotools.data.postgis">PostgisDataStore</A></DD></DL><HR><DL><DT>public abstract class <B>JDBCDataStore</B><DT>extends <A HREF="../../../../org/geotools/data/jdbc/JDBC2DataStore.html" title="class in org.geotools.data.jdbc">JDBC2DataStore</A></DL><P>Abstract class for JDBC (level2) based DataStore implementations. This a convenience class that just extends JDBC2DataStore to keep current datastores that use it happy. Eventually datastores should extend one of JDBC1DataStore, or  JDBC2DataStore. <p> This class provides a default implementation of a JDBC data store. Support for vendor specific JDBC data stores can be easily added to Geotools by subclassing this class and overriding the hooks provided. </p>  <p> At a minimum subclasses should implement the following methods:  <ul> <li> <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#buildAttributeType(java.sql.ResultSet)"><CODE>buildAttributeType(ResultSet)</CODE></A> - This should be overriden to construct an attribute type that represents any column types not supported by the default implementation, such as geometry columns. </li> <li> <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#getGeometryAttributeIO(org.geotools.feature.AttributeType, org.geotools.data.jdbc.QueryData)"><CODE>getGeometryAttributeIO(AttributeType, QueryData)</CODE></A>  - Should be overriden to provide a way to read/write geometries into the format of the database </li> </ul> </p>  <p> Additionally subclasses can optionally override the following:  <ul> <li> Use a specific FIDMapperFactory by overriding the <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#buildFIDMapperFactory(org.geotools.data.jdbc.JDBCDataStoreConfig)"><CODE>buildFIDMapperFactory(JDBCDataStoreConfig)</CODE></A> method, and eventually disallow user overrides by throwing an <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang"><CODE>UnsupportedOperationException</CODE></A> in the <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#setFIDMapperFactory(org.geotools.data.jdbc.fidmapper.FIDMapperFactory)"><CODE>setFidMapperFactory()</CODE></A> method. </li> <li> <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#allowTable(java.lang.String)"><CODE>allowTable</CODE></A> - Used to determine whether a table name should be exposed as a feature type. </li> <li> <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#determineSRID(java.lang.String, java.lang.String)"><CODE>determineSRID</CODE></A> - Used to determine the SpatialReference ID of a geometry column in a table. </li> <li> <CODE>buildSQLQuery()</CODE> - Sub classes can override this to build a custom SQL query. </li> <li> <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#getResultSetType(boolean)"><CODE>getResultSetType</CODE></A> if the standard result set type is not satisfactory/does not work with a normal FORWARD_ONLY resultset type </li> <li> <A HREF="../../../../org/geotools/data/jdbc/JDBC1DataStore.html#getConcurrency(boolean)"><CODE>getConcurrency</CODE></A> to set the level of concurrency for the result set used to read/write the database </li> </ul> </p>  <p> Additionally subclasses may want to set the value of:  <ul> <li> sqlNameEscape - character (String) to surround names of SQL objects to support mixed-case and non-English names. </li> </ul> </p><P><P>

⌨️ 快捷键说明

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