com.sybase.persistence
Class SortOrderCollection

java.lang.Object
  extended by com.sybase.persistence.SortOrderCollection

public final class SortOrderCollection
extends java.lang.Object

Holds a collection of SortOrder objects.


Constructor Summary
SortOrderCollection()
          Creates instance of SortOrderCollection.
 
Method Summary
 void add(SortOrder sortOrder)
          Adds the SortOrder to this collection.
 boolean contains(SortOrder sortOrder)
          Checks if this collections contains the given SortOrder.
 int count()
          * Gets the number of SortOrder objects in this collection.
 SortOrder getByIndex(int index)
          Gets a SortOrder by index.
 int indexOf(SortOrder sortOrder)
          Determines the index of the specified SortOrder.
 void insert(int index, SortOrder sortOrder)
          Inserts specified SortOrder object at given index.
 void remove(SortOrder sortOrder)
          Removes specified SortOrder object from this collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortOrderCollection

public SortOrderCollection()
Creates instance of SortOrderCollection.

Method Detail

getByIndex

public SortOrder getByIndex(int index)
Gets a SortOrder by index.

Parameters:
index - The zero-based index of the SortOrder to find.
Returns:
Returns SortOrder.

add

public void add(SortOrder sortOrder)
Adds the SortOrder to this collection.

Parameters:
sortOrder -

insert

public void insert(int index,
                   SortOrder sortOrder)
Inserts specified SortOrder object at given index.

Parameters:
index -
sortOrder -

remove

public void remove(SortOrder sortOrder)
Removes specified SortOrder object from this collection.

Parameters:
sortOrder -

contains

public boolean contains(SortOrder sortOrder)
Checks if this collections contains the given SortOrder.

Parameters:
sortOrder - SortOrder to check.
Returns:
Returns true if dataSort is found; otherwise, false.

indexOf

public int indexOf(SortOrder sortOrder)
Determines the index of the specified SortOrder.

Parameters:
sortOrder - The SortOrder to find.
Returns:
Returns the index of item if found; otherwise, -1.

count

public int count()
* Gets the number of SortOrder objects in this collection.

Returns: