public class DefaultNamingStrategy extends AbstractNamingStrategy
DefaultNamingStrategy is the default implementation of the NamingStrategy
interface. It changes underscore usage into camel case form.foreignKeysClassName, foreignKeysVariable, primaryKeysClassName, primaryKeysVariable, reservedSuffix| Constructor and Description |
|---|
DefaultNamingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName(String tableName)
Convert the given tableName to a simple class name
|
String |
getDefaultAlias(EntityType entityType)
Get the default alias for the given EntityType
|
String |
getDefaultVariableName(EntityType entityType)
Get the default variable name for the given EntityType
|
String |
getForeignKeysVariable(EntityType entityType)
Get the field name for the foreign keys class instance
|
String |
getPrimaryKeysVariable(EntityType entityType)
Get the field name for the primary keys class instance
|
String |
getPropertyName(String columnName,
EntityType entityType)
Convert the given column name to a property name
|
String |
getPropertyNameForForeignKey(String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
String |
getPropertyNameForInverseForeignKey(String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
String |
getPropertyNameForPrimaryKey(String pkName,
EntityType entityType)
Convert the given primary key name to a primary key property name
|
protected String |
toCamelCase(String str) |
appendSchema, escape, getClassName, getForeignKeysClassName, getPackage, getPrimaryKeysClassName, normalizeColumnName, normalizeJavaName, normalizeSchemaName, normalizeSQLName, normalizeTableName, setForeignKeysClassName, setForeignKeysVariable, setPrimaryKeysClassName, setPrimaryKeysVariable, setReservedSuffix, shouldGenerateClass, shouldGenerateForeignKeypublic String getClassName(String tableName)
NamingStrategypublic String getDefaultAlias(EntityType entityType)
NamingStrategypublic String getDefaultVariableName(EntityType entityType)
NamingStrategypublic String getForeignKeysVariable(EntityType entityType)
NamingStrategygetForeignKeysVariable in interface NamingStrategygetForeignKeysVariable in class AbstractNamingStrategypublic String getPrimaryKeysVariable(EntityType entityType)
NamingStrategygetPrimaryKeysVariable in interface NamingStrategygetPrimaryKeysVariable in class AbstractNamingStrategypublic String getPropertyName(String columnName, EntityType entityType)
NamingStrategypublic String getPropertyNameForForeignKey(String fkName, EntityType entityType)
NamingStrategypublic String getPropertyNameForInverseForeignKey(String fkName, EntityType entityType)
NamingStrategypublic String getPropertyNameForPrimaryKey(String pkName, EntityType entityType)
NamingStrategyCopyright © 2007–2020 Querydsl. All rights reserved.