public List<String> getTablesForDb(String database, String tablePattern)
      throws HiveException {
    return getTablesByType(database, tablePattern, null);
  }
Returns all existing tables from the given database which match the given
pattern. The matching occurs as per Java regular expressions

@param database
         the database name
@param tablePattern
         java re pattern
@return list of table names
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java