com.is.jrf
Class CreateTableSQLBuilder

java.lang.Object
  |
  +--com.is.jrf.SQLBuilder
        |
        +--com.is.jrf.CreateTableSQLBuilder

public class CreateTableSQLBuilder
extends SQLBuilder

Instances of this class build SQL to do CREATE TABLE statements.


Fields inherited from class com.is.jrf.SQLBuilder
i_columnSpecs, i_dbPolicy, i_domain, i_tableAlias, i_tableName
 
Constructor Summary
CreateTableSQLBuilder()
          This constructor throws an exception.
CreateTableSQLBuilder(AbstractDomain domain)
           
 
Method Summary
 java.lang.String buildSQL(java.lang.String tableName, java.util.List columnSpecs)
          Build SQL to create a table the supplied tableName and columnSpecs
 
Methods inherited from class com.is.jrf.SQLBuilder
getColumnSpecs, getDatabasePolicy, getTableAlias, getTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateTableSQLBuilder

public CreateTableSQLBuilder()
This constructor throws an exception.

CreateTableSQLBuilder

public CreateTableSQLBuilder(AbstractDomain domain)
Method Detail

buildSQL

public java.lang.String buildSQL(java.lang.String tableName,
                                 java.util.List columnSpecs)
Build SQL to create a table the supplied tableName and columnSpecs
Parameters:
tableName - The name of the table to create.
columnSpecs - a value of type 'List'
Returns:
a value of type 'String'