public class BOQuery
extends java.lang.Object
Constructor and Description |
---|
BOQuery(java.lang.Class<? extends BOI> clazz)
Creates a new
BOQuery . |
BOQuery(java.lang.Class<? extends BOI> clazz,
java.lang.String whereClause) |
BOQuery(java.lang.Class<? extends BOI> clazz,
java.lang.String whereClause,
java.lang.Object[] pvals) |
BOQuery(java.lang.Class<? extends BOI> clazz,
java.lang.String whereClause,
java.lang.Object[] pvals,
boolean includeDeleted) |
BOQuery(java.lang.Class<? extends BOI> clazz,
java.lang.String whereClause,
java.lang.Object[] pvals,
boolean includeDeleted,
java.lang.String orderBy) |
BOQuery(java.lang.Class<? extends BOI> clazz,
java.lang.String whereClause,
java.lang.Object[] pvals,
boolean includeDeleted,
java.lang.String orderBy,
int limit) |
BOQuery(java.lang.String className)
Creates a new
BOQuery . |
BOQuery(java.lang.String className,
java.lang.String whereClause) |
BOQuery(java.lang.String className,
java.lang.String whereClause,
java.lang.Object[] pvals) |
BOQuery(java.lang.String className,
java.lang.String whereClause,
java.lang.Object[] pvals,
boolean includeDeleted) |
BOQuery(java.lang.String className,
java.lang.String whereClause,
java.lang.Object[] pvals,
boolean includeDeleted,
java.lang.String orderBy) |
BOQuery(java.lang.String className,
java.lang.String whereClause,
java.lang.Object[] pvals,
boolean includeDeleted,
java.lang.String orderBy,
int limit) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClazzName() |
java.lang.String |
getOQLString()
Returns the OQL string that results from this
BOQuery and which
will be used on the database. |
java.lang.String |
getOQLString(boolean id) |
java.lang.Object[] |
getParameterObjects()
Returns an array of the parameter objects that will be inserted for the
"wildcards" in the OQL string (if any).
|
java.lang.String |
getWhere() |
public BOQuery(java.lang.Class<? extends BOI> clazz)
BOQuery
.clazz
- the class of which objects should be retrievedwhereClause
- an (optional, may be null) where clause (just the criteria like 'bo.bla = 1 AND bo.foo = "test"')pvals
- an (optional, may be null) object array corresponding with $n entries, $1 is pvals[0] and so forth.includeDeleted
- flag that specifies if deleted BOs should be returned too; defaults to false.orderBy
- an (optional, may be null) ORDER BY clause (just the criteria, like 'bo.bla ASC, bo.foo DESC')limit
- the (optional) maximum number of results to fetchpublic BOQuery(java.lang.Class<? extends BOI> clazz, java.lang.String whereClause)
public BOQuery(java.lang.Class<? extends BOI> clazz, java.lang.String whereClause, java.lang.Object[] pvals)
public BOQuery(java.lang.Class<? extends BOI> clazz, java.lang.String whereClause, java.lang.Object[] pvals, boolean includeDeleted)
public BOQuery(java.lang.Class<? extends BOI> clazz, java.lang.String whereClause, java.lang.Object[] pvals, boolean includeDeleted, java.lang.String orderBy)
public BOQuery(java.lang.Class<? extends BOI> clazz, java.lang.String whereClause, java.lang.Object[] pvals, boolean includeDeleted, java.lang.String orderBy, int limit)
public BOQuery(java.lang.String className)
BOQuery
.className
- the name of the class of which objects should be retrievedwhereClause
- an (optional, may be null) where clause (just the criteria like 'bo.bla = 1 AND bo.foo = "test"')pvals
- an (optional, may be null) object array corresponding with $n entries, $1 is pvals[0] and so forth.includeDeleted
- flag that specifies if deleted BOs should be returned too; defaults to false.orderBy
- an (optional, may be null) ORDER BY clause (just the criteria, like 'bo.bla ASC, bo.foo DESC')limit
- the (optional) maximum number of results to fetchpublic BOQuery(java.lang.String className, java.lang.String whereClause)
public BOQuery(java.lang.String className, java.lang.String whereClause, java.lang.Object[] pvals)
public BOQuery(java.lang.String className, java.lang.String whereClause, java.lang.Object[] pvals, boolean includeDeleted)
public BOQuery(java.lang.String className, java.lang.String whereClause, java.lang.Object[] pvals, boolean includeDeleted, java.lang.String orderBy)
public BOQuery(java.lang.String className, java.lang.String whereClause, java.lang.Object[] pvals, boolean includeDeleted, java.lang.String orderBy, int limit)
public java.lang.String getOQLString()
BOQuery
and which
will be used on the database.BOQuery
public java.lang.String getOQLString(boolean id)
public java.lang.Object[] getParameterObjects()
BOQuery
returns an empty Object array.public java.lang.String getClazzName()
public java.lang.String getWhere()
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.