📄 hsqlfidmapper.html
字号:
<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/hsql/fidmapper/HsqlFIDMapper.html#getColumnName(int)">getColumnName</A></B>(int colIndex)</CODE><BR> Returns the name of the specified column in the primary key</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/hsql/fidmapper/HsqlFIDMapper.html#getColumnSize(int)">getColumnSize</A></B>(int colIndex)</CODE><BR> Returns the size of a primary key column as it would be provided by the database metadata. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/hsql/fidmapper/HsqlFIDMapper.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/hsql/fidmapper/HsqlFIDMapper.html#getID(java.lang.Object[])">getID</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] attributes)</CODE><BR> Returns the FID given the values of the prymary key attributes</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/Object.html" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/hsql/fidmapper/HsqlFIDMapper.html#getPKAttributes(java.lang.String)">getPKAttributes</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> FID)</CODE><BR> Creates the value for the PK attributes given the feature. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/hsql/fidmapper/HsqlFIDMapper.html#getWrappedMapper()">getWrappedMapper</A></B>()</CODE><BR> Returns the base mapper wrapped by this TypedFIDMapper</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/hsql/fidmapper/HsqlFIDMapper.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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/data/hsql/fidmapper/HsqlFIDMapper.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/hsql/fidmapper/HsqlFIDMapper.html#returnFIDColumnsAsAttributes()">returnFIDColumnsAsAttributes</A></B>()</CODE><BR> If true the primary key columns will be returned as attributes. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_AbstractFIDMapper"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html" title="class in org.geotools.data.jdbc.fidmapper">AbstractFIDMapper</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getColumnDecimalDigits()">getColumnDecimalDigits</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getColumnName()">getColumnName</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getColumnSize()">getColumnSize</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getColumnType()">getColumnType</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getTableName()">getTableName</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getTableSchemaName()">getTableSchemaName</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#hasAutoIncrementColumns()">hasAutoIncrementColumns</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#isAutoIncrement()">isAutoIncrement</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#isVolatile()">isVolatile</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#setInfo(java.lang.String, int, int, int, boolean)">setInfo</A>, <A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#toString()">toString</A></CODE></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#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> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="HsqlFIDMapper(org.geotools.data.jdbc.fidmapper.FIDMapper, java.lang.String)"><!-- --></A><H3>HsqlFIDMapper</H3><PRE>public <B>HsqlFIDMapper</B>(<A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A> wrapped, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> featureTypeName)</PRE><DL><DD>Creates a new HsqlFIDMapper object.<P><DT><B>Parameters:</B><DD><CODE>wrapped</CODE> - <DD><CODE>featureTypeName</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - DOCUMENT ME!</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="getID(java.lang.Object[])"><!-- --></A><H3>getID</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>getID</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] attributes)</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 FID given the values of the prymary key attributes<P><DD><DL><DT><B>Parameters:</B><DD><CODE>attributes</CODE> - DOCUMENT ME!<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getID(java.lang.Object[])"><CODE>FIDMapper.getID(java.lang.Object[])</CODE></A></DL></DD></DL><HR><A NAME="getPKAttributes(java.lang.String)"><!-- --></A><H3>getPKAttributes</H3><PRE>public <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>getPKAttributes</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> FID) 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><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>Creates the value for the PK attributes given the feature. If the FID is null, will throw an IOException if not possible. If null is returned, no primary key value needs to be specified, which is what we want for auto-increment fields.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>FID</CODE> - The feature ID is going to be parsed<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><DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getPKAttributes(java.lang.String)"><CODE>FIDMapper.getPKAttributes(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="returnFIDColumnsAsAttributes()"><!-- --></A><H3>returnFIDColumnsAsAttributes</H3><PRE>public boolean <B>returnFIDColumnsAsAttributes</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>If true the primary key columns will be returned as attributes. This is fundamental for primary key with businnes meaning.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#returnFIDColumnsAsAttributes()">returnFIDColumnsAsAttributes</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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#returnFIDColumnsAsAttributes()">returnFIDColumnsAsAttributes</A></CODE> in class <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html" title="class in org.geotools.data.jdbc.fidmapper">AbstractFIDMapper</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#returnFIDColumnsAsAttributes()"><CODE>FIDMapper.returnFIDColumnsAsAttributes()</CODE></A></DL></DD></DL><HR><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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getColumnCount()">getColumnCount</A></CODE> in class <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html" title="class in org.geotools.data.jdbc.fidmapper">AbstractFIDMapper</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="getColumnName(int)"><!-- --></A><H3>getColumnName</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>getColumnName</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>Returns the name of the specified column in the primary key<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html#getColumnName(int)">getColumnName</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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html#getColumnName(int)">getColumnName</A></CODE> in class <CODE><A HREF="../../../../../org/geotools/data/jdbc/fidmapper/AbstractFIDMapper.html" title="class in org.geotools.data.jdbc.fidmapper">AbstractFIDMapper</A></CODE></DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -