org.andromda.schema2xmi
Class SqlToModelNameFormatter

java.lang.Object
  extended by org.andromda.schema2xmi.SqlToModelNameFormatter

public class SqlToModelNameFormatter
extends java.lang.Object

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

Author:
Chad Brandon

Constructor Summary
SqlToModelNameFormatter()
           
 
Method Summary
static java.lang.String toAttributeName(java.lang.String name)
          Converts a column name to an attribute name.
static java.lang.String toCamelCase(java.lang.String name)
          Turns a table name into a model element class name.
static java.lang.String toClassName(java.lang.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 java.lang.String toClassName(java.lang.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 java.lang.String toAttributeName(java.lang.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 java.lang.String toCamelCase(java.lang.String name)
Turns a table name into a model element class name.

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


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.