📄 abstractfidmapper.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getColumnType(int)">getColumnType</A></B>(int colIndex)</CODE><BR> Returns the column type by using a constant available in the java.sql.Types interface</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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/data/jdbc/fidmapper/AbstractFIDMapper.html#getTableName()">getTableName</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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/data/jdbc/fidmapper/AbstractFIDMapper.html#getTableSchemaName()">getTableSchemaName</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#hasAutoIncrementColumns()">hasAutoIncrementColumns</A></B>()</CODE><BR> Returns true if at least one column is of auto-increment type</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#initSupportStructures()">initSupportStructures</A></B>()</CODE><BR> This method will be called by JDBCDataStore when creating new tables to give the FID mapper an opportunity to initialize needed data structures, such as support tables, sequences, and so on.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#isAutoIncrement()">isAutoIncrement</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#isAutoIncrement(int)">isAutoIncrement</A></B>(int colIndex)</CODE><BR> Returns true if the column is of serial type, that is, its value is automatically generated by the database if the user does not provide one</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#isVolatile()">isVolatile</A></B>()</CODE><BR> Convenience since most FID mappers should be persistent, override on the specific ones that aren't.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#returnFIDColumnsAsAttributes()">returnFIDColumnsAsAttributes</A></B>()</CODE><BR> If true the primary key columns will be returned as attributes. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#setInfo(java.lang.String, int, int, int, boolean)">setInfo</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> colName, int colType, int colSize, int colDecimalDigits, boolean autoIncrement)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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/data/jdbc/fidmapper/AbstractFIDMapper.html#toString()">toString</A></B>()</CODE><BR> Create a nice string representation of a FID Mapper</TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_FIDMapper"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#createID(java.sql.Connection, org.geotools.feature.Feature, java.sql.Statement)">createID</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getID(java.lang.Object[])">getID</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getPKAttributes(java.lang.String)">getPKAttributes</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="autoIncrement"><!-- --></A><H3>autoIncrement</H3><PRE>protected boolean[] <B>autoIncrement</B></PRE><DL><DL></DL></DL><HR><A NAME="colDecimalDigits"><!-- --></A><H3>colDecimalDigits</H3><PRE>protected int[] <B>colDecimalDigits</B></PRE><DL><DL></DL></DL><HR><A NAME="colNames"><!-- --></A><H3>colNames</H3><PRE>protected <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>colNames</B></PRE><DL><DL></DL></DL><HR><A NAME="colSizes"><!-- --></A><H3>colSizes</H3><PRE>protected int[] <B>colSizes</B></PRE><DL><DL></DL></DL><HR><A NAME="colTypes"><!-- --></A><H3>colTypes</H3><PRE>protected int[] <B>colTypes</B></PRE><DL><DL></DL></DL><HR><A NAME="tableName"><!-- --></A><H3>tableName</H3><PRE>protected <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>tableName</B></PRE><DL><DL></DL></DL><HR><A NAME="tableSchemaName"><!-- --></A><H3>tableSchemaName</H3><PRE>protected <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>tableSchemaName</B></PRE><DL><DL></DL></DL><HR><A NAME="returnFIDColumnsAsAttributes"><!-- --></A><H3>returnFIDColumnsAsAttributes</H3><PRE>protected boolean <B>returnFIDColumnsAsAttributes</B></PRE><DL><DD>Set if table FID columns are to be returned as business attributes.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AbstractFIDMapper()"><!-- --></A><H3>AbstractFIDMapper</H3><PRE>public <B>AbstractFIDMapper</B>()</PRE><DL><DD>Default constructor for AbstractFIDMapper<P></DL><HR><A NAME="AbstractFIDMapper(java.lang.String, java.lang.String)"><!-- --></A><H3>AbstractFIDMapper</H3><PRE>public <B>AbstractFIDMapper</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> tableSchemaName, <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)</PRE><DL><DD>Set common values for all FID mappers.<P><DT><B>Parameters:</B><DD><CODE>tableSchemaName</CODE> - <DD><CODE>tableName</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="getColumnCount()"><!-- --></A><H3>getColumnCount</H3><PRE>public int <B>getColumnCount</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A></CODE></B></DD><DD>Returns the number of columns in the primary keys handled by this mapper<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getColumnCount()">getColumnCount</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getColumnCount()"><CODE>FIDMapper.getColumnCount()</CODE></A></DL></DD></DL><HR><A NAME="getColumnDecimalDigits()"><!-- --></A><H3>getColumnDecimalDigits</H3><PRE>protected int <B>getColumnDecimalDigits</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getColumnCount()"><CODE>FIDMapper.getColumnCount()</CODE></A></DL></DD></DL><HR><A NAME="getColumnDecimalDigits(int)"><!-- --></A><H3>getColumnDecimalDigits</H3><PRE>public int <B>getColumnDecimalDigits</B>(int colIndex)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A></CODE></B></DD><DD>Provides the number of decimal digits for this column. This is relevant in particular when the column is a scaled integer such as a NUMBER column<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getColumnDecimalDigits(int)">getColumnDecimalDigits</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>colIndex</CODE> - <DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getColumnDecimalDigits(int)"><CODE>FIDMapper.getColumnDecimalDigits(int)</CODE></A></DL></DD></DL><HR><A NAME="getColumnName()"><!-- --></A><H3>getColumnName</H3><PRE>protected <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>getColumnName</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -