de.mathema.pride
Class PreparedInsert

java.lang.Object
  extended by de.mathema.pride.PreparedOperation
      extended by de.mathema.pride.PreparedInsert
All Implemented Interfaces:
TransactionListener

public class PreparedInsert
extends PreparedOperation

Author:
Jan Lessner

Field Summary
protected  java.lang.String[] autoFields
           
static java.lang.String REVISION_ID
           
protected  java.lang.String table
           
 
Fields inherited from class de.mathema.pride.PreparedOperation
db, operation, red, stmt
 
Constructor Summary
PreparedInsert(RecordDescriptor red)
           
PreparedInsert(java.lang.String[] autoFields, RecordDescriptor red)
           
 
Method Summary
 void setParameters(java.lang.Object obj)
           
 
Methods inherited from class de.mathema.pride.PreparedOperation
addBatch, close, commit, execute, executeBatch, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected java.lang.String table

autoFields

protected java.lang.String[] autoFields

REVISION_ID

public static final java.lang.String REVISION_ID
See Also:
Constant Field Values
Constructor Detail

PreparedInsert

public PreparedInsert(RecordDescriptor red)
               throws java.sql.SQLException,
                      java.lang.IllegalAccessException,
                      java.lang.reflect.InvocationTargetException
Throws:
java.sql.SQLException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

PreparedInsert

public PreparedInsert(java.lang.String[] autoFields,
                      RecordDescriptor red)
               throws java.sql.SQLException,
                      java.lang.IllegalAccessException,
                      java.lang.reflect.InvocationTargetException
Throws:
java.sql.SQLException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
Method Detail

setParameters

public void setParameters(java.lang.Object obj)
                   throws java.sql.SQLException
Specified by:
setParameters in class PreparedOperation
Throws:
java.sql.SQLException