ThinkUI SQL Client 1.1.3 API

thinkui.codegen.sql
Class GeneratorHelper

java.lang.Object
  extended bythinkui.codegen.sql.GeneratorHelper

public abstract class GeneratorHelper
extends java.lang.Object

Abstract base class for various database generator classes.


Field Summary
static thinkui.db.attribute.EnumType COMMAND_TYPE
           
static thinkui.db.attribute.EnumType DATABASE_TYPE
           
static thinkui.db.attribute.EnumType PROXY_TYPE
           
static thinkui.db.attribute.EnumType SCREEN_TYPE
           
 
Constructor Summary
GeneratorHelper()
           
 
Method Summary
 java.lang.String getDBColumnTypeClause(Attribute attr)
           
static GeneratorHelper getInstance(java.lang.String targetDatabase)
           
 java.lang.String typeToString(int dataType, AttributeConstraints constraints)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_TYPE

public static final thinkui.db.attribute.EnumType COMMAND_TYPE

DATABASE_TYPE

public static final thinkui.db.attribute.EnumType DATABASE_TYPE

PROXY_TYPE

public static final thinkui.db.attribute.EnumType PROXY_TYPE

SCREEN_TYPE

public static final thinkui.db.attribute.EnumType SCREEN_TYPE
Constructor Detail

GeneratorHelper

public GeneratorHelper()
Method Detail

getDBColumnTypeClause

public final java.lang.String getDBColumnTypeClause(Attribute attr)
Returns:
the column type clause for the given attribute.

getInstance

public static final GeneratorHelper getInstance(java.lang.String targetDatabase)
Returns:
the GeneratorHelper instance for the given target database.

typeToString

public java.lang.String typeToString(int dataType,
                                     AttributeConstraints constraints)
Returns:
the string representation of the given SQL datatype.

ThinkUI SQL Client 1.1.3 API

Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.