com.sap.mdm.search
Class TupleSearch

java.lang.Object
  extended bycom.sap.mdm.search.SearchGroup
      extended bycom.sap.mdm.search.Search
          extended bycom.sap.mdm.search.TupleSearch
All Implemented Interfaces:
Cloneable, SearchItem

public class TupleSearch
extends Search

A search object for specifying search criteria on tuple values. It is mostly use for a multi-valued tuple field that has large tuple record set.

Since:
7.1

Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.search.Search
Search.CheckOutSearchType
 
Field Summary
 
Fields inherited from class com.sap.mdm.search.Search
STANDARD_OPERATOR
 
Fields inherited from class com.sap.mdm.search.SearchGroup
AND_OPERATOR, OR_OPERATOR
 
Fields inherited from interface com.sap.mdm.search.SearchItem
SEARCH, SEARCH_GROUP, SEARCH_PARAMETER
 
Constructor Summary
TupleSearch(TableId searchTableId, FieldId[] fieldPath, TupleRecordId tupleRecordId)
          Defines a tuple value search for the second level tuple records and beyond.
TupleSearch(TableId searchTableId, FieldId fieldId, RecordId recordId)
          Defines a tuple value search for the first level tuple records.
 
Method Summary
static Search deserialize(String value)
          Deserialize the string into a tuple search object.
 boolean equals(Object obj)
           
 FieldId[] getFieldPath()
          Returns the field path.
 RecordId getRecordId()
          Returns the record Id.
 TupleRecordId getTupleRecordId()
          Returns the tuple record Id.
 int hashCode()
           
 String serialize()
          Serialize the tuple search object into a string.
 
Methods inherited from class com.sap.mdm.search.Search
addTupleFilteringItem, clone, getCheckoutSearchType, getFilteringGroupOperator, getRegionLayer, getSearchTableId, getTupleFilteringItems, getType, isIncludeCheckoutRecords, removeTupleFilteringItem, setCheckoutSearchType, setFilteringGroupOperator, setIncludeCheckoutRecords, setRegionLayer, toString
 
Methods inherited from class com.sap.mdm.search.SearchGroup
addSearchItem, addSearchItem, clear, getComparisonOperator, getSearchItem, getSearchItems, removeSearchItem, setComparisonOperator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TupleSearch

public TupleSearch(TableId searchTableId,
                   FieldId fieldId,
                   RecordId recordId)
Defines a tuple value search for the first level tuple records.

Parameters:
searchTableId - a search table
fieldId - a tuple field
recordId - a record

TupleSearch

public TupleSearch(TableId searchTableId,
                   FieldId[] fieldPath,
                   TupleRecordId tupleRecordId)
Defines a tuple value search for the second level tuple records and beyond.

Parameters:
searchTableId - a search table
fieldPath - a list of field, the first being a field from the search table and sequence fields being the tuple fields down the hierarchy
tupleRecordId - a parent tuple record
Method Detail

getFieldPath

public FieldId[] getFieldPath()
Returns the field path.

Returns:
a field path

getRecordId

public RecordId getRecordId()
Returns the record Id.

Returns:
a record Id

getTupleRecordId

public TupleRecordId getTupleRecordId()
Returns the tuple record Id.

Returns:
a tuple record Id

serialize

public String serialize()
Serialize the tuple search object into a string. It's not meant for long term storage.

Overrides:
serialize in class Search
Returns:
the string representing the tuple search object
See Also:
deserialize(String)

deserialize

public static Search deserialize(String value)
Deserialize the string into a tuple search object.

Parameters:
value - the string representation for the tuple search object
Returns:
a search object
See Also:
serialize()

hashCode

public int hashCode()
Overrides:
hashCode in class Search

equals

public boolean equals(Object obj)
Overrides:
equals in class Search


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.