public abstract class AbstractQueryCommand extends Object implements QueryCommand
| Modifier and Type | Field and Description |
|---|---|
protected JDBCEntityBridge2 |
entity |
protected org.jboss.logging.Logger |
log |
protected QueryParameter[] |
params |
protected String |
sql |
| Constructor and Description |
|---|
AbstractQueryCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
executeFetchOne(Object[] args,
JDBCQueryCommand.EntityProxyFactory factory) |
Collection |
fetchCollection(Schema schema,
Object[] args,
JDBCQueryCommand.EntityProxyFactory factory) |
Object |
fetchOne(Schema schema,
Object[] args,
JDBCQueryCommand.EntityProxyFactory factory) |
JDBCStoreManager2 |
getStoreManager() |
protected void |
setEntityReader(JDBCEntityBridge2 entity,
boolean searchableOnly) |
protected void |
setFieldReader(JDBCCMPFieldBridge2 field) |
protected void |
setFunctionReader(SelectFunction func) |
void |
setLimitParam(int limitParam) |
void |
setLimitValue(int limitValue) |
void |
setOffsetParam(int offsetParam) |
void |
setOffsetValue(int offsetValue) |
protected void |
setParameters(List p) |
protected void |
setResultType(Class clazz) |
protected static int |
toInt(Object[] params,
int paramNumber,
int defaultValue) |
protected String sql
protected org.jboss.logging.Logger log
protected JDBCEntityBridge2 entity
protected QueryParameter[] params
protected void setResultType(Class clazz)
protected void setFieldReader(JDBCCMPFieldBridge2 field)
protected void setFunctionReader(SelectFunction func)
protected void setEntityReader(JDBCEntityBridge2 entity, boolean searchableOnly)
public JDBCStoreManager2 getStoreManager()
getStoreManager in interface QueryCommandpublic Collection fetchCollection(Schema schema, Object[] args, JDBCQueryCommand.EntityProxyFactory factory) throws javax.ejb.FinderException
fetchCollection in interface QueryCommandjavax.ejb.FinderExceptionpublic Object fetchOne(Schema schema, Object[] args, JDBCQueryCommand.EntityProxyFactory factory) throws javax.ejb.FinderException
fetchOne in interface QueryCommandjavax.ejb.FinderExceptionpublic void setOffsetValue(int offsetValue)
public void setLimitValue(int limitValue)
public void setOffsetParam(int offsetParam)
public void setLimitParam(int limitParam)
protected static int toInt(Object[] params, int paramNumber, int defaultValue)
protected Object executeFetchOne(Object[] args, JDBCQueryCommand.EntityProxyFactory factory) throws javax.ejb.FinderException
javax.ejb.FinderExceptionprotected void setParameters(List p)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.