Code example for DatabaseMetaData

Methods: getTables

0
    ResultSet rs = null;
    try 
    { 
      con = Connector.getConnection(url, username, password);
      DatabaseMetaData dbMD = con.getMetaData();
      rs = dbMD.getTables(catalog, StringUtils.upperCase(schemaPattern), StringUtils.upperCase(tableNamePattern), null);
      rsw = new ResultSetWrapper(rs);
    } 
    catch (SQLException e)
    { 
      logger.severe(e.getMessage());
    } 
    finally 
    { 
      Connector.relres(rs, con);
    } 
    return rsw;
  } 
 
  public ResultSetWrapper getColumns(String schemaPattern, String tableNamePattern)
  {