Modifier and Type | Method and Description |
---|---|
IThingIDList |
add(IThingID thingID)
Add an IThingID to the list.
|
IThingIDList |
add(IThingID[] thingIDs)
Add an array of IThingIDs to the list.
|
IThingIDList |
add(IThingIDList list)
Add another IThingIDList to the list.
|
boolean |
contains(IThingID thingID)
Check to see if the list contains a particular IThingID.
|
boolean |
equals(Object o)
Check to see whether list values match values in Object.
|
IThingID |
getBaseThingID()
Get the base Thing ID for the list.
|
int |
getEndIndex()
Get end index of list.
|
List<IThingID> |
getList()
Get the list of IThingIDs.
|
int |
getStartIndex()
Get start index of list.
|
IThingID |
getThingID(int index)
Shortcut for getting item.
|
String |
getThingString()
Get the list as a string of id's, useful for passing to the database.
|
boolean |
hasQuery()
Check to see whether setQuery has been called.
|
void |
merge(IThingIDList otherList)
This will merge all of the unique items in the other list into the current list.
|
void |
query(int startIndex,
int endIndex)
Execute a query that has been associated with this list.
|
void |
remove(IThingID thingID)
Remove a particular ID from the list.
|
void |
remove(IThingIDList thingIDList)
Removes a list of items from the list.
|
void |
setBaseThingID(IThingID baseThingID)
Set this list's base Thing ID.
|
void |
setIndexes(int startIndex,
int endIndex)
Set the list's start and end indexes.
|
void |
setQuery(Object[] params,
String sp,
IMetaContext mc)
Set up a query.
|
int |
size()
Return the number of items in the list.
|
IThingIDList |
subList(int start,
int end)
Returns sublist of this list starting from start to end index.
|
IThingID[] |
toArray()
Get the list as an array of IThingIDs.
|
int size()
IThingIDList subList(int start, int end)
start
- end
- IThingID getThingID(int index)
index
- Index of item to retrieve from list.IThingIDList add(IThingID thingID)
thingID
- IThingID to add to list.IThingIDList add(IThingID[] thingIDs)
thingIDs
- Array of IThingIDs.IThingIDList add(IThingIDList list)
list
- IThingIDList to add to the list.boolean contains(IThingID thingID)
thingID
- IThingID to check list for.int getStartIndex()
int getEndIndex()
void setIndexes(int startIndex, int endIndex)
startIndex
- The start index for the list.endIndex
- The end index for the list.String getThingString()
void remove(IThingID thingID)
thingID
- IThingID to remove from the list.void remove(IThingIDList thingIDList)
thingIDList
- List of items to remove from the list.void query(int startIndex, int endIndex) throws MetaException
startIndex
- Index of first item in list to use with query.endIndex
- Index of last item in list to use with query.MetaException
- if the stored query fails.com.webmethods.portal.service.meta2.util.ResultSetUtil#basicPagedThingList
boolean hasQuery()
void setQuery(Object[] params, String sp, IMetaContext mc)
params
- Parameters to pass to stored procedure.sp
- Stored procedure to call. SP must have correct result set.mc
- IMetaContext within which to execute this query (defines datasource).com.webmethods.portal.service.meta2.util.ResultSetUtil#basicPagedThingList
IThingID getBaseThingID()
void setBaseThingID(IThingID baseThingID)
baseThingID
- IThingID to set as list's base Thing ID.boolean equals(Object o)
void merge(IThingIDList otherList)
otherList
- IThingIDList of items to merge into list.IThingID[] toArray()