/** * Constructor. * * @param name the sequence name * @param schema the sequence schema * @deprecated */ public Sequence(String name, Schema schema) { this(DBIdentifier.newSequence(name), schema); }
/** * The sequence name. Defaults to <code>OPENJPA_SEQUENCE</code>. */ public void setSequence(String seqName) { _seqName = DBIdentifier.newSequence(seqName); }
/** * Constructor. * * @param name the sequence name * @param schema the sequence schema * @deprecated */ public Sequence(String name, Schema schema) { this(DBIdentifier.newSequence(name), schema); }
/** * Find the sequence with the given name in the group, using '.' as the * catalog separator. Returns null if no sequence found. * @deprecated */ public Sequence findSequence(String name) { if (name == null) return null; return findSequence(DBIdentifier.newSequence(name)); }
/** * Set the name of the sequence. This method can only be called on * sequences that are not part of a schema. * @deprecated */ public void setName(String name) { setIdentifier(DBIdentifier.newSequence(name)); }
@Override protected String normalizeSequenceName(String seqName) { if (StringUtils.isEmpty(seqName)) { return seqName; } return DBIdentifier.newSequence(seqName, delimit()).getName(); }
/** * Make any necessary changes to the given sequence name to make it valid * for the current DB. * @deprecated */ public String getValidSequenceName(String name, Schema schema) { return getValidSequenceName(DBIdentifier.newSequence(name), schema).getName(); }
/** * Make any necessary changes to the given sequence name to make it valid * for the current DB. * @deprecated */ public String getValidSequenceName(String name, Schema schema) { return getValidSequenceName(DBIdentifier.newSequence(name), schema).getName(); }
public boolean isSystemSequence(String name, String schema, boolean targetSchema) { return isSystemSequence(DBIdentifier.newSequence(name), DBIdentifier.newSchema(schema), targetSchema); }
/** * 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); }
public boolean isSystemSequence(String name, String schema, boolean targetSchema) { return isSystemSequence(DBIdentifier.newSequence(name), DBIdentifier.newSchema(schema), targetSchema); }
/** * Find the sequence with the given name in the group, using '.' as the * catalog separator. Returns null if no sequence found. * @deprecated */ public Sequence findSequence(Schema inSchema, String name) { if (name == null) return null; return findSequence(inSchema, QualifiedDBIdentifier.getPath(DBIdentifier.newSequence(name))); }
@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); }
/** * 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)); }
/** * Make any necessary changes to the given sequence name to make it valid * for the current DB. * @deprecated */ public String getValidSequenceName(String name, Schema schema) { return getValidSequenceName(DBIdentifier.newSequence(name), schema).getName(); }
/** * Find the sequence with the given name in the group, using '.' as the * catalog separator. Returns null if no sequence found. * @deprecated */ public Sequence findSequence(Schema inSchema, String name) { if (name == null) return null; return findSequence(inSchema, QualifiedDBIdentifier.getPath(DBIdentifier.newSequence(name))); }
/** * 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); }
@Override protected String normalizeSequenceName(String seqName) { if (StringUtil.isEmpty(seqName)) { return seqName; } return DBIdentifier.newSequence(seqName, delimit()).getName(); }
/** * 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); }