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

📄 defaultfidmapperfactory.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DD><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - <DD><CODE>tableName</CODE> - <DD><CODE>connection</CODE> - <DD><CODE>colInfos</CODE> - </DL></DD></DL><HR><A NAME="buildSingleColumnFidMapper(java.lang.String, java.lang.String, java.sql.Connection, org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory.ColumnInfo)"><!-- --></A><H3>buildSingleColumnFidMapper</H3><PRE>protected <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A> <B>buildSingleColumnFidMapper</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;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>&nbsp;tableName,                                               <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A>&nbsp;connection,                                               <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.ColumnInfo.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory.ColumnInfo</A>&nbsp;ci)</PRE><DL><DD>Builds a FID mapper based on a single column primary key. Default version tries the auto-increment way, then a mapping on an <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/MaxIncFIDMapper.html" title="class in org.geotools.data.jdbc.fidmapper"><CODE>MaxIncFIDMapper</CODE></A> type for numeric columns, and a plain <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/BasicFIDMapper.html" title="class in org.geotools.data.jdbc.fidmapper"><CODE>BasicFIDMapper</CODE></A> of text based columns.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - <DD><CODE>tableName</CODE> - <DD><CODE>connection</CODE> - an open database connection.<DD><CODE>ci</CODE> - the column information for the FID column.<DT><B>Returns:</B><DD>the appropriate FIDMapper.</DL></DD></DL><HR><A NAME="buildNoPKMapper(java.lang.String, java.lang.String, java.sql.Connection)"><!-- --></A><H3>buildNoPKMapper</H3><PRE>protected <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A> <B>buildNoPKMapper</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;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>&nbsp;tableName,                                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A>&nbsp;connection)</PRE><DL><DD>DOCUMENT ME!<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - <DD><CODE>tableName</CODE> - <DD><CODE>connection</CODE> - </DL></DD></DL><HR><A NAME="buildMultiColumnFIDMapper(java.lang.String, java.lang.String, java.sql.Connection, org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory.ColumnInfo[])"><!-- --></A><H3>buildMultiColumnFIDMapper</H3><PRE>protected <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A> <B>buildMultiColumnFIDMapper</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;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>&nbsp;tableName,                                              <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A>&nbsp;connection,                                              <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.ColumnInfo.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory.ColumnInfo</A>[]&nbsp;colInfos)</PRE><DL><DD>Builds a FID mapper for multi column public columns<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - <DD><CODE>tableName</CODE> - <DD><CODE>connection</CODE> - <DD><CODE>colInfos</CODE> - </DL></DD></DL><HR><A NAME="getPkColumnInfo(java.lang.String, java.lang.String, java.lang.String, java.sql.Connection)"><!-- --></A><H3>getPkColumnInfo</H3><PRE>protected <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.ColumnInfo.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory.ColumnInfo</A>[] <B>getPkColumnInfo</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;catalog,                                                               <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;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>&nbsp;typeName,                                                               <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A>&nbsp;conn)                                                        throws <A HREF="../../../../../org/geotools/data/SchemaNotFoundException.html" title="class in org.geotools.data">SchemaNotFoundException</A>,                                                               <A HREF="../../../../../org/geotools/data/DataSourceException.html" title="class in org.geotools.data">DataSourceException</A></PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/geotools/data/SchemaNotFoundException.html" title="class in org.geotools.data">SchemaNotFoundException</A></CODE><DD><CODE><A HREF="../../../../../org/geotools/data/DataSourceException.html" title="class in org.geotools.data">DataSourceException</A></CODE></DL></DD></DL><HR><A NAME="isAutoIncrement(java.lang.String, java.lang.String, java.lang.String, java.sql.Connection, java.sql.ResultSet, java.lang.String, int)"><!-- --></A><H3>isAutoIncrement</H3><PRE>protected boolean <B>isAutoIncrement</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;catalog,                                  <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;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>&nbsp;tableName,                                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A>&nbsp;conn,                                  <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;tableInfo,                                  <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;columnName,                                  int&nbsp;dataType)                           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>Returns true if the specified column is auto-increment. This method is left protected so that specific datastore implementations can put their own logic, should the default one be ineffective or have bad performance.  NOTE: the postgis subclass will call this with the columnname and table name pre-double-quoted! Other DB may have to do the same - please check your DB's documentation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>catalog</CODE> - <DD><CODE>schema</CODE> - <DD><CODE>tableName</CODE> - <DD><CODE>conn</CODE> - <DD><CODE>tableInfo</CODE> - <DD><CODE>columnName</CODE> - <DD><CODE>dataType</CODE> - <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="isIntegralType(int)"><!-- --></A><H3>isIntegralType</H3><PRE>protected boolean <B>isIntegralType</B>(int&nbsp;dataType)</PRE><DL><DD>Returns true if the dataType for the column can serve as a primary key. Note that this now returns true for a DECIMAL type, because oracle Numbers are returned in jdbc as DECIMAL.  This may cause errors in very rare cases somewhere down the line, but only if users do something incredibly silly like defining a primary key with a double.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dataType</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!</DL></DD></DL><HR><A NAME="isTextType(int)"><!-- --></A><H3>isTextType</H3><PRE>protected boolean <B>isTextType</B>(int&nbsp;dataType)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getMapper(org.geotools.feature.FeatureType)"><!-- --></A><H3>getMapper</H3><PRE>public <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A> <B>getMapper</B>(<A HREF="../../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapperFactory.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapperFactory</A></CODE></B></DD><DD>Returns a FIDMapper for the specified feature type. This one is called when creating new tables if the user did not provide a FIDMapper<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapperFactory.html#getMapper(org.geotools.feature.FeatureType)">getMapper</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapperFactory.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapperFactory</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>featureType</CODE> - <DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapperFactory.html#getMapper(org.geotools.feature.FeatureType)"><CODE>FIDMapperFactory.getMapper(org.geotools.feature.FeatureType)</CODE></A></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>&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/DefaultFIDMapperFactory.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/fidmapper/BasicFIDMapper.html" title="class in org.geotools.data.jdbc.fidmapper"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.ColumnInfo.html" title="class in org.geotools.data.jdbc.fidmapper"><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="DefaultFIDMapperFactory.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 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 + -