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
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 and formula brackets.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 ".
-
-
-
Constructor Detail
-
DbConstraintNormalise
public DbConstraintNormalise()
-
DbConstraintNormalise
public DbConstraintNormalise(boolean lowerCaseTables, 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.
-
lowerTableName
public String lowerTableName(String tableName)
Lower case the table name checking for quoted identifiers.
-
lowerColumnName
public String lowerColumnName(String name)
Lower case the column name checking for quoted identifiers.
-
notQuoted
public boolean notQuoted(String tableName)
Trim off the platform quoted identifier quotes like [ ' and ".
-
trimQuotes
public String trimQuotes(String tableName)
Trim off the platform quoted identifier quotes like [ ' and ".
-
-