org.objectweb.jorm.mapper.rdb.util
Class ColumnAliasing

java.lang.Object
  extended byorg.objectweb.jorm.mapper.rdb.util.ColumnAliasing

public class ColumnAliasing
extends java.lang.Object

Enable to change the name of the field from the SQL name to the alias name and the reverse. Do not use "_" neither as a prefix (some db do not support column starting with "_") nor as a suffix (it can change the lexical order).

Author:
Y.Bersihand

Constructor Summary
ColumnAliasing()
           
 
Method Summary
static java.lang.String getAliasFromColumn(java.lang.String columnName)
           
static java.lang.String getColumnFromAlias(java.lang.String alias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnAliasing

public ColumnAliasing()
Method Detail

getAliasFromColumn

public static java.lang.String getAliasFromColumn(java.lang.String columnName)

getColumnFromAlias

public static java.lang.String getColumnFromAlias(java.lang.String alias)