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 |
|---|---|
java.lang.String |
getClassName(java.lang.String tableName)
Convert the given tableName to a simple class name
|
java.lang.String |
getDefaultAlias(EntityType entityType)
Get the default alias for the given EntityType
|
java.lang.String |
getDefaultVariableName(EntityType entityType)
Get the default variable name for the given EntityType
|
java.lang.String |
getForeignKeysVariable(EntityType entityType)
Get the field name for the foreign keys class instance
|
java.lang.String |
getPrimaryKeysVariable(EntityType entityType)
Get the field name for the primary keys class instance
|
java.lang.String |
getPropertyName(java.lang.String columnName,
EntityType entityType)
Convert the given column name to a property name
|
java.lang.String |
getPropertyNameForForeignKey(java.lang.String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
java.lang.String |
getPropertyNameForInverseForeignKey(java.lang.String fkName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
java.lang.String |
getPropertyNameForPrimaryKey(java.lang.String pkName,
EntityType entityType)
Convert the given primary key name to a primary key property name
|
protected java.lang.String |
toCamelCase(java.lang.String str) |
appendSchema, escape, getClassName, getForeignKeysClassName, getPackage, getPrimaryKeysClassName, normalizeColumnName, normalizeJavaName, normalizeSchemaName, normalizeSQLName, normalizeTableName, setForeignKeysClassName, setForeignKeysVariable, setPrimaryKeysClassName, setPrimaryKeysVariable, setReservedSuffix, shouldGenerateClass, shouldGenerateForeignKeypublic java.lang.String getClassName(java.lang.String tableName)
NamingStrategypublic java.lang.String getDefaultAlias(EntityType entityType)
NamingStrategypublic java.lang.String getDefaultVariableName(EntityType entityType)
NamingStrategypublic java.lang.String getForeignKeysVariable(EntityType entityType)
NamingStrategygetForeignKeysVariable in interface NamingStrategygetForeignKeysVariable in class AbstractNamingStrategypublic java.lang.String getPrimaryKeysVariable(EntityType entityType)
NamingStrategygetPrimaryKeysVariable in interface NamingStrategygetPrimaryKeysVariable in class AbstractNamingStrategypublic java.lang.String getPropertyName(java.lang.String columnName,
EntityType entityType)
NamingStrategypublic java.lang.String getPropertyNameForForeignKey(java.lang.String fkName,
EntityType entityType)
NamingStrategypublic java.lang.String getPropertyNameForInverseForeignKey(java.lang.String fkName,
EntityType entityType)
NamingStrategypublic java.lang.String getPropertyNameForPrimaryKey(java.lang.String pkName,
EntityType entityType)
NamingStrategyprotected java.lang.String toCamelCase(java.lang.String str)
Copyright © 2007–2021 Querydsl. All rights reserved.