com.mysema.query.sql
Class OriginalNamingStrategy

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

public class OriginalNamingStrategy
extends java.lang.Object
implements NamingStrategy

OriginalNamingStrategy preserves the table and column names in the conversion

Author:
tiwe

Constructor Summary
OriginalNamingStrategy()
           
 
Method Summary
 java.lang.String getClassName(java.lang.String namePrefix, java.lang.String tableName)
          Convert the given tableName to a simple class name with the given name prefix
 java.lang.String getDefaultAlias(java.lang.String namePrefix, EntityType entityType)
          Get the default alias for the given EntityType
 java.lang.String getDefaultVariableName(java.lang.String namePrefix, EntityType entityType)
          Get the default variable name for the given EntityType
 java.lang.String getPropertyName(java.lang.String columnName, java.lang.String namePrefix, EntityType entityType)
          Convert the given column name to a property name
 java.lang.String getPropertyNameForForeignKey(java.lang.String foreignKeyName, EntityType entityType)
          Convert the given foreign key name to a foreign key property name
 java.lang.String getPropertyNameForInverseForeignKey(java.lang.String foreignKeyName, EntityType entityType)
          Convert the given foreign key name to a foreign key property name
 java.lang.String getPropertyNameForPrimaryKey(java.lang.String primaryKeyName, EntityType model)
          Convert the given primary key name to a primary key property name
 java.lang.String normalizeColumnName(java.lang.String columnName)
          Convert the given column name and provide the opportunity to add quoted identifiers
 java.lang.String normalizeTableName(java.lang.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 java.lang.String getClassName(java.lang.String namePrefix,
                                     java.lang.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:

getDefaultAlias

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

Specified by:
getDefaultAlias in interface NamingStrategy
Returns:

getDefaultVariableName

public java.lang.String getDefaultVariableName(java.lang.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:

getPropertyName

public java.lang.String getPropertyName(java.lang.String columnName,
                                        java.lang.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:

getPropertyNameForForeignKey

public java.lang.String getPropertyNameForForeignKey(java.lang.String foreignKeyName,
                                                     EntityType entityType)
Description copied from interface: NamingStrategy
Convert the given foreign key name to a foreign key property name

Specified by:
getPropertyNameForForeignKey in interface NamingStrategy
Returns:

getPropertyNameForInverseForeignKey

public java.lang.String getPropertyNameForInverseForeignKey(java.lang.String foreignKeyName,
                                                            EntityType entityType)
Description copied from interface: NamingStrategy
Convert the given foreign key name to a foreign key property name

Specified by:
getPropertyNameForInverseForeignKey in interface NamingStrategy
Returns:

getPropertyNameForPrimaryKey

public java.lang.String getPropertyNameForPrimaryKey(java.lang.String primaryKeyName,
                                                     EntityType model)
Description copied from interface: NamingStrategy
Convert the given primary key name to a primary key property name

Specified by:
getPropertyNameForPrimaryKey in interface NamingStrategy
Returns:

normalizeColumnName

public java.lang.String normalizeColumnName(java.lang.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 java.lang.String normalizeTableName(java.lang.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.