org.andromda.schema2xmi
Class SqlToModelNameFormatter

java.lang.Object
  extended byorg.andromda.schema2xmi.SqlToModelNameFormatter

public class SqlToModelNameFormatter
extends Object

Provides formatting functions, when converting SQL names to model names.

Author:
Chad Brandon

Constructor Summary
SqlToModelNameFormatter()
           
 
Method Summary
static String toAttributeName(String name)
          Converts a column name to an attribute name.
static String toCamelCase(String name)
          Turns a table name into a model element class name.
static String toClassName(String name)
          Converts a table name to an class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlToModelNameFormatter

public SqlToModelNameFormatter()
Method Detail

toClassName

public static String toClassName(String name)
Converts a table name to an class name.

Parameters:
name - the name of the table.
Returns:
the new class name.

toAttributeName

public static String toAttributeName(String name)
Converts a column name to an attribute name.

Parameters:
name - the name of the column
Returns:
the new attribute name.

toCamelCase

public static String toCamelCase(String name)
Turns a table name into a model element class name.

Parameters:
name - the table name.
Returns:
the new class name.


Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.