@Test public void testGetTable() throws SQLException { String catalog = "testSchema"; String table = "testTable"; ResultSet rs = mock(ResultSet.class); when(dbmd.getTables(catalog, null, table, null)).thenReturn(rs); ResultSet result = jdbcMetadata.getTable(dbmd, catalog, table); verify(dbmd, times(1)).getTables(catalog, null, table, null); Assert.assertEquals(rs, result); }
@Override public ResultSet getTable(final DatabaseMetaData dbmd, String catalog, String table) throws SQLException { return dbmd.getTables(catalog, null, table, null); }
MySQLJdbcMetadata extends DefaultJdbcMetadata { @Override public ResultSet getTable(final DatabaseMetaData dbmd, String catalog, String table) throws SQLException { return dbmd.getTables(catalog, null, table, null); } }
MySQLJdbcMetadata extends DefaultJdbcMetadata { @Override public ResultSet getTable(final DatabaseMetaData dbmd, String catalog, String table) throws SQLException { return dbmd.getTables(catalog, null, table, null); } MySQLJdbcMetadata(DBConnConf dbConnConf); }
MySQLJdbcMetadata extends DefaultJdbcMetadata { @Override public ResultSet getTable(final DatabaseMetaData dbmd, String catalog, String table) throws SQLException { return dbmd.getTables(catalog, null, table, null); } MySQLJdbcMetadata(DBConnConf dbConnConf); @Override List<String> listDatabases(); @Override List<String> listTables(String catalog); @Override ResultSet listColumns(final DatabaseMetaData dbmd, String catalog, String table); @Override ResultSet getTable(final DatabaseMetaData dbmd, String catalog, String table); @Override SourceDialect getDialect(); }
MySQLJdbcMetadata extends DefaultJdbcMetadata { @Override public ResultSet getTable(final DatabaseMetaData dbmd, String catalog, String table) throws SQLException { return dbmd.getTables(catalog, null, table, null); } MySQLJdbcMetadata(DBConnConf dbConnConf); @Override List<String> listDatabases(); @Override List<String> listTables(String catalog); @Override ResultSet listColumns(final DatabaseMetaData dbmd, String catalog, String table); @Override ResultSet getTable(final DatabaseMetaData dbmd, String catalog, String table); @Override SourceDialect getDialect();  }