@Override public String getCatalog() throws SQLException { return targetConnection.getCatalog(); }
@Override public String getCatalog() throws SQLException { return raw.getCatalog(); }
@Override public String getCatalog() throws SQLException { return connection.getCatalog(); }
@Override public String getCatalog() throws SQLException { return raw.getCatalog(); }
@Override public String getCatalog() throws SQLException { checkState(); return conn.getCatalog(); }
/** {@inheritDoc} */ @Override public String getCatalog() throws SQLException { return conn.getCatalog(); }
@Override public List<String> listDatabases() throws SQLException { List<String> ret = new ArrayList<>(); try (Connection con = SqlUtil.getConnection(dbconf)) { ret.add(con.getCatalog()); } return ret; }
@Override protected ResultSet getTables(Connection connection, String schemaName, String tableName) throws SQLException { DatabaseMetaData metadata = connection.getMetaData(); String escape = metadata.getSearchStringEscape(); return metadata.getTables( connection.getCatalog(), escapeNamePattern(schemaName, escape), escapeNamePattern(tableName, escape), new String[] {"TABLE", "VIEW", "MATERIALIZED VIEW", "FOREIGN TABLE"}); }
protected ResultSet getTables(Connection connection, String schemaName, String tableName) throws SQLException { DatabaseMetaData metadata = connection.getMetaData(); String escape = metadata.getSearchStringEscape(); return metadata.getTables( connection.getCatalog(), escapeNamePattern(schemaName, escape), escapeNamePattern(tableName, escape), new String[] {"TABLE", "VIEW"}); }
@Override public String connection_getCatalog(ConnectionProxy connection) throws SQLException { if (this.pos < filterSize) { return nextFilter() .connection_getCatalog(this, connection); } return connection.getRawObject() .getCatalog(); }
public boolean importedkeys(String line) throws Exception { return metadata("getImportedKeys", new String[] { beeLine.getConnection().getCatalog(), null, arg1(line, "table name"),}); }
public boolean indexes(String line) throws Exception { return metadata("getIndexInfo", new String[] { beeLine.getConnection().getCatalog(), null, arg1(line, "table name"), false + "", true + ""}); }
public boolean primarykeys(String line) throws Exception { return metadata("getPrimaryKeys", new String[] { beeLine.getConnection().getCatalog(), null, arg1(line, "table name"),}); }
@Override public String getCatalog() throws SQLException { TestObjectStoreInitRetry.debugTrace(); return _baseConn.getCatalog(); }
public boolean procedures(String line) throws Exception { return metadata("getProcedures", new String[] { beeLine.getConnection().getCatalog(), null, arg1(line, "procedure name pattern", "%"),}); }
public boolean tables(String line) throws Exception { return metadata("getTables", new String[] { beeLine.getConnection().getCatalog(), null, arg1(line, "table name", "%"), null}); }
public boolean columns(String line) throws Exception { return metadata("getColumns", new String[] { beeLine.getConnection().getCatalog(), null, arg1(line, "table name"), "%"}); }
ResultSet getColumns(String table) throws SQLException { if (!(assertConnection())) { return null; } return getDatabaseConnection().getDatabaseMetaData().getColumns( getDatabaseConnection().getDatabaseMetaData().getConnection().getCatalog(), null, table, "%"); }
ResultSet getTables() throws SQLException { if (!(assertConnection())) { return null; } return getDatabaseConnection().getDatabaseMetaData().getTables( getDatabaseConnection().getDatabaseMetaData().getConnection().getCatalog(), null, "%", new String[] {"TABLE"}); }
@BeforeClass public void setUp() throws Exception { database = new TestingDatabase(); catalogName = database.getConnection().getCatalog(); jdbcClient = database.getJdbcClient(); }