|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.Query
public class Query
| Constructor Summary | |
|---|---|
Query(MTable table,
String whereClause,
String trxName)
Deprecated. Use Query(Properties, MTable, String, String) instead because this method is security error prone |
|
Query(Properties ctx,
MTable table,
String whereClause,
String trxName)
|
|
Query(Properties ctx,
String tableName,
String whereClause,
String trxName)
|
|
| Method Summary | ||
|---|---|---|
int |
count()
Count items that match query criteria |
|
|
first()
Return first PO that match query criteria |
|
|
iterate()
Return an Iterator implementation to fetch one PO at a time. |
|
|
list()
Return a list of all po that match the query criteria. |
|
|
scroll()
Return a simple wrapper over a jdbc resultset. |
|
Query |
setApplyAccessFilter(boolean flag)
Turn on/off the addition of data access filter |
|
Query |
setOrderBy(String orderBy)
Set order by clause ( without the order by sql keyword ). |
|
Query |
setParameters(Collection<Object> parameters)
Set query parameters |
|
Query |
setParameters(Object[] parameters)
Set query parameters |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Query(MTable table,
String whereClause,
String trxName)
Query(Properties, MTable, String, String) instead because this method is security error prone
table - whereClause - trxName -
public Query(Properties ctx,
MTable table,
String whereClause,
String trxName)
ctx - contexttable - whereClause - trxName -
public Query(Properties ctx,
String tableName,
String whereClause,
String trxName)
ctx - tableName - whereClause - trxName - | Method Detail |
|---|
public Query setParameters(Object[] parameters)
parameters - public Query setParameters(Collection<Object> parameters)
parameters - collection of parameterspublic Query setOrderBy(String orderBy)
orderBy - public Query setApplyAccessFilter(boolean flag)
flag -
public <T extends PO> List<T> list()
throws DBException
DBException
public <T extends PO> T first()
throws DBException
DBException
public int count()
throws DBException
DBException
public <T extends PO> Iterator<T> iterate()
throws DBException
DBException
public <T extends PO> POResultSet<T> scroll()
throws DBException
DBException
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||