public String getName() {
    if (pathNames == null) {
      return null;
    }
    StringBuilder builder = new StringBuilder();
    for (int i = 0; i < pathNames.length; i++) {
      if (i > 0) {
        builder.append('/');
      }
      builder.append(pathNames[i]);
    }
    return builder.toString();
  }
Creates a locking object for a table (when partition spec is not provided)
or a table partition
@param hiveDB    an object to communicate with the metastore
@param tableName the table to create the locking object on
@param partSpec  the spec of a partition to create the locking object on
@return  the locking object
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java