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: JDBCFinderCommand [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand
      org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand
         org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand

All Implemented Interfaces:
    JPMFindEntitiesCommand

Direct Known Subclasses:
    JDBCFindAllCommand, JDBCPreloadFinderCommand, JDBCDefinedFinderCommand, JDBCPreloadByPrimaryKeyCommand, JDBCFindByCommand

Abstract superclass of finder commands that return collections. Provides the handleResult() implementation that these all need.
Field Summary
protected  FinderMetaData finderMetaData     
Fields inherited from org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand:
factory,  jawsEntity,  name
Constructor:
 public JDBCFinderCommand(JDBCCommandFactory factory,
    String name) 
 public JDBCFinderCommand(JDBCCommandFactory factory,
    FinderMetaData f) 
Method from org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand Summary:
execute,   getFinderMetaData,   getFromClause,   getOrderByClause,   getWhereClause,   handleResult
Methods from org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand:
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.JDBCFinderCommand Detail:
 public Collection execute(Method finderMethod,
    Object[] args,
    EntityEnterpriseContext ctx) throws FinderException 
 public FinderMetaData getFinderMetaData() 
 abstract public String getFromClause()
    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.
 abstract public String getOrderByClause()
    This method must be ovverridded to return the full order by clause for the query, including the 'ORDER BY' keyword.
 abstract public String getWhereClause()
    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.
 protected Object handleResult(ResultSet rs,
    Object argOrArgs) throws Exception