public class ODCriteria
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getApplicationGroupNames()
Get the application group names that this criteria has mappings to.
|
boolean |
getAscending()
Get the search type of the current criteria.
|
java.lang.String |
getBaseDescription()
Get the base description of the criteria.
|
java.lang.String |
getBaseName()
Get the base name of the criteria.
|
java.lang.String[] |
getDBFieldNames(java.lang.String agName)
Get the database field name(s) for this folder criteria.
|
java.util.Hashtable |
getDBFixedValuesBaseMapping(java.lang.String agName)
This API will return the possible values that can be used to update an InputTypeChoice (
ODConstant.InputTypeChoice) field. |
java.util.Hashtable |
getDBFixedValuesMapping(java.lang.String agName)
This API will return the possible values that can be used to update an InputTypeChoice (
ODConstant.InputTypeChoice) field. |
java.lang.String |
getDefaultFmt()
Get the default format for this criteria.
|
char |
getDefaultFmtQual()
Get the default format qualifier for this criteria.
|
int |
getDefaultOperator()
Get the name of the criteria.
|
java.lang.String |
getDescription()
Get the description of the criteria.
|
java.lang.String |
getDisplayFmt()
Get the display format for this criteria.
|
char |
getDisplayFmtQual()
Get the display format qualifier for this criteria.
|
char |
getFieldQualifier()
Get the criteria qualifier.
|
java.lang.String[] |
getFixedValues()
Get the valid search values for this criteria.
|
int |
getMaxDisplayChars()
Get the maximum display characters.
|
int |
getMaxEntryChars()
Get the maximum entry characters.
|
java.lang.String |
getMaxSearchValue()
Get the Maximum Search Value.
|
java.lang.String |
getMinSearchValue()
Get the Minimum Search Value.
|
java.lang.String |
getName()
Get the name of the criteria.
|
int |
getOperator()
Get the current search operator.
|
java.lang.String[] |
getSearchValues()
Get the current search values.
|
int |
getSortOrder()
Get the search sort value for the current criteria.
|
char |
getSubType()
Get the subtype of the criteria.
|
char |
getType()
Get the type of criteria.
|
int[] |
getValidOperators()
Get the valid operators.
|
boolean |
isDefaultValueAvailable()
Determine whether a default value is available for this criteria.
|
boolean |
isDefaultValueFixed()
Determine whether the default value for this criteria is fixed
(cannot be changed).
|
boolean |
isDisplayable()
Determine whether this criteria is Displayable.
|
boolean |
isQueryable()
Determine whether this criteria is Queryable.
|
boolean |
isRequired()
Determine whether a value is required for this criteria when
searching the folder.
|
boolean |
isTxnField() |
boolean |
isUpdateable(java.lang.String agName,
java.lang.String agFldName)
Verify that this field can be updated.
|
void |
setAscending(boolean value)
Set the search type for the current criteria.
|
void |
setOperator(int op)
Set the current search operator.
|
void |
setSearchValue(java.lang.String v)
Set this criteria's search value.
|
void |
setSearchValues(java.lang.String v1,
java.lang.String v2)
Set this criteria's search values.
|
void |
setSortOrder(int value)
Set the search sort value for the current criteria.
|
public void setSortOrder(int value)
ODFolder.setSortLocation(char)public int getSortOrder()
public void setAscending(boolean value)
public boolean getAscending()
public java.lang.String getName()
public java.lang.String getBaseName()
public java.lang.String getDescription()
public java.lang.String getBaseDescription()
public char getType()
ODConstant.public char getSubType()
ODConstant.ODConstant.OD_FLD_ANN_TEXT_SEARCH,
ODConstant.OD_FLD_BIGINT,
ODConstant.OD_FLD_ANN_COLOR_SEARCH,
ODConstant.OD_FLD_DECFLOAT16,
ODConstant.OD_FLD_DECFLOAT34,
ODConstant.OD_FLD_DECIMAL,
ODConstant.OD_FLD_APPLGRP,
ODConstant.OD_FLD_INTEGER,
ODConstant.OD_FLD_SMALLINT,
ODConstant.OD_FLD_SEGMENT,
ODConstant.OD_FLD_STRING,
ODConstant.OD_FLD_TEXT_SEARCH,
ODConstant.OD_FLD_FTI_SEARCH,
ODConstant.OD_FLD_FTI_SCORE,
ODConstant.OD_FLD_FTI_SUMMARY,
ODConstant.OD_FLD_FTI_HIGHLIGHT,
ODConstant.OD_FLD_DATE,
ODConstant.OD_FLD_DATETIME,
ODConstant.OD_FLD_VOIDpublic char getFieldQualifier()
ODConstant.ODConstant.OD_FLDQ_BASE,
ODConstant.OD_FLDQ_DATETIME,
ODConstant.OD_FLDQ_DATE,
ODConstant.OD_FLDQ_TIME,
ODConstant.OD_FLDQ_TZ_DATETIMEpublic java.lang.String getMinSearchValue()
public java.lang.String getMaxSearchValue()
public int[] getValidOperators()
ODConstant.ODConstant.OPEqual,
ODConstant.OPNotEqual,
ODConstant.OPLessThan,
ODConstant.OPLessThanEqual,
ODConstant.OPGreaterThan,
ODConstant.OPGreaterThanEqual,
ODConstant.OPIn,
ODConstant.OPNotIn,
ODConstant.OPLike,
ODConstant.OPNotLike,
ODConstant.OPBetween,
ODConstant.OPNotBetweenpublic int getOperator()
ODConstant.ODConstant.OPEqual,
ODConstant.OPNotEqual,
ODConstant.OPLessThan,
ODConstant.OPLessThanEqual,
ODConstant.OPGreaterThan,
ODConstant.OPGreaterThanEqual,
ODConstant.OPIn,
ODConstant.OPNotIn,
ODConstant.OPLike,
ODConstant.OPNotLike,
ODConstant.OPBetween,
ODConstant.OPNotBetweenpublic void setOperator(int op)
throws ODException
ODConstant.op - Operand to use for this criteria when performing a search.ODExceptionODConstant.OPEqual,
ODConstant.OPNotEqual,
ODConstant.OPLessThan,
ODConstant.OPLessThanEqual,
ODConstant.OPGreaterThan,
ODConstant.OPGreaterThanEqual,
ODConstant.OPIn,
ODConstant.OPNotIn,
ODConstant.OPLike,
ODConstant.OPNotLike,
ODConstant.OPBetween,
ODConstant.OPNotBetweenpublic java.lang.String[] getSearchValues()
public void setSearchValue(java.lang.String v)
throws ODException
v - Search value.ODExceptionpublic void setSearchValues(java.lang.String v1,
java.lang.String v2)
throws ODException
v1 - Search value number one.v2 - Search value number two.ODExceptionpublic java.lang.String[] getFixedValues()
public java.lang.String getDisplayFmt()
public char getDisplayFmtQual()
public java.lang.String getDefaultFmt()
DefaultTimeFormat = "%H:%M:%S"
DefaultDateFormat = "%m/%d/%y"
DefaultDateTimeFormat = "%m/%d/%y %H:%M:%S"
public char getDefaultFmtQual()
public boolean isRequired()
public boolean isDisplayable()
public boolean isQueryable()
public int getDefaultOperator()
public boolean isDefaultValueAvailable()
public boolean isDefaultValueFixed()
public int getMaxEntryChars()
public int getMaxDisplayChars()
public java.lang.String[] getDBFieldNames(java.lang.String agName)
agName - The application group for which the db fields are required.public java.lang.String[] getApplicationGroupNames()
ODCriteria.getDBFieldNames(String)
to determine the field names within the application group that this criteria
is mapped to.public java.util.Hashtable getDBFixedValuesMapping(java.lang.String agName)
ODConstant.InputTypeChoice) field.
Since a single folder can be mapped to multiple Application Groups, this Hashtable contains only field values for the specified
Application Group.
agName - The Application Group Name from the ODHit that will be updated.ODCriteria.getFixedValues()), and
the Elements are the internal values required for ODFolder.updateValuesForHits(java.util.Vector, Hashtable).ODHit.getApplGrpName(),
ODCriteria.isUpdateable(java.lang.String, java.lang.String)public java.util.Hashtable getDBFixedValuesBaseMapping(java.lang.String agName)
ODConstant.InputTypeChoice) field.
Since a single folder can be mapped to multiple Application Groups, this Hashtable contains only field values for the specified
Application Group. This API is used to get the base value mappings, independent of NLS setting. For NLS mappings
see see ODCriteria.getDBFixedValuesMapping(java.lang.String)
agName - The Application Group Name from the ODHit that will be updated.ODCriteria.getFixedValues()), and
the Elements are the internal values required for ODFolder.updateValuesForHits(java.util.Vector, Hashtable).ODHit.getApplGrpName(),
ODCriteria.isUpdateable(java.lang.String, java.lang.String)public boolean isUpdateable(java.lang.String agName,
java.lang.String agFldName)
throws ODException
ODHit.hasPermToUpdateDoc() to determine permissions for updating field info for a document/hit.agName - The Application Group name for the specific ODHit you are attempting to update.agFldName - The Application Group Field Name that you are attempting to update.ODExceptionODHit.getApplGrpName(),
ODCriteria.getDBFieldNames(java.lang.String),
ODHit.hasPermToUpdateDoc()public boolean isTxnField()
(c)Copyright International Business Machines Corporation 2001, 2020. IBM Corp. All rights reserved.