com.mysema.query.sql
Class OriginalNamingStrategy

java.lang.Object
  extended by com.mysema.query.sql.OriginalNamingStrategy
All Implemented Interfaces:
NamingStrategy

public class OriginalNamingStrategy
extends Object
implements NamingStrategy

OriginalNamingStrategy preserves the table and column names in the conversion

Author:
tiwe

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 getPropertyName(String columnName, String namePrefix, EntityType entityType)
          Convert the given column name to a property name
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OriginalNamingStrategy

public OriginalNamingStrategy()
Method Detail

getClassName

public String getClassName(String namePrefix,
                           String tableName)
Description copied from interface: NamingStrategy
Convert the given tableName to a simple class name with the given name prefix

Specified by:
getClassName in interface NamingStrategy
Returns:

getPropertyName

public String getPropertyName(String columnName,
                              String namePrefix,
                              EntityType entityType)
Description copied from interface: NamingStrategy
Convert the given column name to a property name

Specified by:
getPropertyName in interface NamingStrategy
namePrefix - NOTE : is used in some custom NamingStrategy implementations
Returns:

getDefaultVariableName

public String getDefaultVariableName(String namePrefix,
                                     EntityType entityType)
Description copied from interface: NamingStrategy
Get the default variable name for the given EntityType

Specified by:
getDefaultVariableName in interface NamingStrategy
Returns:

getDefaultAlias

public String getDefaultAlias(String namePrefix,
                              EntityType entityType)
Description copied from interface: NamingStrategy
Get the default alias for the given EntityType

Specified by:
getDefaultAlias in interface NamingStrategy
Returns:

normalizeColumnName

public String normalizeColumnName(String columnName)
Description copied from interface: NamingStrategy
Convert the given column name and provide the opportunity to add quoted identifiers

Specified by:
normalizeColumnName in interface NamingStrategy
Returns:

normalizeTableName

public String normalizeTableName(String tableName)
Description copied from interface: NamingStrategy
Convert the given table name and provide the opportunity to add quoted identifiers

Specified by:
normalizeTableName in interface NamingStrategy
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.