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

AbstractQueryCommand (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.plugins.cmp.jdbc2
Class AbstractQueryCommand

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc2.AbstractQueryCommand
All Implemented Interfaces:
QueryCommand
Direct Known Subclasses:
DeclaredSQLQueryCommand, EJBQLQueryCommand, FindByPrimaryKeyCommand, JBossQLQueryCommand

public abstract class AbstractQueryCommand
extends Object
implements QueryCommand

Version:
$Revision: 1.3 $
Author:
Alexey Loubyansky

Field Summary
protected  JDBCEntityBridge2 entity
           
protected  org.jboss.logging.Logger log
           
protected  QueryParameter[] params
           
protected  String sql
           
 
Constructor Summary
AbstractQueryCommand()
           
 
Method Summary
protected  Object executeFetchOne(Object[] args, GenericEntityObjectFactory factory)
           
 Collection fetchCollection(Schema schema, GenericEntityObjectFactory factory, Object[] args)
           
 Object fetchOne(Schema schema, GenericEntityObjectFactory factory, Object[] args)
           
 JDBCStoreManager2 getStoreManager()
           
protected  void setEntityReader(JDBCEntityBridge2 entity)
           
protected  void setFieldReader(JDBCCMPFieldBridge2 field)
           
protected  void setFunctionReader(SelectFunction func)
           
protected  void setParameters(List p)
           
protected  void setResultType(Class clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sql

protected String sql

log

protected org.jboss.logging.Logger log

entity

protected JDBCEntityBridge2 entity

params

protected QueryParameter[] params
Constructor Detail

AbstractQueryCommand

public AbstractQueryCommand()
Method Detail

setResultType

protected void setResultType(Class clazz)

setFieldReader

protected void setFieldReader(JDBCCMPFieldBridge2 field)

setFunctionReader

protected void setFunctionReader(SelectFunction func)

setEntityReader

protected void setEntityReader(JDBCEntityBridge2 entity)

getStoreManager

public JDBCStoreManager2 getStoreManager()
Specified by:
getStoreManager in interface QueryCommand

fetchCollection

public Collection fetchCollection(Schema schema,
                                  GenericEntityObjectFactory factory,
                                  Object[] args)
                           throws javax.ejb.FinderException
Specified by:
fetchCollection in interface QueryCommand
Throws:
javax.ejb.FinderException

fetchOne

public Object fetchOne(Schema schema,
                       GenericEntityObjectFactory factory,
                       Object[] args)
                throws javax.ejb.FinderException
Specified by:
fetchOne in interface QueryCommand
Throws:
javax.ejb.FinderException

executeFetchOne

protected Object executeFetchOne(Object[] args,
                                 GenericEntityObjectFactory factory)
                          throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

setParameters

protected void setParameters(List p)


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