Namespace: OpenEdge.Core.Collections
Class
ValueCollection
Parent classes:
Inherits: OpenEdge.Core.Collections.MapBackedCollection

Copyright (c) 2013, 2020 by Progress Software Corporation. All rights reserved.
File:ValueCollection
Purpose:ICollection implementation over values in an IMap (also TT based)
object that needs collection capabilities..
used to return Values IMap
Author(s):hdaniels
Created:2010
Notes:no empty constructor, specialized for IMap
- Changes to the map are reflected here, and vice-versa.
- Supports removal and removes the corresponding map entry from the map
(Iterator.remove, Collection.remove, removeAll, retainAll and clear) .
- Do not support add and addAll.
- no empty constructor, specialised for IMap




Method Summary
Options Name Purpose
LOGICAL Add (Object)
Inherited from OpenEdge.Core.Collections.MapBackedCollection
LOGICAL AddAll (ICollection)
Inherited from OpenEdge.Core.Collections.MapBackedCollection
LOGICAL AddArray (Object[])
Inherited from OpenEdge.Core.Collections.MapBackedCollection
Clear ()
Inherited from OpenEdge.Core.Collections.MapBackedCollection
LOGICAL Contains (Object)
Overrides OpenEdge.Core.Collections.MapBackedCollection:Contains (Object)
LOGICAL ContainsAll (ICollection)
Overrides OpenEdge.Core.Collections.MapBackedCollection:ContainsAll (ICollection)
LOGICAL IsEmpty ()
Inherited from OpenEdge.Core.Collections.MapBackedCollection
OpenEdge.Core.Collections.IIterator Iterator () /* Returns a new IIterator over the collection. */
Inherited from OpenEdge.Core.Collections.MapBackedCollection
LOGICAL Remove (Object) /* slow... use Remove on Map or Map:KeySet() instead */
Overrides OpenEdge.Core.Collections.MapBackedCollection:Remove (Object)
LOGICAL RemoveAll (ICollection)
Overrides OpenEdge.Core.Collections.MapBackedCollection:RemoveAll (ICollection)
LOGICAL RetainAll (ICollection)
Overrides OpenEdge.Core.Collections.MapBackedCollection:RetainAll (ICollection)
Progress.Lang.Object ToArray () /* ToArray should not be used with large collections If there is too much data the ABL will throw: Attempt to update data exceeding 32000. (12371) */
Inherited from OpenEdge.Core.Collections.MapBackedCollection
ToTable (table-handle) /* Returns a TT of the collection's data. This may be expensive, depending on the amount of data in the map. @param output table-handle A TT containing the data. */
Inherited from OpenEdge.Core.Collections.MapBackedCollection

Constructor Summary
Options Name Purpose
ValueCollection (IMap, handle, character)
ValueCollection (IMap, handle, character, character) /* Constructor @param IMap The owning map @param handle The underlying TT holding the data @param character (optional) Query string @param character The field holding the data in the TT */

Property Summary
Options Name Purpose
HANDLE KeyField
Inherited from OpenEdge.Core.Collections.MapBackedCollection
HANDLE OwningBuffer
Inherited from OpenEdge.Core.Collections.MapBackedCollection
OpenEdge.Core.Collections.IMap OwningMap
Inherited from OpenEdge.Core.Collections.MapBackedCollection
CHARACTER QueryString
Inherited from OpenEdge.Core.Collections.MapBackedCollection
INTEGER Size
Inherited from OpenEdge.Core.Collections.MapBackedCollection


Method Detail
Top

PUBLIC LOGICAL Add (Object)

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Parameters:
newObject Progress.Lang.Object
Returns LOGICAL
Top

PUBLIC LOGICAL AddAll (ICollection)

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Parameters:
newCollection OpenEdge.Core.Collections.ICollection
Returns LOGICAL
Top

PUBLIC LOGICAL AddArray (Object[])

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Parameters:
o Progress.Lang.Object
Returns LOGICAL
Top

PUBLIC Clear ()

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Top

PUBLIC LOGICAL Contains (Object)

Overrides OpenEdge.Core.Collections.MapBackedCollection:Contains (Object)
Parameters:
checkObject Progress.Lang.Object
Returns LOGICAL
Top

PUBLIC LOGICAL ContainsAll (ICollection)

Overrides OpenEdge.Core.Collections.MapBackedCollection:ContainsAll (ICollection)
Parameters:
poCollection OpenEdge.Core.Collections.ICollection
Returns LOGICAL
Top

PUBLIC LOGICAL IsEmpty ()

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Returns LOGICAL
Top

PUBLIC OpenEdge.Core.Collections.IIterator Iterator ()

Inherited from OpenEdge.Core.Collections.MapBackedCollection
/* Returns a new IIterator over the collection.
Returns OpenEdge.Core.Collections.IIterator
Top

PUBLIC LOGICAL Remove (Object)

Overrides OpenEdge.Core.Collections.MapBackedCollection:Remove (Object)
/* slow... use Remove on Map or Map:KeySet() instead
Parameters:
poOld Progress.Lang.Object
Returns LOGICAL
Top

PUBLIC LOGICAL RemoveAll (ICollection)

Overrides OpenEdge.Core.Collections.MapBackedCollection:RemoveAll (ICollection)
Parameters:
poRemoveCol OpenEdge.Core.Collections.ICollection
Returns LOGICAL
Top

PUBLIC LOGICAL RetainAll (ICollection)

Overrides OpenEdge.Core.Collections.MapBackedCollection:RetainAll (ICollection)
Parameters:
poCol OpenEdge.Core.Collections.ICollection
Returns LOGICAL
Top

PUBLIC Progress.Lang.Object ToArray ()

Inherited from OpenEdge.Core.Collections.MapBackedCollection
/* ToArray should not be used with large collections
If there is too much data the ABL will throw:
Attempt to update data exceeding 32000. (12371)
Returns Progress.Lang.Object
Top

PUBLIC ToTable (table-handle)

Inherited from OpenEdge.Core.Collections.MapBackedCollection
/* Returns a TT of the collection's data.
This may be expensive, depending on the amount of data in the map.
Parameters:
tt TABLE-HANDLE


Constructor Detail
Top

PUBLIC ValueCollection (IMap, handle, character)

Parameters:
poMap OpenEdge.Core.Collections.IMap
phTT HANDLE
pcValuefield CHARACTER
Top

PUBLIC ValueCollection (IMap, handle, character, character)

/* Constructor
Parameters:
pMap OpenEdge.Core.Collections.IMap
pTT HANDLE
pQueryString CHARACTER
pValueField CHARACTER


Property Detail
Top

PROTECTED HANDLE KeyField

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Returns HANDLE
Top

PROTECTED HANDLE OwningBuffer

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Returns HANDLE
Top

PROTECTED OpenEdge.Core.Collections.IMap OwningMap

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Returns OpenEdge.Core.Collections.IMap
Top

PROTECTED CHARACTER QueryString

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Returns CHARACTER
Top

PUBLIC INTEGER Size

Inherited from OpenEdge.Core.Collections.MapBackedCollection
Returns INTEGER


Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0