void setConnection(Connection conn) throws SQLException { this.conn = conn; if (conn == null) { meta = null; } else { meta = conn.getMetaData(); } contents = new DbContents(); }
DbSchema(DbContents contents, String name, boolean isDefault) throws SQLException { this.contents = contents; this.name = name; this.quotedName = contents.quoteIdentifier(name); this.isDefault = isDefault; }
isFirebird = url.startsWith("jdbc:firebirdsql:"); String defaultSchemaName = getDefaultSchemaName(meta); String[] schemaNames = getSchemaNames(meta); schemas = new DbSchema[schemaNames.length]; for (int i = 0; i < schemaNames.length; i++) {
boolean isH2 = false; try { contents.readContents(session.getMetaData()); session.loadBnf(); Connection conn = session.getConnection();
DbTableOrView(DbSchema schema, ResultSet rs) throws SQLException { this.schema = schema; name = rs.getString("TABLE_NAME"); String type = rs.getString("TABLE_TYPE"); isView = "VIEW".equals(type); quotedName = schema.contents.quoteIdentifier(name); }