📄 inprocesslockingmanager.html
字号:
<A NAME="assertAccess(java.lang.String, java.lang.String, org.geotools.data.Transaction)"><!-- --></A><H3>assertAccess</H3><PRE>public void <B>assertAccess</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> typeName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> featureID, <A HREF="../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> transaction) throws <A HREF="../../../org/geotools/data/FeatureLockException.html" title="class in org.geotools.data">FeatureLockException</A></PRE><DL><DD>Checks mutability of featureID for this transaction. <p> Two behaviors are defined by FeatureLocking: </p> <ul> <li> TransactionLock (Blocking): lock held by a Transaction<br> Authorization is granted to the Transaction holding the Lock. Conflict will result in a block until the Transaction holding the lock completes. (This behavior is equivalent to a Database row-lock, or a java synchronized statement) </li> <li> FeatureLock (Error): lock held by a FeatureLock<br> Authorization is based on the set of Authorization IDs held by the provided Transaction. Conflict will result in an error. (This behavior is equivalent to the WFS locking specification) </li> </ul> <p> Right now we are just going to error out with an exception </p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - Feature type to check against<DD><CODE>featureID</CODE> - FeatureID to check<DD><CODE>transaction</CODE> - Provides Authorization<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/data/FeatureLockException.html" title="class in org.geotools.data">FeatureLockException</A></CODE> - If transaction does not have sufficient authroization</DL></DD></DL><HR><A NAME="checkedWriter(org.geotools.data.FeatureWriter, org.geotools.data.Transaction)"><!-- --></A><H3>checkedWriter</H3><PRE>public <A HREF="../../../org/geotools/data/FeatureWriter.html" title="interface in org.geotools.data">FeatureWriter</A> <B>checkedWriter</B>(<A HREF="../../../org/geotools/data/FeatureWriter.html" title="interface in org.geotools.data">FeatureWriter</A> writer, <A HREF="../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> transaction)</PRE><DL><DD>Provides a wrapper on the provided writer that checks locks.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - FeatureWriter requiring access control<DD><CODE>transaction</CODE> - Transaction being used<DT><B>Returns:</B><DD>FeatureWriter with lock checking</DL></DD></DL><HR><A NAME="unLockFeatureID(java.lang.String, java.lang.String, org.geotools.data.Transaction, org.geotools.data.FeatureLock)"><!-- --></A><H3>unLockFeatureID</H3><PRE>public void <B>unLockFeatureID</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> typeName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> featureID, <A HREF="../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> transaction, <A HREF="../../../org/geotools/data/FeatureLock.html" title="interface in org.geotools.data">FeatureLock</A> featureLock) 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>Release indicated featureID, must have correct authroization.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/data/LockingManager.html#unLockFeatureID(java.lang.String, java.lang.String, org.geotools.data.Transaction, org.geotools.data.FeatureLock)">unLockFeatureID</A></CODE> in interface <CODE><A HREF="../../../org/geotools/data/LockingManager.html" title="interface in org.geotools.data">LockingManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - <DD><CODE>featureID</CODE> - <DD><CODE>transaction</CODE> - <DD><CODE>featureLock</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> - If lock could not be released</DL></DD></DL><HR><A NAME="refresh(java.lang.String, org.geotools.data.Transaction)"><!-- --></A><H3>refresh</H3><PRE>public boolean <B>refresh</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> authID, <A HREF="../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> transaction) 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>Refresh locks held by the authorization <code>authID</code>. <p> (remember that the lock may have expired) </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/data/LockingManager.html#refresh(java.lang.String, org.geotools.data.Transaction)">refresh</A></CODE> in interface <CODE><A HREF="../../../org/geotools/data/LockingManager.html" title="interface in org.geotools.data">LockingManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>authID</CODE> - Authorization identifing Lock to refresh<DD><CODE>transaction</CODE> - Transaction with authorization for lockID<DT><B>Returns:</B><DD><code>true</code> if lock was found and refreshed<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 transaction not authorized to refresh authID<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> - If authID or transaction not provided</DL></DD></DL><HR><A NAME="release(java.lang.String, org.geotools.data.Transaction)"><!-- --></A><H3>release</H3><PRE>public boolean <B>release</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> authID, <A HREF="../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> transaction) 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>Release locks held by the authorization <code>authID</code>. <p> (remember that the lock may have expired) </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/data/LockingManager.html#release(java.lang.String, org.geotools.data.Transaction)">release</A></CODE> in interface <CODE><A HREF="../../../org/geotools/data/LockingManager.html" title="interface in org.geotools.data">LockingManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>authID</CODE> - Authorization identifing Lock to release<DD><CODE>transaction</CODE> - Transaction with authorization for lockID<DT><B>Returns:</B><DD><code>true</code> if lock was found and released<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 transaction not authorized to release authID<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> - If authID or transaction not provided</DL></DD></DL><HR><A NAME="exists(java.lang.String)"><!-- --></A><H3>exists</H3><PRE>public boolean <B>exists</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> authID)</PRE><DL><DD>Implment lockExists. <p> Remeber lock may have expired. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/data/LockingManager.html#exists(java.lang.String)">exists</A></CODE> in interface <CODE><A HREF="../../../org/geotools/data/LockingManager.html" title="interface in org.geotools.data">LockingManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>authID</CODE> - <DT><B>Returns:</B><DD>true if lock exists for authID<DT><B>See Also:</B><DD><CODE>org.geotools.data.LockingManager#lockExists(java.lang.String)</CODE></DL></DD></DL><HR><A NAME="isLocked(java.lang.String, java.lang.String)"><!-- --></A><H3>isLocked</H3><PRE>public boolean <B>isLocked</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> typeName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> featureID)</PRE><DL><DD>Used by test cases<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - <DD><CODE>featureID</CODE> - <DT><B>Returns:</B><DD>Return if feature is currently locked</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/InProcessLockingManager.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/FilteringFeatureWriter.html" title="class in org.geotools.data"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/data/JoiningAttributeReader.html" title="class 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="InProcessLockingManager.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -