public String getDisplayName() {
    if (this.pathNames == null) {
      return null;
    }
    if (pathNames.length == 1) {
      return pathNames[0];
    }
    else if (pathNames.length == 2) {
      return pathNames[0] + "@" + pathNames[1];
    }

    String ret = pathNames[0] + "@" + pathNames[1] + "@";
    boolean first = true;
    for (int i = 2; i < pathNames.length; i++) {
      if (!first) {
        ret = ret + "/";
      } else {
        first = false;
      }
      ret = ret + pathNames[i];
    }
    return ret;
  }
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