com.h3c.dist.lock

## Class LockName

- java.lang.Object
- - com.h3c.dist.lock.LockName

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    LockNameType

      public class LockName
      extends Object
      implements Serializable

  Place holder for Lock name.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LockName(String... name)` LockNameType public constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<String>` | `getName()` Get lock full name as provided by the application.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LockName

          public LockName(String... name)

      LockNameType public constructor.
      Parameters:
        `name` - Lock name hierarchy. At least one name is mandatory. The last String is considered to be the key. Multiple strings are to for the application purpose to identify a lock uniquely. For example, in case of a row level lock of a database, the argument passed would be TBL1, ROW1. Here ROW1 would be the key name and it is a key under the table TBL1.

  - ### Method Detail

    - #### getName

          public List<String> getName()

      Get lock full name as provided by the application.
      Returns:
        List lock name string list

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.