Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.ejb.search
Class SearchInstance  view SearchInstance download SearchInstance.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.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

Field Summary
private  java.util.ArrayList alStringParams
           
private  java.util.Vector bucketLUFields
           
static java.lang.String IDENTIFIER
           
private  int relation
           
private  java.lang.String[] sqlStmts
           
 
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
 
Constructor Summary
SearchInstance(java.lang.String[] sqls, int relation, java.util.Vector vBuckLUFields, java.util.ArrayList alStringParams)
          Constructor: Default
 
Method Summary
 java.util.Vector getBucketLUFields()
           
 int getRelation()
          The relation for this instance is AND/OR.
 java.lang.String[] getStatements()
          This will return the statements for this instance of the search.
 java.util.ArrayList getStringParams()
          This will return the array list of strings for a particular sqlStatement
 void setBucketLUFields(java.util.Vector myIDs)
           
 
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
 

Field Detail

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
Constructor Detail

SearchInstance

public SearchInstance(java.lang.String[] sqls,
                      int relation,
                      java.util.Vector vBuckLUFields,
                      java.util.ArrayList alStringParams)
Constructor: Default

Method Detail

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)