org.jboss.ejb.plugins.cmp.jdbc2
Class AbstractQueryCommand
java.lang.Object
org.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: 81030 $
- Author:
- Alexey Loubyansky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sql
protected String sql
log
protected org.jboss.logging.Logger log
entity
protected JDBCEntityBridge2 entity
params
protected QueryParameter[] params
AbstractQueryCommand
public AbstractQueryCommand()
setResultType
protected void setResultType(Class clazz)
setFieldReader
protected void setFieldReader(JDBCCMPFieldBridge2 field)
setFunctionReader
protected void setFunctionReader(SelectFunction func)
setEntityReader
protected void setEntityReader(JDBCEntityBridge2 entity,
boolean searchableOnly)
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
setOffsetValue
public void setOffsetValue(int offsetValue)
setLimitValue
public void setLimitValue(int limitValue)
setOffsetParam
public void setOffsetParam(int offsetParam)
setLimitParam
public void setLimitParam(int limitParam)
toInt
protected static int toInt(Object[] params,
int paramNumber,
int defaultValue)
executeFetchOne
protected Object executeFetchOne(Object[] args,
GenericEntityObjectFactory factory)
throws javax.ejb.FinderException
- Throws:
javax.ejb.FinderException
setParameters
protected void setParameters(List p)
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.