Package io.ebean.config
Class DbConstraintNormalise
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.
-
Constructor Summary
Constructors Constructor Description DbConstraintNormalise()DbConstraintNormalise(boolean lowerCaseTables, boolean lowerCaseColumns) -
Method Summary
Modifier and Type Method Description StringlowerColumnName(String name)Lower case the column name checking for quoted identifiers.StringlowerTableName(String tableName)Lower case the table name checking for quoted identifiers.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).booleannotQuoted(String tableName)Trim off the platform quoted identifier quotes like [ ' and ".StringtrimQuotes(String tableName)Trim off the platform quoted identifier quotes like [ ' and ".
-
Constructor Details
-
DbConstraintNormalise
public DbConstraintNormalise() -
DbConstraintNormalise
-
-
Method Details
-
normaliseTable
Normalise the table name by trimming catalog and schema and removing any quoted identifier characters (",',[,] etc). -
normaliseColumn
Normalise the column name by removing any quoted identifier characters and formula brackets. -
lowerTableName
Lower case the table name checking for quoted identifiers. -
lowerColumnName
Lower case the column name checking for quoted identifiers. -
notQuoted
Trim off the platform quoted identifier quotes like [ ' and ". -
trimQuotes
Trim off the platform quoted identifier quotes like [ ' and ".
-