com.corrspt.xeo.api.core
Class BaseModelCollectionImpl

java.lang.Object
  extended by com.corrspt.xeo.api.core.BaseModelCollectionImpl
All Implemented Interfaces:
BaseModelCollection, java.lang.Iterable<BaseModel>, java.util.Iterator<BaseModel>

public class BaseModelCollectionImpl
extends java.lang.Object
implements BaseModelCollection

Base Model


Constructor Summary
BaseModelCollectionImpl(netgest.bo.runtime.bridgeHandler it)
           
 
Method Summary
 void add(BaseModel newModel)
           
 void add(java.util.List<BaseModel> list)
           
 java.util.List<BaseModel> getElements()
          Returns a list of all elements in the bridge
 long getRecordCount()
          Retrieves the number of records in the collection
 boolean hasBaseModel(BaseModel modelToCheck)
           
 boolean hasNext()
           
 boolean isChanged()
          Whether the collection was changed or not
 boolean isEmpty()
          Whether the collection is empty
 java.util.Iterator<BaseModel> iterator()
           
 BaseModel next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseModelCollectionImpl

public BaseModelCollectionImpl(netgest.bo.runtime.bridgeHandler it)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<BaseModel>

next

public BaseModel next()
Specified by:
next in interface java.util.Iterator<BaseModel>

getElements

public java.util.List<BaseModel> getElements()
Returns a list of all elements in the bridge

Specified by:
getElements in interface BaseModelCollection
Returns:
A list of all elements in the bridge

add

public void add(BaseModel newModel)
Specified by:
add in interface BaseModelCollection

add

public void add(java.util.List<BaseModel> list)
Specified by:
add in interface BaseModelCollection

hasBaseModel

public boolean hasBaseModel(BaseModel modelToCheck)
Specified by:
hasBaseModel in interface BaseModelCollection

isChanged

public boolean isChanged()
Whether the collection was changed or not

Specified by:
isChanged in interface BaseModelCollection
Returns:
true if the collection was chnaged and false otherwise

isEmpty

public boolean isEmpty()
Whether the collection is empty

Specified by:
isEmpty in interface BaseModelCollection
Returns:
true if the collection is empty and false otherwise

getRecordCount

public long getRecordCount()
Retrieves the number of records in the collection

Specified by:
getRecordCount in interface BaseModelCollection
Returns:
the number of records in the collection

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<BaseModel>

iterator

public java.util.Iterator<BaseModel> iterator()
Specified by:
iterator in interface java.lang.Iterable<BaseModel>