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
|
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, waitgetClassName, getDefaultAlias, getDefaultVariableName, getPropertyName, getPropertyNameForForeignKey, getPropertyNameForInverseForeignKey, getPropertyNameForPrimaryKey, normalizeColumnName, normalizeSchemaName, normalizeTableNameprotected String foreignKeysClassName
protected String foreignKeysVariable
protected String primaryKeysClassName
protected String primaryKeysVariable
protected String reservedSuffix
public String appendSchema(String packageName, String schemaName)
NamingStrategyappendSchema in interface NamingStrategyprotected String escape(EntityType entityType, String name)
public String getForeignKeysClassName()
NamingStrategygetForeignKeysClassName in interface NamingStrategypublic String getForeignKeysVariable(EntityType entityType)
NamingStrategygetForeignKeysVariable in interface NamingStrategypublic String getPrimaryKeysClassName()
NamingStrategygetPrimaryKeysClassName in interface NamingStrategypublic String getPrimaryKeysVariable(EntityType entityType)
NamingStrategygetPrimaryKeysVariable in interface NamingStrategypublic 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–2014 Mysema Ltd. All rights reserved.