|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.system.AppLockMgr
public class AppLockMgr
ESRI application lock manager.
The AppLockMgr coclass is used to control locks on shapefiles and coverages, so no two users can make changes to the same dataset. It is pretty much the same idea as with relational database’s lock to prevent multiple users from making conflicting modifications to a set of data. Lock types are specified by esriLockMgrType enumerator.
| Constructor Summary | |
|---|---|
AppLockMgr()
Constructs a AppLockMgr using ArcGIS Engine. |
|
AppLockMgr(Object obj)
Construct a AppLockMgr using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
add(IAfLockMgr pAfLockMgr,
int pID,
int[] cookie)
Adds an application reference to the lock manager. |
void |
checkLock(int cookie,
String fileName,
int lockMgrType)
Checks for a lock within the lock manager. |
void |
clearLock(int cookie,
String fileName,
int lockMgrType)
Clears a lock from within the lock manager. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getCount()
The current count of locks within the lock manager. |
int |
hashCode()
the hashcode for this object |
void |
isGlobalAlive(boolean[] pbGlobalAlive)
Indicates if the global lock manager is active. |
void |
remove(int cookie)
Removes a lock reference from the lock manager. |
void |
setLock(int cookie,
String fileName,
int lockMgrType)
Places a lock within the lock manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public AppLockMgr()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public AppLockMgr(Object obj)
throws IOException
obj to AppLockMgr.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
AppLockMgr theAppLockMgr = (AppLockMgr) obj;| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void add(IAfLockMgr pAfLockMgr,
int pID,
int[] cookie)
throws IOException,
AutomationException
add in interface IAppLockMgrpAfLockMgr - A reference to a com.esri.arcgis.system.IAfLockMgr (in)pID - The pID (in)cookie - The cookie (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remove(int cookie)
throws IOException,
AutomationException
remove in interface IAppLockMgrcookie - The cookie (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCount()
throws IOException,
AutomationException
getCount in interface IAppLockMgrIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isGlobalAlive(boolean[] pbGlobalAlive)
throws IOException,
AutomationException
isGlobalAlive in interface IAppLockMgrpbGlobalAlive - The pbGlobalAlive (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLock(int cookie,
String fileName,
int lockMgrType)
throws IOException,
AutomationException
setLock in interface IAppLockMgrcookie - The cookie (in)fileName - The fileName (in)lockMgrType - A com.esri.arcgis.system.esriLockMgrType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void checkLock(int cookie,
String fileName,
int lockMgrType)
throws IOException,
AutomationException
checkLock in interface IAppLockMgrcookie - The cookie (in)fileName - The fileName (in)lockMgrType - A com.esri.arcgis.system.esriLockMgrType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearLock(int cookie,
String fileName,
int lockMgrType)
throws IOException,
AutomationException
clearLock in interface IAppLockMgrcookie - The cookie (in)fileName - The fileName (in)lockMgrType - A com.esri.arcgis.system.esriLockMgrType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||