public static String getQualified(String catName, String dbName, String tableName) {
    return catName + DatabaseName.CAT_DB_TABLE_SEPARATOR + dbName + DatabaseName.CAT_DB_TABLE_SEPARATOR + tableName;
  }
Get the name in db.table format, for use with stuff not yet converted to use the catalog.
storage-api/src/java/org/apache/hadoop/hive/common/TableName.java