📄 db2fidmapperfactory.html
字号:
<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="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> 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> 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> 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> connection) 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 appropriate FIDMapper for the specified table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/FIDMapperFactory.html#getMapper(java.lang.String, java.lang.String, java.lang.String, java.sql.Connection)">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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html#getMapper(java.lang.String, java.lang.String, java.lang.String, java.sql.Connection)">getMapper</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>catalog</CODE> - <DD><CODE>schema</CODE> - <DD><CODE>tableName</CODE> - <DD><CODE>connection</CODE> - the active database connection to get table key information<DT><B>Returns:</B><DD>the appropriate FIDMapper for the specified table.<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 any error occurs.</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> 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> 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> 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> 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> 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> columnName, int 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>Determine whether this column is autoincrement. An open connection to the database must be provided.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html#isAutoIncrement(java.lang.String, java.lang.String, java.lang.String, java.sql.Connection, java.sql.ResultSet, java.lang.String, int)">isAutoIncrement</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>catalog</CODE> - not used<DD><CODE>schema</CODE> - not used<DD><CODE>tableName</CODE> - the table name<DD><CODE>conn</CODE> - an open database connection<DD><CODE>tableInfo</CODE> - not used<DD><CODE>columnName</CODE> - the FID column name<DD><CODE>dataType</CODE> - not used<DT><B>Returns:</B><DD>true if this is an autoincrement column<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="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> 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> 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> connection)</PRE><DL><DD>Returns a DB2NullFIDMapper when there is no primary key.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html#buildNoPKMapper(java.lang.String, java.lang.String, java.sql.Connection)">buildNoPKMapper</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - ignored.<DD><CODE>tableName</CODE> - ignored.<DD><CODE>connection</CODE> - ignored.<DT><B>Returns:</B><DD>a DB2NullFIDMapper.</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> 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> 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> connection, <A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.ColumnInfo.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory.ColumnInfo</A> 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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html#buildSingleColumnFidMapper(java.lang.String, java.lang.String, java.sql.Connection, org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory.ColumnInfo)">buildSingleColumnFidMapper</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/fidmapper/DefaultFIDMapperFactory.html" title="class in org.geotools.data.jdbc.fidmapper">DefaultFIDMapperFactory</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - <DD><CODE>tableName</CODE> - <DD><CODE>connection</CODE> - not used<DD><CODE>ci</CODE> - the column information<DT><B>Returns:</B><DD>a FIDMapper</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/DB2FIDMapperFactory.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/data/db2/DB2FeatureWriter.html" title="class in org.geotools.data.db2"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/data/db2/DB2GeometryColumn.html" title="class in org.geotools.data.db2"><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="DB2FIDMapperFactory.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: <A HREF="#nested_classes_inherited_from_class_org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory">NESTED</A> | <A HREF="#fields_inherited_from_class_DefaultFIDMapperFactory">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: FIELD | <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 + -