public class OriginalNamingStrategy extends AbstractNamingStrategy
foreignKeysClassName, foreignKeysVariable, primaryKeysClassName, primaryKeysVariable, reservedSuffix
Constructor and Description |
---|
OriginalNamingStrategy() |
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 |
getPropertyName(java.lang.String columnName,
EntityType entityType)
Convert the given column name to a property name
|
java.lang.String |
getPropertyNameForForeignKey(java.lang.String foreignKeyName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
java.lang.String |
getPropertyNameForInverseForeignKey(java.lang.String foreignKeyName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name
|
java.lang.String |
getPropertyNameForPrimaryKey(java.lang.String primaryKeyName,
EntityType model)
Convert the given primary key name to a primary key property name
|
java.lang.String |
normalizeColumnName(java.lang.String columnName)
Convert the given column name and provide the opportunity to add quoted identifiers
|
java.lang.String |
normalizeSchemaName(java.lang.String schemaName)
Convert the given schema name and provide the opportunity to add quoted identifiers
|
java.lang.String |
normalizeTableName(java.lang.String tableName)
Convert the given table name and provide the opportunity to add quoted identifiers
|
appendSchema, escape, getForeignKeysClassName, getForeignKeysVariable, getPrimaryKeysClassName, getPrimaryKeysVariable, setForeignKeysClassName, setForeignKeysVariable, setPrimaryKeysClassName, setPrimaryKeysVariable, setReservedSuffix
public java.lang.String getClassName(java.lang.String tableName)
NamingStrategy
public java.lang.String getDefaultAlias(EntityType entityType)
NamingStrategy
public java.lang.String getDefaultVariableName(EntityType entityType)
NamingStrategy
public java.lang.String getPropertyName(java.lang.String columnName, EntityType entityType)
NamingStrategy
public java.lang.String getPropertyNameForForeignKey(java.lang.String foreignKeyName, EntityType entityType)
NamingStrategy
public java.lang.String getPropertyNameForInverseForeignKey(java.lang.String foreignKeyName, EntityType entityType)
NamingStrategy
public java.lang.String getPropertyNameForPrimaryKey(java.lang.String primaryKeyName, EntityType model)
NamingStrategy
public java.lang.String normalizeColumnName(java.lang.String columnName)
NamingStrategy
public java.lang.String normalizeTableName(java.lang.String tableName)
NamingStrategy
public java.lang.String normalizeSchemaName(java.lang.String schemaName)
NamingStrategy
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.