com.mysema.query.sql
Interface NamingStrategy

All Known Implementing Classes:
DefaultNamingStrategy, OriginalNamingStrategy

public interface NamingStrategy

NamingStrategy defines a conversion strategy from table to class and column to property names

Author:
tiwe

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
 

Method Detail

getDefaultVariableName

String getDefaultVariableName(String namePrefix,
                              EntityType entityType)
Get the default variable name for the given EntityType

Parameters:
entityType -
Returns:

getDefaultAlias

String getDefaultAlias(String namePrefix,
                       EntityType entityType)
Get the default alias for the given EntityType

Parameters:
namePrefix -
entityType -
Returns:

getClassName

String getClassName(String namePrefix,
                    String tableName)
Convert the given tableName to a simple class name with the given name prefix

Parameters:
namePrefix -
tableName -
Returns:

getPropertyName

String getPropertyName(String columnName,
                       String namePrefix,
                       EntityType entityType)
Convert the given column name to a property name

Parameters:
columnName -
namePrefix - NOTE : is used in some custom NamingStrategy implementations
entityType -
Returns:

normalizeTableName

String normalizeTableName(String tableName)
Convert the given table name and provide the opportunity to add quoted identifiers

Parameters:
tableName -
Returns:

normalizeColumnName

String normalizeColumnName(String columnName)
Convert the given column name and provide the opportunity to add quoted identifiers

Parameters:
columnName -
Returns:


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