uk.co.kimble.cobra
Class SQLInsertStatement

java.lang.Object
  |
  +--uk.co.kimble.cobra.SQLStatement
        |
        +--uk.co.kimble.cobra.SQLInsertStatement

public class SQLInsertStatement
extends SQLStatement

Insert Statement: INSERT INTO table VALUES (value1, value2... valueN) Subselects and partial inserts are not supported


Fields inherited from class uk.co.kimble.cobra.SQLStatement
class_dictionary, sql
 
Constructor Summary
SQLInsertStatement(uk.co.kimble.cobra.ClassDictionary cd)
          Build an Insert statement to retrieve a single instance of the object based on the primary keys
 
Method Summary
 java.lang.String buildForObject()
          Build an insert statement for the PersistentObject
 
Methods inherited from class uk.co.kimble.cobra.SQLStatement
asSQLClause, asSQLStatement, buildForCriteria, getClassDictionary, setKeyValues, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLInsertStatement

public SQLInsertStatement(uk.co.kimble.cobra.ClassDictionary cd)
                   throws PersistentException
Build an Insert statement to retrieve a single instance of the object based on the primary keys
Parameters:
class_name - Name of class to insert
Throws:
PersistentException - - thrown by super
Method Detail

buildForObject

public java.lang.String buildForObject()
                                throws PersistentException
Build an insert statement for the PersistentObject
Throws:
PersistentException - if the PersistentObject's methods cannot be found or if there are no columns to insert
Overrides:
buildForObject in class SQLStatement