com.is.jrf
Class InsertSQLBuilder

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

public class InsertSQLBuilder
extends SQLBuilder

Instances of this class build SQL to do INSERT statements.


Fields inherited from class com.is.jrf.SQLBuilder
i_columnSpecs, i_dbPolicy, i_domain, i_tableAlias, i_tableName
 
Constructor Summary
InsertSQLBuilder()
          This constructor throws an exception.
InsertSQLBuilder(AbstractDomain domain)
           
 
Method Summary
 java.lang.String buildSQL(PersistentObject aPO, JDBCHelper aJDBCHelper, java.lang.String tableName, java.util.List columnSpecs)
          Build SQL to insert a row using the columnSpecs and the next available primary key object ID.
 
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

InsertSQLBuilder

public InsertSQLBuilder()
This constructor throws an exception.

InsertSQLBuilder

public InsertSQLBuilder(AbstractDomain domain)
Method Detail

buildSQL

public java.lang.String buildSQL(PersistentObject aPO,
                                 JDBCHelper aJDBCHelper,
                                 java.lang.String tableName,
                                 java.util.List columnSpecs)
Build SQL to insert a row using the columnSpecs and the next available primary key object ID.
Parameters:
aPO - a value of type 'PersistentObject'
pkId - a value of type 'Object' that will be the primary key
Returns:
a value of type 'String'