站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

JDBCLoadEntityCommand (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


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

java.lang.Object
  extended byorg.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
      extended byorg.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand
          extended byorg.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand
All Implemented Interfaces:
JPMLoadEntityCommand

public class JDBCLoadEntityCommand
extends JDBCQueryCommand
implements JPMLoadEntityCommand

JAWSPersistenceManager JDBCLoadEntityCommand

Version:
$Revision: 1.19.2.2 $

Revisions:

20010812 vincent.harcq@hubmethods.com:

  • Get Rid of debug flag, use log4j instead
Author:
Rickard 脰berg, Marc Fleury, Joe Shevland, Justin Forder, Dirk Zimmermann, Dan Christopherson
See Also:

Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
factory, jawsEntity, name
 
Constructor Summary
JDBCLoadEntityCommand(JDBCCommandFactory factory)
           
 
Method Summary
protected  String createSelectClause()
           
 void execute(EntityEnterpriseContext ctx)
           
protected  Object handleResult(ResultSet rs, Object argOrArgs)
          Handles the result of successful execution of the query.
protected  boolean isTimedOut(EntityEnterpriseContext ctx)
           
protected  void loadFromPreload(Object[] data, EntityEnterpriseContext ctx)
           
protected  void loadOneEntity(ResultSet rs, EntityEnterpriseContext ctx)
           
protected  void setParameters(PreparedStatement stmt, Object argOrArgs)
          Default implementation does nothing.
 
Methods inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand
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, setPrimaryKeyParameters, setSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCLoadEntityCommand

public JDBCLoadEntityCommand(JDBCCommandFactory factory)
Method Detail

createSelectClause

protected String createSelectClause()

execute

public void execute(EntityEnterpriseContext ctx)
Specified by:
execute in interface JPMLoadEntityCommand

setParameters

protected void setParameters(PreparedStatement stmt,
                             Object argOrArgs)
                      throws Exception
Description copied from class: JDBCCommand
Default implementation does nothing. Override if parameters need to be set.

Overrides:
setParameters in class JDBCCommand
Parameters:
stmt - the PreparedStatement which will be executed by this Command.
argOrArgs - argument or array of arguments passed in from subclass execute method.
Throws:
Exception - if parameter setting fails.

handleResult

protected Object handleResult(ResultSet rs,
                              Object argOrArgs)
                       throws Exception
Description copied from class: JDBCQueryCommand
Handles the result of successful execution of the query.

Specified by:
handleResult in class JDBCQueryCommand
Parameters:
rs - the result set from the query.
argOrArgs - argument or array of arguments passed in from subclass execute method.
Returns:
any result produced by the handling of the result of executing the prepared statement.
Throws:
Exception - if execution or result handling fails.

loadFromPreload

protected void loadFromPreload(Object[] data,
                               EntityEnterpriseContext ctx)
                        throws Exception
Throws:
Exception

loadOneEntity

protected void loadOneEntity(ResultSet rs,
                             EntityEnterpriseContext ctx)
                      throws Exception
Throws:
Exception

isTimedOut

protected boolean isTimedOut(EntityEnterpriseContext ctx)


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