## Uses of Class
de.esprit.netsuite.server.lock.ResourceLock

- Packages that use ResourceLock
  Package | Description
  --- | ---
  de.esprit.netsuite.client.activity.lock | Contains Lock activity monitoring classes
  de.esprit.netsuite.client.gui.remote | Contains classes used to perform a remote table editing
  de.esprit.netsuite.netdata.agent | Contains base classes for implementing custom network agents
  de.esprit.netsuite.netdata.agent.common | Contains network agents for common use
  de.esprit.netsuite.netdata.agent.internal.srvlock | Contains Agents dealing with ResourceLocks
  de.esprit.netsuite.netdata.command | Contains a collection of standard ClientCommands
  de.esprit.netsuite.netdata.event | Contains serializable events that are sent by the server
  de.esprit.netsuite.server.batch | Contains classes that implement and manage the available server processes
  de.esprit.netsuite.server.db | Contains classes for server side database configuration.
  de.esprit.netsuite.server.lock | Contains classes for managing temporary edit locks on server resources

- - ### Uses of ResourceLock in de.esprit.netsuite.client.activity.lock

    Methods in de.esprit.netsuite.client.activity.lock that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | ActiveLocksListModel.`findLock(PrimaryKey pk)`
    `ResourceLock` | ActiveLocksListModel.`findLock(java.lang.String resourceName)`

    Methods in de.esprit.netsuite.client.activity.lock that return types with arguments of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<ResourceLock>` | ClientLockList.`getCurrentLocks()`
    `java.util.List<ResourceLock>` | ActiveLocksListModel.`getCurrentLocks()`

    Methods in de.esprit.netsuite.client.activity.lock with parameters of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `void` | ActiveLocksListModel.`addLock(ResourceLock lock)`
    `boolean` | ClientLockList.`releaseLock(ResourceLock lock)` Releases the lock on server side and if successful removes it from the clients locklist
    `boolean` | ActiveLocksListModel.`releaseLock(ResourceLock lock)` Releases the lock on server side and if successful removes it from the clients locklist
    `void` | ActiveLocksListModel.`removeLock(ResourceLock lock)` This method should NOT be called by user code directly

  - ### Uses of ResourceLock in de.esprit.netsuite.client.gui.remote

    Methods in de.esprit.netsuite.client.gui.remote that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | RemoteTextEditorPanel.`getLock()`
    `ResourceLock` | RemoteTextEditorDialog.`getResourceLock()`

    Methods in de.esprit.netsuite.client.gui.remote with parameters of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `void` | RemoteTextEditorPanel.`setLock(ResourceLock lock)`
    `void` | RemoteTextEditorDialog.`setResourceLock(ResourceLock lock)`

  - ### Uses of ResourceLock in de.esprit.netsuite.netdata.agent

    Methods in de.esprit.netsuite.netdata.agent that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | AbstractLockableAgent.`acquireAsExclusiveLock(ResourceLock lock)`
    `ResourceLock` | AbstractLockableAgent.`getLock()`
    `ResourceLock` | AbstractLockableAgent.`lockDataSource(java.lang.String dataSourceName)`
    `ResourceLock` | AbstractLockableAgent.`lockDataSourcePool()`

    Methods in de.esprit.netsuite.netdata.agent with parameters of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | AbstractLockableAgent.`acquireAsExclusiveLock(ResourceLock lock)`
    `void` | AbstractLockableAgent.`releaseLock(ResourceLock lock)`
    `void` | AbstractLockableAgent.`setLock(ResourceLock lock)`

  - ### Uses of ResourceLock in de.esprit.netsuite.netdata.agent.common

    Constructors in de.esprit.netsuite.netdata.agent.common with parameters of type ResourceLock
    Constructor and Description
    `FileStoreAgent(C clientCtx, ResourceLock lock, java.lang.String data)`

  - ### Uses of ResourceLock in de.esprit.netsuite.netdata.agent.internal.srvlock

    Methods in de.esprit.netsuite.netdata.agent.internal.srvlock that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock[]` | LockFindAgent.`getFoundLocks()`

    Methods in de.esprit.netsuite.netdata.agent.internal.srvlock that return types with arguments of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<ResourceLock>` | LockRetriggerAgent.`getStaleLocks()`

    Methods in de.esprit.netsuite.netdata.agent.internal.srvlock with parameters of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `void` | LockRetriggerAgent.`addLock(ResourceLock lock)`

    Constructors in de.esprit.netsuite.netdata.agent.internal.srvlock with parameters of type ResourceLock
    Constructor and Description
    `LockReleaseAgent(ClientContext clientCtx, ResourceLock... locks)`
    `LockRetriggerAgent(ClientContext clientCtx, ResourceLock lock)`

    Constructor parameters in de.esprit.netsuite.netdata.agent.internal.srvlock with type arguments of type ResourceLock
    Constructor and Description
    `LockRetriggerAgent(ClientContext clientCtx, java.util.List<ResourceLock> locks)`

  - ### Uses of ResourceLock in de.esprit.netsuite.netdata.command

    Methods in de.esprit.netsuite.netdata.command that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | LockReleaseCommand.`getLock()`

    Constructors in de.esprit.netsuite.netdata.command with parameters of type ResourceLock
    Constructor and Description
    `LockReleaseCommand(SessionId fromSessId, ResourceLock lock)` Force the lock owner to release the given lock
    `LockTimedOutCommand(SessionId fromSessId, ResourceLock lock)`

  - ### Uses of ResourceLock in de.esprit.netsuite.netdata.event

    Methods in de.esprit.netsuite.netdata.event that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | ResourceLockStatusEvent.`getLock()`
    `ResourceLock` | ResourceLockEvent.`getLock()`

    Constructors in de.esprit.netsuite.netdata.event with parameters of type ResourceLock
    Constructor and Description
    `ResourceLockEvent(ResourceLock lock, LockAction action)`
    `ResourceLockStatusEvent(ResourceLock lock, LockAction action)`

  - ### Uses of ResourceLock in de.esprit.netsuite.server.batch

    Methods in de.esprit.netsuite.server.batch that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | AbstractBatchTask.`lockDataSource(java.lang.String dataSourceName)`

    Methods in de.esprit.netsuite.server.batch with parameters of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractBatchTask.`releaseLock(ResourceLock lock)`

  - ### Uses of ResourceLock in de.esprit.netsuite.server.db

    Methods in de.esprit.netsuite.server.db that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | DatabaseManager.`lockExclusive(SessionId sessId)`
    `ResourceLock` | DatabaseManager.`lockShared(SessionId sessId)`

    Methods in de.esprit.netsuite.server.db with parameters of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `void` | DatabaseManager.`releaseLock(SessionId sessId, ResourceLock lock)`

  - ### Uses of ResourceLock in de.esprit.netsuite.server.lock

    Methods in de.esprit.netsuite.server.lock that return ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | ResourceLockManager.`acquireAsExclusiveLock(ResourceLock myLock)` Acquires and returns a new EXCLUSIVE lock for the given SHARED lock.
    `ResourceLock` | ResourceLockManager.`findResourceLock(LockType lockType, ResourceType rscType, java.lang.String resourceName)` Finds a particular lock by specifying all its parameters
    `ResourceLock` | ResourceLockManager.`findResourceLock(ResourceType rscType, java.lang.String rscName)` Scans for all lockTypes and returns the strongest type found
    `ResourceLock[]` | ResourceLockManager.`findResourceLocks(LockType lockType, ResourceType rscType)` Finds all matching locks either by `LockType` or `ResourceType` or both.
    `ResourceLock` | ResourceLockHolder.`getLock()` Returns the lock that is hold
    `ResourceLock[]` | ResourceLockManager.`getLocks()`
    `ResourceLock` | ResourceLockManager.`lockDataSource(SessionId sessionId, java.lang.String dataSourceName)` Fetches an exclusive lock for the given data-source.
    `ResourceLock` | ResourceLockManager.`lockDataSourcePoolExclusive(SessionId sessionId)` Fetches an exclusive lock for the data-source pool.
    `ResourceLock` | ResourceLockManager.`lockDataSourcePoolShared(SessionId sessionId)` Fetches a shared lock for the data-source pool.
    `ResourceLock` | ResourceLockManager.`lockExclusive(SessionId sessionId, ResourceType rscType, java.lang.String rscName, java.lang.String reason)`
    `ResourceLock` | ResourceLockManager.`lockShared(SessionId sessionId, ResourceType rscType, java.lang.String rscName, java.lang.String reason)`

    Methods in de.esprit.netsuite.server.lock with parameters of type ResourceLock
    Modifier and Type | Method and Description
    --- | ---
    `ResourceLock` | ResourceLockManager.`acquireAsExclusiveLock(ResourceLock myLock)` Acquires and returns a new EXCLUSIVE lock for the given SHARED lock.
    `void` | ResourceLockManager.`releaseLock(SessionId sessionId, ResourceLock myLock)` Releases the given lock.
    `void` | ResourceLockManager.`retriggerLock(ResourceLock myLock)`
    `void` | ResourceLockHolder.`setLock(ResourceLock lock)` Sets the lock in this LockHolder instance

    Constructors in de.esprit.netsuite.server.lock with parameters of type ResourceLock
    Constructor and Description
    `NotLockOwnerException(ResourceLock lock)`
    `ResourceLock(ResourceLockManager rscList, ResourceLock lock)` This is a copy-constructor to create an EXCLUSIVE version of a SHARED lock
    `ResourceLockedException(ResourceLock lock)`
    `StaleResourceLockException(ResourceLock lock)`

Copyright © 2014 EsprIT-Systems. All Rights Reserved.