📄 featurestore.html
字号:
<A NAME="addFeatures(org.geotools.data.FeatureReader)"><!-- --></A><H3>addFeatures</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>addFeatures</B>(<A HREF="../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> reader) 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>Deprecated.</B> <I>Please use addFeatures( FeatureCollection )</I><P><DD>Adds all features from the passed feature reader "stream".<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - The reader from which to add the features.<DT><B>Returns:</B><DD>the FeatureIds of the newly added features.<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 anything goes wrong.</DL></DD></DL><HR><A NAME="addFeatures(org.geotools.feature.FeatureCollection)"><!-- --></A><H3>addFeatures</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>addFeatures</B>(<A HREF="../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A> collection) 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>Adds all features from the passed feature collection to the datasource.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>collection</CODE> - The collection of features to add.<DT><B>Returns:</B><DD>the FeatureIds of the newly added features.<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 anything goes wrong.</DL></DD></DL><HR><A NAME="removeFeatures(org.geotools.filter.Filter)"><!-- --></A><H3>removeFeatures</H3><PRE>public void <B>removeFeatures</B>(<A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> filter) 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>Removes all of the features specificed by the passed filter from the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - An OpenGIS filter; specifies which features to remove.<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 anything goes wrong.</DL></DD></DL><HR><A NAME="modifyFeatures(org.geotools.feature.AttributeType[], java.lang.Object[], org.geotools.filter.Filter)"><!-- --></A><H3>modifyFeatures</H3><PRE>public void <B>modifyFeatures</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[] type, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] value, <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> filter) 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>Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The attributes to modify.<DD><CODE>value</CODE> - The values to put in the attribute types.<DD><CODE>filter</CODE> - An OGC filter to note which attributes to modify.<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 the attribute and object arrays are not eqaul length, if the object types do not match the attribute types, or if there are backend errors.</DL></DD></DL><HR><A NAME="modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)"><!-- --></A><H3>modifyFeatures</H3><PRE>public void <B>modifyFeatures</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> type, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value, <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> filter) 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>Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter. A convenience method for single attribute modifications.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The attributes to modify.<DD><CODE>value</CODE> - The values to put in the attribute types.<DD><CODE>filter</CODE> - An OGC filter to note which attributes to modify.<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 modificaton is not supported, if the object type do not match the attribute type.</DL></DD></DL><HR><A NAME="setFeatures(org.geotools.data.FeatureReader)"><!-- --></A><H3>setFeatures</H3><PRE>public void <B>setFeatures</B>(<A HREF="../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> reader) 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>Deletes the all the current Features of this datasource and adds the new collection. Primarily used as a convenience method for file datasources.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - - the collection to be written<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 there are any datasource errors.</DL></DD></DL><HR><A NAME="setTransaction(org.geotools.data.Transaction)"><!-- --></A><H3>setTransaction</H3><PRE>public void <B>setTransaction</B>(<A HREF="../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> transaction)</PRE><DL><DD>Provides a transaction for commit/rollback control of this FeatureStore. <p> This method operates as a replacement for setAutoCommitMode. When a transaction is provided you are no longer automatically committing. </p> <p> In order to return to AutoCommit mode supply the Transaction.AUTO_COMMIT to this method. Since this represents a return to AutoCommit mode the previous Transaction will be commited. </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>transaction</CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="getTransaction()"><!-- --></A><H3>getTransaction</H3><PRE>public <A HREF="../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> <B>getTransaction</B>()</PRE><DL><DD>Used to access the Transaction this DataSource is currently opperating against. <p> Example Use: adding features to a road DataSource </p> <pre><code> Transaction t = roads.getTransaction(); try{ roads.addFeatures( features ); roads.getTransaction().commit(); } catch( IOException erp ){ //something went wrong; roads.getTransaction().rollback(); } </code></pre><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Transaction in use, or <code>Transaction.AUTO_COMMIT</code></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/FeatureStore.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/FeatureSource.html" title="interface in org.geotools.data"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/data/FeatureWriter.html" title="interface in org.geotools.data"><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="FeatureStore.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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -