- java.lang.Object
-
- io.ebean.config.DbConstraintNormalise
-
public class DbConstraintNormalise extends Object
Used to normalise table and column names which means stripping out quoted identifier characters and any catalog or schema prefix.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanlowerCaseColumnsprotected booleanlowerCaseTablesprotected String[]quotedIdentifiers
-
Constructor Summary
Constructors Constructor Description DbConstraintNormalise()DbConstraintNormalise(boolean lowerCaseTables, boolean lowerCaseColumns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringnormaliseColumn(String columnName)Normalise the column name by removing any quoted identifier characters and formula brackets.StringnormaliseTable(String tableName)Normalise the table name by trimming catalog and schema and removing any quoted identifier characters (",',[,] etc).StringtrimQuotes(String identifier)Trim off the platform quoted identifier quotes like [ ' and ".
-
-
-
Field Detail
-
quotedIdentifiers
protected final String[] quotedIdentifiers
-
lowerCaseTables
protected final boolean lowerCaseTables
-
lowerCaseColumns
protected final boolean lowerCaseColumns
-
-
Method Detail
-
normaliseTable
public String normaliseTable(String tableName)
Normalise the table name by trimming catalog and schema and removing any quoted identifier characters (",',[,] etc).
-
normaliseColumn
public String normaliseColumn(String columnName)
Normalise the column name by removing any quoted identifier characters and formula brackets.
-
-