📄 jdbcpsfeaturewriter.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/JDBCPSFeatureWriter.html#close()">close</A></B>()</CODE><BR> Release the underlying resources.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/PreparedStatement.html" title="class or interface in java.sql">PreparedStatement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/jdbc/JDBCPSFeatureWriter.html#createDeleteStatement(java.sql.Connection, org.geotools.feature.FeatureType)">createDeleteStatement</A></B>(<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="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> featureType)</CODE><BR> Creates the prepared statement for feature deletes</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/PreparedStatement.html" title="class or interface in java.sql">PreparedStatement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/jdbc/JDBCPSFeatureWriter.html#createInsertStatement(java.sql.Connection, org.geotools.feature.FeatureType)">createInsertStatement</A></B>(<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="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> featureType)</CODE><BR> Creates the prepared statement for feature inserts</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/PreparedStatement.html" title="class or interface in java.sql">PreparedStatement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/jdbc/JDBCPSFeatureWriter.html#createUpdateStatement(java.sql.Connection, org.geotools.feature.FeatureType)">createUpdateStatement</A></B>(<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="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> featureType)</CODE><BR> Creates the prepared statement for feature updates</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/JDBCPSFeatureWriter.html#doInsert(org.geotools.data.jdbc.MutableFIDFeature)">doInsert</A></B>(<A HREF="../../../../org/geotools/data/jdbc/MutableFIDFeature.html" title="class in org.geotools.data.jdbc">MutableFIDFeature</A> current)</CODE><BR> Override that uses prepared statements to perform the operation.</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/JDBCPSFeatureWriter.html#doUpdate(org.geotools.feature.Feature, org.geotools.feature.Feature)">doUpdate</A></B>(<A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> live, <A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> current)</CODE><BR> Override that uses sql statements to perform the operation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract <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/JDBCPSFeatureWriter.html#getGeometryPlaceHolder(org.geotools.feature.AttributeType)">getGeometryPlaceHolder</A></B>(<A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> type)</CODE><BR> Returns the placeholder for the geometry in the insert/update statement. </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/JDBCPSFeatureWriter.html#remove(org.geotools.data.jdbc.MutableFIDFeature)">remove</A></B>(<A HREF="../../../../org/geotools/data/jdbc/MutableFIDFeature.html" title="class in org.geotools.data.jdbc">MutableFIDFeature</A> current)</CODE><BR> Override that uses prepared statements to perform the operation.</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/JDBCPSFeatureWriter.html#useQueryDataForInsert()">useQueryDataForInsert</A></B>()</CODE><BR> This version does not use QueryData udpate/insert/remove methods, but uses separate prepared statements instead</TD></TR></TABLE> <A NAME="methods_inherited_from_class_JDBCFeatureWriter"><!-- --></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/JDBCFeatureWriter.html" title="class in org.geotools.data.jdbc">JDBCFeatureWriter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html#getFeatureType()">getFeatureType</A>, <A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html#hasNext()">hasNext</A>, <A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html#next()">next</A>, <A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html#remove()">remove</A>, <A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html#setFeatureListenerManager(org.geotools.data.FeatureListenerManager)">setFeatureListenerManager</A>, <A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html#write()">write</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#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#toString()" title="class or interface in java.lang">toString</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="JDBCPSFeatureWriter(org.geotools.data.FeatureReader, org.geotools.data.jdbc.QueryData)"><!-- --></A><H3>JDBCPSFeatureWriter</H3><PRE>public <B>JDBCPSFeatureWriter</B>(<A HREF="../../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> fReader, <A HREF="../../../../org/geotools/data/jdbc/QueryData.html" title="class in org.geotools.data.jdbc">QueryData</A> queryData) 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>Creates a new instance of JDBCFeatureWriter<P><DT><B>Parameters:</B><DD><CODE>fReader</CODE> - <DD><CODE>queryData</CODE> - <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></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="doInsert(org.geotools.data.jdbc.MutableFIDFeature)"><!-- --></A><H3>doInsert</H3><PRE>protected void <B>doInsert</B>(<A HREF="../../../../org/geotools/data/jdbc/MutableFIDFeature.html" title="class in org.geotools.data.jdbc">MutableFIDFeature</A> current) 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>, <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>Override that uses prepared statements to perform the operation.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html#doInsert(org.geotools.data.jdbc.MutableFIDFeature)">doInsert</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureWriter.html" title="class in org.geotools.data.jdbc">JDBCFeatureWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>current</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><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/JDBCFeatureWriter.html#doInsert(org.geotools.data.jdbc.MutableFIDFeature)"><CODE>JDBCFeatureWriter.doInsert(org.geotools.data.jdbc.MutableFIDFeature)</CODE></A></DL></DD></DL><HR><A NAME="createInsertStatement(java.sql.Connection, org.geotools.feature.FeatureType)"><!-- --></A><H3>createInsertStatement</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/PreparedStatement.html" title="class or interface in java.sql">PreparedStatement</A> <B>createInsertStatement</B>(<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="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> featureType) 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>Creates the prepared statement for feature inserts<P><DD><DL><DT><B>Parameters:</B><DD><CODE>conn</CODE> - <DD><CODE>featureType</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="getGeometryPlaceHolder(org.geotools.feature.AttributeType)"><!-- --></A><H3>getGeometryPlaceHolder</H3><PRE>protected abstract <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>getGeometryPlaceHolder</B>(<A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> type)</PRE><DL><DD>Returns the placeholder for the geometry in the insert/update statement.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -