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

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


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

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.JDBCFinderCommand
              extended byorg.jboss.ejb.plugins.jaws.jdbc.JDBCFindByCommand
All Implemented Interfaces:
JPMFindEntitiesCommand

public class JDBCFindByCommand
extends JDBCFinderCommand

JAWSPersistenceManager JDBCFindByCommand

Version:
$Revision: 1.14.4.1 $
Author:
Rickard 脰berg, Marc Fleury, Joe Shevland, Justin Forder, Dan Christopherson, Torben J盲ger

Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand
finderMetaData
 
Fields inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
factory, jawsEntity, name
 
Constructor Summary
JDBCFindByCommand(JDBCCommandFactory factory, Method finderMethod, FinderMetaData md)
           
 
Method Summary
 String getFromClause()
          This method must be ovverridden to return the full table list for the query, including any join statements.
 String getOrderByClause()
          This method must be ovverridded to return the full order by clause for the query, including the 'ORDER BY' keyword.
 String getWhereClause()
          This method must be overridden to return the where clause used in this query.
protected  void setParameters(PreparedStatement stmt, Object argOrArgs)
          Default implementation does nothing.
 
Methods inherited from class org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand
execute, getFinderMetaData, handleResult
 
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

JDBCFindByCommand

public JDBCFindByCommand(JDBCCommandFactory factory,
                         Method finderMethod,
                         FinderMetaData md)
                  throws IllegalArgumentException
Method Detail

getWhereClause

public String getWhereClause()
Description copied from class: JDBCFinderCommand
This method must be overridden to return the where clause used in this query. This must start with the keyword 'WHERE' and include all conditions needed to execute the query properly.

Specified by:
getWhereClause in class JDBCFinderCommand

getFromClause

public String getFromClause()
Description copied from class: JDBCFinderCommand
This method must be ovverridden to return the full table list for the query, including any join statements. This must start with the keyword 'FROM' and include all tables needed to execute the query properly.

Specified by:
getFromClause in class JDBCFinderCommand

getOrderByClause

public String getOrderByClause()
Description copied from class: JDBCFinderCommand
This method must be ovverridded to return the full order by clause for the query, including the 'ORDER BY' keyword.

Specified by:
getOrderByClause in class JDBCFinderCommand

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.


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