railo.runtime.orm.naming
Class DefaultNamingStrategy

java.lang.Object
  extended by railo.runtime.orm.naming.DefaultNamingStrategy
All Implemented Interfaces:
NamingStrategy

public class DefaultNamingStrategy
extends Object
implements NamingStrategy


Field Summary
static NamingStrategy INSTANCE
           
 
Constructor Summary
DefaultNamingStrategy()
           
 
Method Summary
 String convertColumnName(String columnName)
          Defines the column name to be used for a specified column name.
 String convertTableName(String tableName)
          Defines the table name to be used for a specified table name.
 String getType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NamingStrategy INSTANCE
Constructor Detail

DefaultNamingStrategy

public DefaultNamingStrategy()
Method Detail

convertTableName

public String convertTableName(String tableName)
Description copied from interface: NamingStrategy
Defines the table name to be used for a specified table name. The specified table name is either the table name specified in the mapping or chosen using the entity name.

Specified by:
convertTableName in interface NamingStrategy
See Also:
railo.runtime.orm.NamingStrategy#convertTableName(java.lang.String)

convertColumnName

public String convertColumnName(String columnName)
Description copied from interface: NamingStrategy
Defines the column name to be used for a specified column name. The specified column name is either the column name specified in the mapping or chosen using the property name.

Specified by:
convertColumnName in interface NamingStrategy
See Also:
railo.runtime.orm.NamingStrategy#convertColumnName(java.lang.String)

getType

public String getType()
Specified by:
getType in interface NamingStrategy
See Also:
railo.runtime.orm.NamingStrategy#getType()


Copyright © 2012 Railo