public class DbConstraintNormalise extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
lowerCaseColumns |
protected boolean |
lowerCaseTables |
protected String[] |
quotedIdentifiers |
| Constructor and Description |
|---|
DbConstraintNormalise() |
DbConstraintNormalise(boolean lowerCaseTables,
boolean lowerCaseColumns) |
| Modifier and Type | Method and Description |
|---|---|
String |
lowerColumnName(String name)
Lower case the column name checking for quoted identifiers.
|
String |
lowerTableName(String tableName)
Lower case the table name checking for quoted identifiers.
|
String |
normaliseColumn(String columnName)
Normalise the column name by removing any quoted identifier characters.
|
String |
normaliseTable(String tableName)
Normalise the table name by trimming catalog and schema and removing any
quoted identifier characters (",',[,] etc).
|
boolean |
notQuoted(String tableName)
Trim off the platform quoted identifier quotes like [ ' and ".
|
String |
trimQuotes(String tableName)
Trim off the platform quoted identifier quotes like [ ' and ".
|
protected final String[] quotedIdentifiers
protected final boolean lowerCaseTables
protected final boolean lowerCaseColumns
public DbConstraintNormalise()
public DbConstraintNormalise(boolean lowerCaseTables, boolean lowerCaseColumns)
public String normaliseTable(String tableName)
public String normaliseColumn(String columnName)
public String lowerTableName(String tableName)
public String lowerColumnName(String name)
public boolean notQuoted(String tableName)
public String trimQuotes(String tableName)
Copyright © 2016. All rights reserved.