Package de.elo.ix.client
Class FindOptions
java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.FindOptions
- All Implemented Interfaces:
Serializable
This class contains several options to control the search process of findFirstSords.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocMaskZ
protected String
SQL escape character.protected boolean
Compute the number of results.protected boolean
Do not generate summary information.protected FindResultAccessMode
Describes how the client application will access the results.protected boolean
Include logically deleted objects.protected LockZ
Lock all result Sords.protected String[]
Restricts the results to objects with these IDs or GUIDs.protected boolean
Only logically deleted objects.protected String
An SQL ORDER BY clause can be provided here, if required.protected String
Range values can be used to search many index and date attribute values.protected ReplSet
Results are returned only for objects that reside in this replication set.protected long
This value is reserved for internal testing purposes and must be set to 0 in all cases.protected String
Restricts the results to objects returned by a previous search.protected int
Lifetime of cached search results.protected SearchModeZ
The searchMode describes how search terms are concatinated with the boolean operators AND or OR.protected int
Defines the sort order of the results.protected int
Specifies the time limit for the search.protected int
The search is terminated if this number of objects are found.protected String
Return objects that were last modified at this time or in this time range.protected String
This characters are used as wildcards in search terms.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLockZ()
String[]
long
int
int
int
int
boolean
boolean
boolean
boolean
void
setDocMaskZ
(DocMaskZ docMaskZ) void
setEscapeChar
(String escapeChar) void
setEvalCount
(boolean evalCount) void
setExcludeSummary
(boolean excludeSummary) void
setFindResultAccessMode
(FindResultAccessMode findResultAccessMode) void
setInclDeleted
(boolean inclDeleted) void
void
void
setOnlyDeleted
(boolean onlyDeleted) void
setOrderBy
(String orderBy) void
setRangeDelimiter
(String rangeDelimiter) void
setReplSet
(ReplSet replSet) void
setReserved
(long reserved) void
setSearchId
(String searchId) void
setSearchLifetimeSeconds
(int searchLifetimeSeconds) void
setSearchMode
(SearchModeZ searchMode) void
setSortOrder
(int sortOrder) void
setTimeoutSeconds
(int timeoutSeconds) void
setTotalCount
(int totalCount) void
void
setWildcards
(String wildcards) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
escapeChar
SQL escape character. Overwrites the character that can be specified by setSessionOptions. -
inclDeleted
protected boolean inclDeletedInclude logically deleted objects.- See Also:
-
objIds
Restricts the results to objects with these IDs or GUIDs. -
orderBy
An SQL ORDER BY clause can be provided here, if required. -
rangeDelimiter
Range values can be used to search many index and date attribute values. The delimiter between the lower limit and upper limit value is defined by rangeDelimiter. The default rangeDelimiter is "...". -
replSet
Results are returned only for objects that reside in this replication set. -
reserved
protected long reservedThis value is reserved for internal testing purposes and must be set to 0 in all cases. -
searchId
Restricts the results to objects returned by a previous search. -
searchMode
The searchMode describes how search terms are concatinated with the boolean operators AND or OR. -
sortOrder
protected int sortOrderDefines the sort order of the results. If sortOrder is 0 and the search process searches for child objects (FindInfo.findChildren!=null), the objects are sorted by the sort flags of the parent. If sortOrder is 0 and the search uses FindInfo.findByIndex, the objects are sorted alphabetically.- See Also:
-
timeoutSeconds
protected int timeoutSecondsSpecifies the time limit for the search. If the limit is exceeded, the search is interruped. If the search is not to have a time limit timeoutSeconds=0 must be used. -
totalCount
protected int totalCountThe search is terminated if this number of objects are found. If the number of results should not be constrained, set this value to 2^32-1 = 2147483647 (maximum value of a positive 32bit integer minus 1). If totalCount is not set, the Indexserver option totalCount is used, which is 10000 by default. If this value is set to 1, findFirstSords will not generate a report entryReportInfoC.ACT_CLIENT_SEARCH
. -
evalCount
protected boolean evalCountCompute the number of results. The number of results are returned in FindResult.count. Be aware of the fact that this option needs to read all database result rows and check user access before findFirstSords returns.- See Also:
-
onlyDeleted
protected boolean onlyDeletedOnly logically deleted objects. If this member is true, inclDeleted is ignored.- Since:
- 7.00.000.022
- See Also:
-
TStamp
Return objects that were last modified at this time or in this time range. The time stamp is an ISO formatted value in the UTC timezone. It might include dots to separate the date and time elements. A time range is separated by therangeDelimiter
. The selection includes the range limits. Because the FindOptions cannot be the only criteria in FindInfo, use FindByIndex.name="*" to select over the entire archive.- Since:
- 7.00.006.001
-
wildcards
This characters are used as wildcards in search terms. The first wildcard is used for zero or more characters. The second wildcard is used for exactly one character. By default (if this member is null or empty), only the first wildcard is defined: *.- Since:
- 7.00.022.002
- See Also:
-
lockZ
Lock all result Sords. If at least one of the sords cannot be locked, an exception is thrown from findFirstSords. Be aware of the fact that this option needs to read all database result rows and check user access. The objects are unlocked by a call to findClose.- Since:
- 7.00.022.004
-
searchLifetimeSeconds
protected int searchLifetimeSecondsLifetime of cached search results. This value overrides the ELOix configuration option searchLifetimeSeconds. The value determines the time in seconds, how long the search results are cached. As long the results are valid, they can be read by findNext-functions of the API.- Since:
- 8.00.026.000
- See Also:
-
excludeSummary
protected boolean excludeSummaryDo not generate summary information. Retrieving summaries is very expensive for the iSearch module.- Since:
- 8.00.026.000
-
findResultAccessMode
Describes how the client application will access the results.- Since:
- 11.00.000.033
-
docMaskZ
- Since:
- 12.00.000.024
-
-
Constructor Details
-
FindOptions
public FindOptions() -
FindOptions
-
-
Method Details
-
getEscapeChar
-
setEscapeChar
-
isInclDeleted
public boolean isInclDeleted() -
setInclDeleted
public void setInclDeleted(boolean inclDeleted) -
getObjIds
-
setObjIds
-
getOrderBy
-
setOrderBy
-
getRangeDelimiter
-
setRangeDelimiter
-
getReplSet
-
setReplSet
-
getReserved
public long getReserved() -
setReserved
public void setReserved(long reserved) -
getSearchId
-
setSearchId
-
getSearchMode
-
setSearchMode
-
getSortOrder
public int getSortOrder() -
setSortOrder
public void setSortOrder(int sortOrder) -
getTimeoutSeconds
public int getTimeoutSeconds() -
setTimeoutSeconds
public void setTimeoutSeconds(int timeoutSeconds) -
getTotalCount
public int getTotalCount() -
setTotalCount
public void setTotalCount(int totalCount) -
isEvalCount
public boolean isEvalCount() -
setEvalCount
public void setEvalCount(boolean evalCount) -
isOnlyDeleted
public boolean isOnlyDeleted() -
setOnlyDeleted
public void setOnlyDeleted(boolean onlyDeleted) -
getTStamp
-
setTStamp
-
getWildcards
-
setWildcards
-
getLockZ
-
setLockZ
-
getSearchLifetimeSeconds
public int getSearchLifetimeSeconds() -
setSearchLifetimeSeconds
public void setSearchLifetimeSeconds(int searchLifetimeSeconds) -
isExcludeSummary
public boolean isExcludeSummary() -
setExcludeSummary
public void setExcludeSummary(boolean excludeSummary) -
toString
-
getFindResultAccessMode
-
setFindResultAccessMode
-
getDocMaskZ
-
setDocMaskZ
-