/** * Constructor. * * @param name the schema name, if any * @param group the schema's owning group * @deprecated */ public Schema(String name, SchemaGroup group) { this(DBIdentifier.newSchema(name), group); }
/** * The column's schema name. You can only call this method on columns * whose table object is not set. * @deprecated use setSchemaIdentifier(DBIdentifier name) */ public void setSchemaName(String name) { setSchemaIdentifier(DBIdentifier.newSchema(name)); }
/** * The sequence's schema name. You can only call this method on sequences * whose schema object is not set. * @deprecated */ public void setSchemaName(String name) { setSchemaIdentifier(DBIdentifier.newSchema(name)); }
/** * @deprecated * @param name * @return */ public Schema addSchema(String name) { return addSchema(DBIdentifier.newSchema(name)); }
public boolean isSystemSequence(String name, String schema, boolean targetSchema) { return isSystemSequence(DBIdentifier.newSequence(name), DBIdentifier.newSchema(schema), targetSchema); }
/** * Generates table primary keys. * @deprecated */ public void generatePrimaryKeys(String schemaName, String tableName, Connection conn, DatabaseMetaData meta) throws SQLException { generatePrimaryKeys(DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), conn, meta); }
public void setConfiguration(Configuration conf) { JDBCConfiguration jconf = (JDBCConfiguration) conf; _dict = jconf.getDBDictionaryInstance(); _schema = DBIdentifier.newSchema(jconf.getSchema()); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(String schemaName) { if (schemaName == null) schemaName = conf.getSchema(); return convertSchemaCase(DBIdentifier.newSchema(schemaName)); }
@Override protected String getSequencesSQL(String schemaName, String sequenceName) { return getSequencesSQL(DBIdentifier.newSchema(schemaName), DBIdentifier.newSequence(sequenceName)); }
/** * Adds all sequences matching the given name pattern to the schema. * @deprecated */ public void generateSequences(String schemaName, String sequenceName, Connection conn, DatabaseMetaData meta) throws SQLException { generateSequences(DBIdentifier.newSchema(schemaName), DBIdentifier.newSequence(sequenceName), conn, meta); }
/** * Generates table foreign keys. */ public void generateForeignKeys(String schemaName, String tableName, Connection conn, DatabaseMetaData meta) throws SQLException { generateForeignKeys(DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), conn, meta); }
/** * Return Firebird-specific statement to select the list of sequences. */ @Override protected String getSequencesSQL(String schemaName, String sequenceName) { return getSequencesSQL(DBIdentifier.newSchema(schemaName), DBIdentifier.newSequence(sequenceName)); }
@Override protected String normalizeSchemaName(String schName) { if (StringUtil.isEmpty(schName)) { return schName; } return DBIdentifier.newSchema(schName, delimit()).getName(); }
@Override protected String normalizeSchemaName(String schName) { if (StringUtil.isEmpty(schName)) { return schName; } return DBIdentifier.newSchema(schName, delimit()).getName(); }
/** * Reflect on the schema to find tables matching the given name pattern. * @deprecated */ public Table[] getTables(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn) throws SQLException { return getTables(meta, DBIdentifier.newCatalog(catalog), DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), conn); }
/** * Reflect on the schema to find sequences matching the given name pattern. * Returns an empty array by default, as there is no standard way to * retrieve a list of sequences. * @deprecated */ public Sequence[] getSequences(DatabaseMetaData meta, String catalog, String schemaName, String sequenceName, Connection conn) throws SQLException { return getSequences(meta, DBIdentifier.newCatalog(catalog), DBIdentifier.newSchema(schemaName), DBIdentifier.newSequence(sequenceName), conn); }
/** * Reflect on the schema to return full foreign keys imported by the given * table pattern. * @deprecated */ public ForeignKey[] getImportedKeys(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn, boolean partialKeys) throws SQLException { return getImportedKeys(meta, DBIdentifier.newCatalog(catalog), DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), conn, partialKeys); }
@Override public ForeignKey[] getImportedKeys(DatabaseMetaData meta, String catalog, String schemaName, String tableName, Connection conn, boolean partialKeys) throws SQLException { return getImportedKeys(meta, DBIdentifier.newCatalog(catalog), DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), conn, partialKeys); }
@Override public Column[] getColumns(DatabaseMetaData meta, String catalog, String schemaName, String tableName, String columnName, Connection conn) throws SQLException { return getColumns(meta, DBIdentifier.newCatalog(catalog), DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), DBIdentifier.newColumn(columnName), conn); }
public Column[] getColumns(DatabaseMetaData meta, String catalog, String schemaName, String tableName, String columnName, Connection conn) throws SQLException { return getColumns(meta, DBIdentifier.newCatalog(catalog), DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), DBIdentifier.newColumn(columnName),conn); }