Method Summary |
|
public String | getCreateIndex(String indexName, String tableName, String keys) Obtains the "create index" query for the given index name.
Parameters: indexName - the name of the index. Parameters: tableName - the name of the indexed table. Parameters: keys - the comma-separated keys that build the index. |
public String | getCreateSequence(String sequenceName) Obtains the "create sequence" query for the given sequence name.
Parameters: sequenceName - the name of the sequence. |
public String | getCreateTable(String tableName, String columns) Obtains the "create table" query for the given table name.
Parameters: tableName - the name of the table. Parameters: columns - the column definitions. |
public String | getDropIndex(String indexName, String tableName) Obtains the "drop index" query for the given index name.
Parameters: indexName - the name of the index. Parameters: tableName - the name of the indexed table. |
public String | getDropSequence(String sequenceName) Obtains the "drop sequence" query for the given sequence name.
Parameters: sequenceName - name of the sequence. |
public String | getDropTable(String tableName) Obtains the "drop table" query for the given table name.
Parameters: tableName - the name of the table. |
public String | getFkReference(String key, String tableName, String keys) Obtains the "foreign key reference" query fragment.
Parameters: key - The foreign key. Parameters: tableName - The table referenced. |
public String | getInsertId(String tableName) Obtains the query for generating an identifier when emulating sequences
with tables. |
public String | getNextId(String tableName) Obtains the query for retrieving an unique id for the given table.
Parameters: tableName - the name of the table. |
public String | getPkConstraint(String key) Obtains the "primary key constraint" fragment for the given key and
"name space" name. |
protected String | replace(String original, String keyword, String replacement) Replace every occurrence of keyword by
the given value in the passed string.
Parameters: original - Original string containing the keywords to be replaced. Parameters: keyword - Keyword to be substituted. Parameters: replacement - String to put in place of keywords to produce theresult string. |
public void | setCreateIndexTemplate(String string) Sets the template for the "create index" query. |
public void | setCreateSequenceTemplate(String string) Sets the template for generating "create sequence" queries. |
public void | setCreateTableTemplate(String string) Sets the template for the "create table" query. |
public void | setDropIndexTemplate(String string) Sets the template for the "drop index" query. |
public void | setDropSequenceTemplate(String string) Sets the template for generating "drop sequence" queries. |
public void | setDropTableTemplate(String string) Sets the template for generating "drop table" queries. |
public void | setFkReferenceTemplate(String string) Sets the template for generating "foreign key reference" query
fragments. |
public void | setInsertIdTemplate(String string) Sets the template query for generating an identifier when emulating
sequences with tables. |
public void | setNextIdTemplate(String string) Sets the template for generating "next identifier" queries. |
public void | setPkConstraintTemplate(String string) Sets the template for generating "primary key constraint" query
fragments. |