/** * Converts the provided set of names to an array of identifiers of the * provided type * @param columnNames * @param id */ public static DBIdentifier[] toArray(String[] columnNames, DBIdentifierType id) { return toArray(columnNames, id, false); }
/** * Converts the provided set of names to an array of identifiers of the * provided type * @param columnNames * @param id * @return */ public static DBIdentifier[] toArray(String[] columnNames, DBIdentifierType id) { return toArray(columnNames, id, false); }
/** * Converts the provided set of names to an array of identifiers of the * provided type * @param columnNames * @param id */ public static DBIdentifier[] toArray(String[] columnNames, DBIdentifierType id) { return toArray(columnNames, id, false); }
/** * This method will only be called when the database supports * getGeneratedKeys. */ protected List<Object> getGeneratedKeys(PreparedStatement stmnt, String[] autoAssignColNames) throws SQLException { return getGeneratedKeys(stmnt, DBIdentifier.toArray(autoAssignColNames, DBIdentifierType.COLUMN)); }
/** * @deprecated */ public void generateSchemas(String[] schemasAndTables) throws SQLException { generateSchemas(DBIdentifier.toArray(schemasAndTables, DBIdentifierType.TABLE)); }
protected List<Object> populateAutoAssignCols(PreparedStatement stmnt, Column[] autoAssign, String[] autoAssignColNames, RowImpl row) throws SQLException { return populateAutoAssignCols(stmnt, autoAssign, DBIdentifier.toArray(autoAssignColNames, DBIdentifierType.COLUMN), row); }
/** * @deprecated * @param cols */ public void setUniqueColumns(String[] cols) { setUniqueColumnsIdentifier(DBIdentifier.toArray(cols, DBIdentifierType.COLUMN)); }
protected List<Object> populateAutoAssignCols(PreparedStatement stmnt, Column[] autoAssign, String[] autoAssignColNames, RowImpl row) throws SQLException { return populateAutoAssignCols(stmnt, autoAssign, DBIdentifier.toArray(autoAssignColNames, DBIdentifierType.COLUMN), row); }
/** * @deprecated */ public void generateSchemas(String[] schemasAndTables) throws SQLException { generateSchemas(DBIdentifier.toArray(schemasAndTables, DBIdentifierType.TABLE)); }
/** * @deprecated */ public void generateSchemas(String[] schemasAndTables) throws SQLException { generateSchemas(DBIdentifier.toArray(schemasAndTables, DBIdentifierType.TABLE)); }
protected void setObjectId(List vals, Column[] autoAssign, String[] autoAssignColNames, RowImpl row) throws SQLException{ setObjectId(vals, autoAssign, DBIdentifier.toArray(autoAssignColNames, DBIdentifierType.COLUMN), row); }
/** * @deprecated * @param cols */ public void setUniqueColumns(String[] cols) { setUniqueColumnsIdentifier(DBIdentifier.toArray(cols, DBIdentifierType.COLUMN)); }
protected List<Object> populateAutoAssignCols(PreparedStatement stmnt, Column[] autoAssign, String[] autoAssignColNames, RowImpl row) throws SQLException { return populateAutoAssignCols(stmnt, autoAssign, DBIdentifier.toArray(autoAssignColNames, DBIdentifierType.COLUMN), row); }
/** * This method will only be called when the database supports * getGeneratedKeys. */ protected List<Object> getGeneratedKeys(PreparedStatement stmnt, String[] autoAssignColNames) throws SQLException { return getGeneratedKeys(stmnt, DBIdentifier.toArray(autoAssignColNames, DBIdentifierType.COLUMN)); }
/** * @deprecated * @param cols */ public void setUniqueColumns(String[] cols) { setUniqueColumnsIdentifier(DBIdentifier.toArray(cols, DBIdentifierType.COLUMN)); }
/** * This method will only be called when the database supports * getGeneratedKeys. */ protected List<Object> getGeneratedKeys(PreparedStatement stmnt, String[] autoAssignColNames) throws SQLException { return getGeneratedKeys(stmnt, DBIdentifier.toArray(autoAssignColNames, DBIdentifierType.COLUMN)); }
/** * @deprecated * @param cols */ public void setUniqueColumns(String[] cols) { setUniqueColumnsIdentifier(DBIdentifier.toArray(cols, DBIdentifierType.COLUMN)); }
/** * @param name * @param tableNames * @deprecated */ public void generateSchema(String name, String[] tableNames) throws SQLException { generateSchema(DBIdentifier.newSchema(name), DBIdentifier.toArray(tableNames, DBIdentifierType.TABLE)); }
/** * Generate index information for the given schema. This method * must be called in addition to {@link #generateSchema}. It should * only be called after all schemas are generated. The schema name and * tables array can be null to indicate that indexes should be generated * for all schemas and/or tables. * @deprecated */ public void generateIndexes(String schemaName, String[] tableNames) throws SQLException { generateIndexes(DBIdentifier.newSchema(schemaName), DBIdentifier.toArray(tableNames, DBIdentifierType.TABLE)); }
/** * Generate foreign key information for the given schema. This method * must be called in addition to {@link #generateSchema}. It should * only be called after all schemas are generated. The schema name and * tables array can be null to indicate that indexes should be generated * for all schemas and/or tables. * @deprecated */ public void generateForeignKeys(String schemaName, String[] tableNames) throws SQLException { generateForeignKeys(DBIdentifier.newSchema(schemaName), DBIdentifier.toArray(tableNames, DBIdentifierType.TABLE)); }