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

All Implemented Interfaces:
    JPMStoreEntityCommand

JAWSPersistenceManager JDBCStoreEntityCommand
Nested Class Summary:
protected static class  JDBCStoreEntityCommand.ExecutionState   
Fields inherited from org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand:
factory,  jawsEntity,  name
Constructor:
 public JDBCStoreEntityCommand(JDBCCommandFactory factory) 
Method from org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand Summary:
changed,   execute,   getSQL,   handleResult,   makeSQL,   setParameters
Methods from org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand:
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.JDBCStoreEntityCommand Detail:
 protected final boolean changed(Object current,
    Object old) 
 public  void execute(EntityEnterpriseContext ctx) 
    if the readOnly flag is specified in the xml file this won't store. if not a tuned or untuned update is issued.
 protected String getSQL(Object argOrArgs) throws Exception 
    Returns dynamically-generated SQL if this entity has tuned updates, otherwise static SQL.
 protected Object handleResult(int rowsAffected,
    Object argOrArgs) throws Exception 
 protected String makeSQL(Object argOrArgs) 
    Used to create static SQL (tuned = false) or dynamic SQL (tuned = true).
 protected  void setParameters(PreparedStatement stmt,
    Object argOrArgs) throws Exception