public abstract class AbstractNamingStrategy extends Object implements NamingStrategy
Modifier and Type | Field and Description |
---|---|
protected String |
foreignKeysClassName |
protected String |
foreignKeysVariable |
protected String |
primaryKeysClassName |
protected String |
primaryKeysVariable |
protected String |
reservedSuffix |
Constructor and Description |
---|
AbstractNamingStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
appendSchema(String packageName,
String schemaName)
Normalizes and appends the given schema name to the package name
|
protected String |
escape(EntityType entityType,
String name) |
String |
getForeignKeysClassName()
Get the class name for the foreign keys inner class
|
String |
getForeignKeysVariable(EntityType entityType)
Get the field name for the foreign keys class instance
|
String |
getPrimaryKeysClassName()
Get the class name for the primary keys inner class
|
String |
getPrimaryKeysVariable(EntityType entityType)
Get the field name for the primary keys class instance
|
String |
normalizeColumnName(String columnName)
Convert the given column name and provide the opportunity to add quoted identifiers
|
String |
normalizeSchemaName(String schemaName)
Convert the given schema name and provide the opportunity to add quoted identifiers
|
String |
normalizeTableName(String tableName)
Convert the given table name and provide the opportunity to add quoted identifiers
|
void |
setForeignKeysClassName(String foreignKeysClassName) |
void |
setForeignKeysVariable(String foreignKeysVariable) |
void |
setPrimaryKeysClassName(String primaryKeysClassName) |
void |
setPrimaryKeysVariable(String primaryKeysVariable) |
void |
setReservedSuffix(String reservedSuffix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassName, getDefaultAlias, getDefaultVariableName, getPropertyName, getPropertyNameForForeignKey, getPropertyNameForInverseForeignKey, getPropertyNameForPrimaryKey
protected String foreignKeysClassName
protected String foreignKeysVariable
protected String primaryKeysClassName
protected String primaryKeysVariable
protected String reservedSuffix
public String appendSchema(String packageName, String schemaName)
NamingStrategy
appendSchema
in interface NamingStrategy
protected String escape(EntityType entityType, String name)
public String getForeignKeysClassName()
NamingStrategy
getForeignKeysClassName
in interface NamingStrategy
public String getForeignKeysVariable(EntityType entityType)
NamingStrategy
getForeignKeysVariable
in interface NamingStrategy
public String getPrimaryKeysClassName()
NamingStrategy
getPrimaryKeysClassName
in interface NamingStrategy
public String getPrimaryKeysVariable(EntityType entityType)
NamingStrategy
getPrimaryKeysVariable
in interface NamingStrategy
public String normalizeColumnName(String columnName)
NamingStrategy
normalizeColumnName
in interface NamingStrategy
public String normalizeTableName(String tableName)
NamingStrategy
normalizeTableName
in interface NamingStrategy
public String normalizeSchemaName(String schemaName)
NamingStrategy
normalizeSchemaName
in interface NamingStrategy
public void setForeignKeysClassName(String foreignKeysClassName)
public void setForeignKeysVariable(String foreignKeysVariable)
public void setPrimaryKeysClassName(String primaryKeysClassName)
public void setPrimaryKeysVariable(String primaryKeysVariable)
public void setReservedSuffix(String reservedSuffix)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.