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

All Known Subinterfaces:
SyncBoList

public interface SyncBoCollection

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

Example: Where orderDescriptor is a SyncBo and facade is the SyncBoDataFacade.

 SyncBoCollection list = facade.getSyncBos(orderDescriptor);
 //To get a specified SyncBo whose key is syncKey
 SyncBo syncBo = list.get(syncKey);

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

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

 //To get the iterator of the SyncBo entities in this SyncBoCollection.
 MeIterator it = list.iterator();
 

Author:
SAP

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

Method Detail

size

public int size()
Returns the number of SyncBo entities in this collection.

Returns:
the number of SyncBo entities in this collection

get

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

Parameters:
key - a key in the collection
Returns:
the SyncBo 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.

iterator

public MeIterator iterator()
Returns the iterator of the SyncBo entities in this SyncBoCollection.

Returns:
the MeIterator of 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


Copyright © 2005 SAP AG. All Rights Reserved.