|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.cm.util.EboDocQueryUtil
This class contains utility methods related to Document queries.
Constructor Summary | |
EboDocQueryUtil()
|
Method Summary | |
static EbiQueryExpression |
genFieldValueClause(EbiContext context,
EbiContentManager contentMgr,
EbiDocQuery docQuery,
String[] fields,
boolean useNames,
Object[] fieldValues,
int operator,
boolean or)
For the given document query, generates a WHERE clause that involves multiple 'field |
static boolean |
isKnownDataType(String dataType)
Checks whether the specified data type is valid |
static void |
order(int[] orderByProps,
boolean[] orderArr,
EbiDocMetaDataQuery docMetaQuery)
Given a document metadata query object, specifies its ORDER BY clauses. |
static void |
selectDocProperties(int[] selectedProps,
EbiDocMetaDataQuery docMetaQuery)
Using the supplied list of document metadata property identifiers, selects properties that are to be returned as part of the EbiDocuments that the EbiContentManager.findElements method returns. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public EboDocQueryUtil()
Method Detail |
public static void selectDocProperties(int[] selectedProps, EbiDocMetaDataQuery docMetaQuery)
Notes:
selectedProps
- the list of document metadata properties to
select; pass in null to have the method select all of the properties
in the querydocMetaQuery
- the document metadata query objectpublic static void order(int[] orderByProps, boolean[] orderArr, EbiDocMetaDataQuery docMetaQuery)
orderByProps
- the list of identifiers of the document metadata
properties by which to orderorderArr
- the list of order values; 'true' for 'ascending order',
'false' for 'descending order'docMetaQuery
- the document metadata query objectpublic static EbiQueryExpression genFieldValueClause(EbiContext context, EbiContentManager contentMgr, EbiDocQuery docQuery, String[] fields, boolean useNames, Object[] fieldValues, int operator, boolean or) throws EboUnrecoverableSystemException, EboSecurityException, EboItemExistenceException
context
- the contextcontentMgr
- the content manager objectdocQuery
- the document query objectfields
- the list of field names or field IDs, depending
on the value of the 'useNames' flaguseNames
- if true, then 'fields' is treated as a list of
field names, if false, the values in 'fields' are assumed to be
field IDsfieldValues
- values for the specified fieldsoperator
- the operator to use, e.g. EbiMetaDataQuery.ROP_EQUAL
(see com.sssw.cm.api.EbiMetaDataQuery for the list of available
operators)or
- if true, the criteria are OR'ed together, otherwise
they are AND'edpublic static boolean isKnownDataType(String dataType)
dataType
- the data type name
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |