public interface DatabaseNamingConvention
Modifier and Type | Method and Description |
---|---|
String |
encloseField(String field)
Encloses the specified database name field in accordance to this database
naming convention.
|
default String |
fullNameOf(Column column)
Returns the full name used in the database for the specified
Column . |
default String |
fullNameOf(ColumnIdentifier<?> fieldIdentifier)
Returns the full name used in the database for the specified
ColumnIdentifier.
|
default String |
fullNameOf(PrimaryKeyColumn pkc)
Returns the full name used in the database for the specified
PrimaryKeyColumn . |
String |
fullNameOf(String schemaName,
String tableName)
Returns the full name used in the database for the specified parameters.
|
String |
fullNameOf(String schemaName,
String tableName,
String columnName)
Returns the full name used in the database for the specified column.
|
default String |
fullNameOf(Table table)
Returns the full name used in the database for the specified
Table . |
Set<String> |
getSchemaExcludeSet()
Returns a non-null Set of Strings that represents schema names that are
to be excluded when examining a Dbms for schemas.
|
String |
quoteField(String field)
Quotes the specified value field in accordance to this database naming
convention.
|
String fullNameOf(String schemaName, String tableName, String columnName)
schemaName
- schema nametableName
- table namecolumnName
- column nameString fullNameOf(String schemaName, String tableName)
schemaName
- schema nametableName
- table namedefault String fullNameOf(ColumnIdentifier<?> fieldIdentifier)
fieldIdentifier
- to usedefault String fullNameOf(PrimaryKeyColumn pkc)
PrimaryKeyColumn
. This is typically constructed by combining the
table and the column name with a separator, but that might be different
in different implementations.pkc
- the primary key column to retrieve the name ofdefault String fullNameOf(Column column)
Column
. This is typically constructed by combining the table and
the column name with a separator, but that might be different in
different implementations.column
- the column to retrieve the name ofdefault String fullNameOf(Table table)
Table
. This is typically constructed by combining the schema and
the table name with a separator, but that might be different in different
implementations.table
- the table to retrieve the name ofString quoteField(String field)
field
- the content to quoteString encloseField(String field)
field
- the content to quoteSet<String> getSchemaExcludeSet()
Copyright © 2017 Speedment, Inc.. All rights reserved.