|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Single entry of a complex search query.
| Field Summary | |
static java.lang.String |
OPERATOR_AND
if query entry is an operator entry the value can be OPERATOR_AND, OPERATOR_OR or OPERATOR_NOT |
static java.lang.String |
OPERATOR_NOT
if query entry is an operator entry the value can be OPERATOR_AND, OPERATOR_OR or OPERATOR_NOT |
static java.lang.String |
OPERATOR_OR
if query entry is an operator entry the value can be OPERATOR_AND, OPERATOR_OR or OPERATOR_NOT |
static byte |
PROPERTY_OPERATOR_BETWEEN
Property value should be between value 1 and value 2 of the query entry |
static byte |
PROPERTY_OPERATOR_EQUAL
Property value should be equal to the value of the query entry |
static byte |
PROPERTY_OPERATOR_GREATER
Property value should be greater than the value of the query entry |
static byte |
PROPERTY_OPERATOR_GREATER_OR_EQUAL
Property value should be greater or equal the value of the query entry |
static byte |
PROPERTY_OPERATOR_LESS
Property value should be less than the value of the query entry |
static byte |
PROPERTY_OPERATOR_LESS_OR_EQUAL
Property value should be less or equal the value of the query entry |
static byte |
PROPERTY_OPERATOR_NOT
Property value should not be equal to the value of the query entry |
static byte |
PROPERTY_TYPE_DATE
if query entry is an attribute entry you can specifiy the property type |
static byte |
PROPERTY_TYPE_INTEGER
if query entry is an attribute entry you can specifiy the property type |
static byte |
PROPERTY_TYPE_STRING
if query entry is an attribute entry you can specifiy the property type |
static byte |
PROPERTY_TYPE_TEXT
if query entry is an attribute entry you can specifiy the property type |
static byte |
PROPERTY_TYPE_USE_META_MODEL
if query entry is an attribute entry you can specifiy the property type |
static java.lang.String |
ROW_TYPE_ATTRIBUTE
specifies that query entry is an attribute entry |
static java.lang.String |
ROW_TYPE_BRACKET_CLOSE
specifies that query entry is an close bracket entry |
static java.lang.String |
ROW_TYPE_BRACKET_OPEN
specifies that query entry is an open bracket entry |
static java.lang.String |
ROW_TYPE_OPERATOR
specifies that query entry is an operator entry |
static java.lang.String |
ROW_TYPE_TERM
specifies that query entry is a term entry |
static byte |
TERM_ACTION_EXACT
exact search |
static byte |
TERM_ACTION_FUZZY
fuzzy search |
static byte |
TERM_ACTION_LINGUISTIC
linguistic search |
static byte |
TERM_ACTION_NEAR_WIDTH
near with search |
static byte |
TERM_ACTION_SOUNDEX
soundex search |
| Method Summary | |
IQueryEntry |
cloneEntry()
Clones itself. |
IPropertyName |
getCMPropertyName()
|
float |
getFuzziness()
|
java.lang.String |
getPropertyName()
Deprecated. as of NW04. Use getCMPropertyName() |
byte |
getPropertyOperator()
The property operator defines the context of the query entry value. |
byte |
getPropertyType()
|
java.lang.String |
getRowType()
Returns the row type |
java.util.List |
getSubstitutedTerms()
Returns the corrected terms |
byte |
getTermAction()
Returns the term action |
float |
getTermWeight()
|
java.lang.String |
getValue1AsString()
|
java.util.Date |
getValue1DateValue()
|
int |
getValue1IntValue()
|
java.lang.String |
getValue2AsString()
|
java.util.Date |
getValue2DateValue()
|
int |
getValue2IntValue()
|
java.lang.String |
getValueAsString()
|
java.util.Date |
getValueDateValue()
|
int |
getValueIntValue()
|
boolean |
isTermsChanged()
Returns true if the terms are changed |
void |
setDateValue(java.lang.String dateValue)
Sets the first value on date value. |
void |
setDateValue(java.lang.String dateValue1,
java.lang.String dateValue2)
Sets the first and second value on date values. |
void |
setFuzziness(float fuzziness)
must be used for fuzzy search. if no fuzziness is set the default fuzziness for the index is used. the default fuzziness can be set via the index administration |
void |
setPropertyName(IPropertyName cmPropertyName)
Optional: defines in which attribute the search is to be executed if an attribute search is executed |
void |
setPropertyName(java.lang.String propertyName)
Deprecated. as of NW04. See setPropertyName(IPropertyName) |
void |
setPropertyOperator(byte propertyOperator)
The property operator defines the context of the query entry value. |
void |
setPropertyType(byte propertyType)
Adds a property type. |
void |
setRowType(java.lang.String rowType)
Sets the row type |
void |
setSubstitutedTerms(java.util.List substitutedTerms)
Sets the corrected terms |
void |
setTermAction(byte termAction)
Adds a term action; the term action defines how the search is executed (fuzzy, exact,...) (it must only be called when the row type is ROW_TYPE_ATTRIBUTE or ROW_TYPE_TERM) |
void |
setTermsChanged(boolean hasChanged)
Set on true if the terms are changed |
void |
setTermWeight(float weight)
Sets the term weight the term weight goes from 0.0 ... 1.0 |
void |
setValue(java.util.Date dateValue)
Sets the value |
void |
setValue(java.util.Date dateValue1,
java.util.Date dateValue2)
result is between value1 and value2 |
void |
setValue(int intValue)
Sets the value |
void |
setValue(int intValue1,
int intValue2)
result is between value1 and value2 |
void |
setValue(java.lang.String stringValue)
Sets the value |
void |
setValue(java.lang.String value1,
java.lang.String value2)
|
boolean |
specialEqual1(IQueryEntry e2)
|
| Field Detail |
public static final byte TERM_ACTION_LINGUISTIC
public static final byte TERM_ACTION_FUZZY
public static final byte TERM_ACTION_NEAR_WIDTH
public static final byte TERM_ACTION_EXACT
public static final byte TERM_ACTION_SOUNDEX
public static final byte PROPERTY_TYPE_USE_META_MODEL
public static final byte PROPERTY_TYPE_STRING
public static final byte PROPERTY_TYPE_DATE
public static final byte PROPERTY_TYPE_INTEGER
public static final byte PROPERTY_TYPE_TEXT
public static final java.lang.String ROW_TYPE_TERM
public static final java.lang.String ROW_TYPE_ATTRIBUTE
public static final java.lang.String ROW_TYPE_OPERATOR
public static final java.lang.String ROW_TYPE_BRACKET_OPEN
public static final java.lang.String ROW_TYPE_BRACKET_CLOSE
public static final java.lang.String OPERATOR_AND
public static final java.lang.String OPERATOR_OR
public static final java.lang.String OPERATOR_NOT
public static final byte PROPERTY_OPERATOR_EQUAL
public static final byte PROPERTY_OPERATOR_NOT
public static final byte PROPERTY_OPERATOR_BETWEEN
public static final byte PROPERTY_OPERATOR_GREATER
public static final byte PROPERTY_OPERATOR_LESS
public static final byte PROPERTY_OPERATOR_GREATER_OR_EQUAL
public static final byte PROPERTY_OPERATOR_LESS_OR_EQUAL
| Method Detail |
public IQueryEntry cloneEntry()
public void setSubstitutedTerms(java.util.List substitutedTerms)
substitutedTerms - List of Stringspublic java.util.List getSubstitutedTerms()
public void setTermsChanged(boolean hasChanged)
hasChanged - public boolean isTermsChanged()
public void setValue(java.lang.String stringValue)
public void setValue(int intValue)
public void setValue(java.util.Date dateValue)
public void setDateValue(java.lang.String dateValue)
throws java.text.ParseException
dateValue -
public void setDateValue(java.lang.String dateValue1,
java.lang.String dateValue2)
throws java.text.ParseException
dateValue1 - dateValue2 -
public void setValue(int intValue1,
int intValue2)
public void setValue(java.lang.String value1,
java.lang.String value2)
public void setValue(java.util.Date dateValue1,
java.util.Date dateValue2)
public void setRowType(java.lang.String rowType)
throws WcmException
rowType - row type, see static attributes ROW_TYPE_xxx
public void setTermWeight(float weight)
throws WcmException
public void setTermAction(byte termAction)
throws WcmException
action - term action, use static attributes TERM_ACTION_xxx
public void setPropertyType(byte propertyType)
throws WcmException
ROW_TYPE_ATTRIBUTE.
The default value is PROPERTY_TYPE_STRING)property - type, use static attributes PROPERTY_TYPE_xxxpublic void setPropertyOperator(byte propertyOperator)
IQueryEntry.ROW_TYPE_ATTRIBUTE.
Use constants beginning with IQueryEntry.PROPERTY_OPERATOR_.
Default is IQueryEntry.PROPERTY_OPERATOR_EQUAL.operator - of the query entry value
public void setPropertyName(java.lang.String propertyName)
throws WcmException
property - name - name of the property in that has to be searched
public void setPropertyName(IPropertyName cmPropertyName)
throws WcmException
property - name - name of the property in that has to be searchedpublic java.lang.String getPropertyName()
public IPropertyName getCMPropertyName()
IPropertyName object that has been set.public byte getPropertyType()
public byte getPropertyOperator()
IQueryEntry.ROW_TYPE_ATTRIBUTE.
Use constants beginning with IQueryEntry.PROPERTY_OPERATOR_.
Default is IQueryEntry.PROPERTY_OPERATOR_EQUAL.public byte getTermAction()
public float getTermWeight()
public java.lang.String getRowType()
public java.lang.String getValue1AsString()
public java.util.Date getValue1DateValue()
public int getValue1IntValue()
public java.lang.String getValueAsString()
public java.util.Date getValueDateValue()
public int getValueIntValue()
public java.lang.String getValue2AsString()
public java.util.Date getValue2DateValue()
public int getValue2IntValue()
public void setFuzziness(float fuzziness)
fuzziness - - value between 0.0 and 1.0
where 1.0 is exact searchpublic float getFuzziness()
public boolean specialEqual1(IQueryEntry e2)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||