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