⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 featurelocking.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="setFeatureLock(org.geotools.data.FeatureLock)"><!-- --></A><H3>setFeatureLock</H3><PRE>public void <B>setFeatureLock</B>(<A HREF="../../../org/geotools/data/FeatureLock.html" title="interface in org.geotools.data">FeatureLock</A>&nbsp;lock)</PRE><DL><DD>All locking operations will operate against the provided <code>lock</code>. <p> This in in keeping with the stateful spirit of DataSource in which operations are against the "current" transaction. If a FeatureLock is not provided lock operations will only be applicable for the current transaction (they will expire on the next commit or rollback). </p> <p> That is lockFeatures() operations will: </p> <ul> <li> Be recorded against the provided FeatureLock. </li> <li> Be recorded against the current transaction if no FeatureLock is provided. </li> </ul> <p> Calling this method with <code>setFeatureLock( FeatureLock.TRANSACTION )</code> will revert to per transaction operation. </p> <p> This design allows for the following: </p> <ul> <li> cross DataSource FeatureLock usage </li> <li> not having pass in the same FeatureLock object multiple times </li> </ul><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>lock</CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="lockFeatures(org.geotools.data.Query)"><!-- --></A><H3>lockFeatures</H3><PRE>public int <B>lockFeatures</B>(<A HREF="../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A>&nbsp;query)                 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>FeatureLock features described by Query. <p> To implement WFS parcial Locking retrieve your features with a query operation first before trying to lock them individually. If you are not into WFS please don't ask what parcial locking is. </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - Query describing the features to lock<DT><B>Returns:</B><DD>Number of features locked<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> - Thrown if anything goes wrong</DL></DD></DL><HR><A NAME="lockFeatures(org.geotools.filter.Filter)"><!-- --></A><H3>lockFeatures</H3><PRE>public int <B>lockFeatures</B>(<A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A>&nbsp;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>FeatureLock features described by Filter. <p> To implement WFS parcial Locking retrieve your features with a query operation first before trying to lock them individually. If you are not into WFS please don't ask what parcial locking is. </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - Filter describing the features to lock<DT><B>Returns:</B><DD>Number of features locked<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> - Thrown if anything goes wrong</DL></DD></DL><HR><A NAME="lockFeatures()"><!-- --></A><H3>lockFeatures</H3><PRE>public int <B>lockFeatures</B>()                 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>FeatureLock all Features. <p> The method does not prevent addFeatures() from being used (we could add a lockDataSource() method if this functionality is required. </p><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Number of Features locked by this opperation<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></DD></DL><HR><A NAME="unLockFeatures()"><!-- --></A><H3>unLockFeatures</H3><PRE>public void <B>unLockFeatures</B>()                    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>Unlocks all Features. <p> Authorization must be provided prior before calling this method. </p> <pre><code> <b>void</b> releaseLock( String lockId, LockingDataSource ds ){    ds.setAuthorization( "LOCK534" );    ds.unLockFeatures(); } </code></pre><P><DD><DL></DL></DD><DD><DL><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></DD></DL><HR><A NAME="unLockFeatures(org.geotools.filter.Filter)"><!-- --></A><H3>unLockFeatures</H3><PRE>public void <B>unLockFeatures</B>(<A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A>&nbsp;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>Unlock Features denoted by provided filter. <p> Authorization must be provided prior before calling this method. </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</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></DD></DL><HR><A NAME="unLockFeatures(org.geotools.data.Query)"><!-- --></A><H3>unLockFeatures</H3><PRE>public void <B>unLockFeatures</B>(<A HREF="../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A>&nbsp;query)                    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>Unlock Features denoted by provided query. <p> Authorization must be provided prior before calling this method. </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - Specifies fatures to unlock<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></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FeatureLocking.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/geotools/data/FeatureLock.html" title="interface in org.geotools.data"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/geotools/data/FeatureReader.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>  &nbsp;&nbsp;<A HREF="FeatureLocking.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 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 + -