org.jboss.ejb.plugins.jaws.jdbc
Class JDBCInitCommand

java.lang.Object
  extended byorg.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
      extended byorg.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand
          extended byorg.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand
All Implemented Interfaces:
JPMInitCommand

public class JDBCInitCommand
extends JDBCUpdateCommand
implements JPMInitCommand

JAWSPersistenceManager JDBCInitCommand

Version:
$Revision: 1.19.4.2 $

Revisions:

20010621 danch:

20010812 vincent.harcq@hubmethods.com:

Author:
Rickard Öberg, Marc Fleury, Joe Shevland, Justin Forder, Michel de Groot, David Jencks, danch (Dan Christopherson
See Also:

Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
factory, jawsEntity, name
 
Constructor Summary
JDBCInitCommand(JDBCCommandFactory factory)
           
 
Method Summary
 void execute()
           
protected  Object handleResult(int rowsAffected, Object argOrArgs)
          Handle the result of successful execution of the update.
 
Methods inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand
executeStatementAndHandleResult
 
Methods inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
getCMPFieldValue, getConnection, getJawsCMPFieldJDBCType, getJDBCType, getJDBCTypeName, getName, getPkColumnList, getPkColumnWhereList, getPkFieldValue, getResultObject, getResultObject, getSQL, getState, isBinaryType, jdbcExecute, setCMPFieldValue, setParameter, setParameters, setPrimaryKeyParameters, setSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCInitCommand

public JDBCInitCommand(JDBCCommandFactory factory)
Method Detail

execute

public void execute()
             throws Exception
Specified by:
execute in interface JPMInitCommand
Throws:
Exception

handleResult

protected Object handleResult(int rowsAffected,
                              Object argOrArgs)
                       throws Exception
Description copied from class: JDBCUpdateCommand
Handle the result of successful execution of the update.

Specified by:
handleResult in class JDBCUpdateCommand
Parameters:
argOrArgs - argument or array of arguments passed in from subclass execute method.
Returns:
any result needed by the subclass execute.
Throws:
Exception - if result handling fails.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.