public void setData(HiveLockObjectData data) {
    this.data = data;
  }
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