com.sap.ip.me.api.smartsync
Interface RowCollection

All Known Subinterfaces:
RowList

public interface RowCollection

A RowCollection is a collection of Row entities. It uses the Row's key field value as the key to that Row entitiy.Its also possible to a get a iterator of the Row entities in this RowCollection.

Example: Where syncBo is a SyncBo and rowDesc a RowDescriptor.

 RowCollection rowList =  syncBo.getRows(rowDesc);
 //To get a specified row101 whose key is syncKey
 Row row101 = rowList.get(syncKey);

 //To get the number of Rows present in the collection
 int size = rowList.size();

 //To test if the row with the key as syncKey is present in the collection
 boolean contains = rowList.contains(syncKey);

 //To get the iterator of the Row entities in this RowCollection.
 MeIterator it = rowList.iterator();
 

Author:
SAP

Method Summary
 boolean contains(java.lang.Object key)
          Tests if the specified object is a key in this collection.
 Row get(java.lang.Object key)
          Returns the Row entitiy to which the specified key is mapped in this RowCollection.
 MeIterator iterator()
          Returns the iterator of the Row entities in this RowCollection.
 int size()
          Returns the number of Row entities in this RowCollection.
 

Method Detail

size

public int size()
Returns the number of Row entities in this RowCollection.

Returns:
the number of Row entities in this RowCollection

get

public Row get(java.lang.Object key)
Returns the Row entitiy to which the specified key is mapped in this RowCollection.

Parameters:
key - a key in the collection
Returns:
the Row entity which has a key field value equal to the specified key; null if the key does not correspond to any key field value in this collection.

contains

public boolean contains(java.lang.Object key)
Tests if the specified object is a key in this collection.

Parameters:
key - a possible key object
Returns:
true if the specified key is a key in this collection; otherwise false.

iterator

public MeIterator iterator()
Returns the iterator of the Row entities in this RowCollection.

Returns:
an MeIterator of this collection


Copyright © 2005 SAP AG. All Rights Reserved.