java.lang.Object
com.flexstor.common.data.ejb.Data
com.flexstor.ejb.search.SearchInstance
- All Implemented Interfaces:
- java.io.Serializable
- public class SearchInstance
- extends com.flexstor.common.data.ejb.Data
This class contains information about a search. All criteria
constructed during a search setup have an associated Instance.
For example: I build a search with an array of SearchCriteria.
It is organized in the following manner:
Basic->FullText->Vir
I would have three search Instances, each relation existing based
upon the relation in the criteria. All statements are executed during a
search are executed one at a time and appended. The next instance is then
executed and the Current Result Set is either AND/OR with the new Result
Set. The Set produced from this relation is used for the next instance...
- Since:
- FLEXSTOR.db 3.0
- Version:
- 1.0, 3/15/00
| Fields inherited from class com.flexstor.common.data.ejb.Data |
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE |
| Methods inherited from class com.flexstor.common.data.ejb.Data |
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
sqlStmts
private java.lang.String[] sqlStmts
relation
private int relation
bucketLUFields
private java.util.Vector bucketLUFields
alStringParams
private java.util.ArrayList alStringParams
SearchInstance
public SearchInstance(java.lang.String[] sqls,
int relation,
java.util.Vector vBuckLUFields,
java.util.ArrayList alStringParams)
- Constructor: Default
getStatements
public java.lang.String[] getStatements()
- This will return the statements for this instance of the search.
All statements are Or'd together
getStringParams
public java.util.ArrayList getStringParams()
- This will return the array list of strings for a particular sqlStatement
getRelation
public int getRelation()
- The relation for this instance is AND/OR. This is the relation
between this instance and the next instance.
getBucketLUFields
public java.util.Vector getBucketLUFields()
setBucketLUFields
public void setBucketLUFields(java.util.Vector myIDs)