Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » plugins » jaws » jdbc » [javadoc | source]
org.jboss.ejb.plugins.jaws.jdbc
abstract public class: JDBCUpdateCommand [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
      org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand

Direct Known Subclasses:
    JDBCCreateEntityCommand, JDBCInitCommand, JDBCStoreEntityCommand, JDBCRemoveEntityCommand, JDBCDestroyCommand

Abstract superclass for all JAWS Commands that issue JDBC updates directly. Provides a Template Method implementation for executeStatementAndHandleResult.
Fields inherited from org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand:
factory,  jawsEntity,  name
Constructor:
 protected JDBCUpdateCommand(JDBCCommandFactory factory,
    String name) 
    Pass the arguments on to the superclass constructor.
Method from org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand Summary:
executeStatementAndHandleResult,   handleResult
Methods from org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand:
executeStatementAndHandleResult,   getCMPFieldValue,   getConnection,   getJDBCType,   getJDBCTypeName,   getJawsCMPFieldJDBCType,   getName,   getPkColumnList,   getPkColumnWhereList,   getPkFieldValue,   getResultObject,   getResultObject,   getSQL,   getState,   isBinaryType,   jdbcExecute,   setCMPFieldValue,   setParameter,   setParameters,   setPrimaryKeyParameters,   setSQL
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand Detail:
 protected Object executeStatementAndHandleResult(PreparedStatement stmt,
    Object argOrArgs) throws Exception 
    Template Method that executes the PreparedStatement and calls handleResult on the integer result.
 abstract protected Object handleResult(int rowsAffected,
    Object argOrArgs) throws Exception
    Handle the result of successful execution of the update.