|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.sql.OriginalNamingStrategy
public class OriginalNamingStrategy
OriginalNamingStrategy preserves the table and column names in the conversion
Constructor Summary | |
---|---|
OriginalNamingStrategy()
|
Method Summary | |
---|---|
String |
getClassName(String namePrefix,
String tableName)
Convert the given tableName to a simple class name with the given name prefix |
String |
getDefaultAlias(String namePrefix,
EntityType entityType)
Get the default alias for the given EntityType |
String |
getDefaultVariableName(String namePrefix,
EntityType entityType)
Get the default variable name for the given EntityType |
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 |
getPropertyName(String columnName,
String namePrefix,
EntityType entityType)
Convert the given column name to a property name |
String |
getPropertyNameForForeignKey(String foreignKeyName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name |
String |
getPropertyNameForInverseForeignKey(String foreignKeyName,
EntityType entityType)
Convert the given foreign key name to a foreign key property name |
String |
getPropertyNameForPrimaryKey(String primaryKeyName,
EntityType model)
Convert the given primary key name to a primary key property name |
String |
getReservedSuffix()
|
String |
normalizeColumnName(String columnName)
Convert the given column 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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OriginalNamingStrategy()
Method Detail |
---|
public String getClassName(String namePrefix, String tableName)
NamingStrategy
getClassName
in interface NamingStrategy
public String getDefaultAlias(String namePrefix, EntityType entityType)
NamingStrategy
getDefaultAlias
in interface NamingStrategy
public String getDefaultVariableName(String namePrefix, EntityType entityType)
NamingStrategy
getDefaultVariableName
in interface NamingStrategy
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 getPropertyName(String columnName, String namePrefix, EntityType entityType)
NamingStrategy
getPropertyName
in interface NamingStrategy
namePrefix
- NOTE : is used in some custom NamingStrategy implementations
public String getPropertyNameForForeignKey(String foreignKeyName, EntityType entityType)
NamingStrategy
getPropertyNameForForeignKey
in interface NamingStrategy
public String getPropertyNameForInverseForeignKey(String foreignKeyName, EntityType entityType)
NamingStrategy
getPropertyNameForInverseForeignKey
in interface NamingStrategy
public String getPropertyNameForPrimaryKey(String primaryKeyName, EntityType model)
NamingStrategy
getPropertyNameForPrimaryKey
in interface NamingStrategy
public String getReservedSuffix()
public String normalizeColumnName(String columnName)
NamingStrategy
normalizeColumnName
in interface NamingStrategy
public String normalizeTableName(String tableName)
NamingStrategy
normalizeTableName
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |