Top Description Fields Constructors Methods
org.eclipse.persistence.internal.identitymaps

public Class IdentityMapKeyEnumeration

extends AbstractIdentityMapEnumeration<CacheKey>
Class Inheritance
Imports
java.util.*

Allows to iterate over CacheKey instances stored in the IdentityMap.

Field Summary

Inherited from org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration:
cacheKeysIteratornextKeyshouldCheckReadLocks

Constructor Summary

AccessConstructor and Description
public
IdentityMapKeyEnumeration(Collection<CacheKey>
Collection of CacheKey instances to be iterated
keys
)

Creates an instance of CacheKey instances enumeration.

public
IdentityMapKeyEnumeration(Collection<CacheKey>
Collection of CacheKey instances to be iterated
keys
,
boolean
value of true if read lock on the CacheKey instances should be checked or false otherwise
shouldCheckReadLocks
)

Creates an instance of CacheKey instances enumeration.

Method Summary

Modifier and TypeMethod and Description
public CacheKey

Returns:

the next element of this enumeration
nextElement
()

Implements abstract org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration.nextElement.

Implements java.util.Enumeration.nextElement.

Get next element of CacheKey enumeration if this enumeration object has at least one more element to provide.
Inherited from org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration:
getNextElementhasMoreElements

Constructor Detail

IdentityMapKeyEnumerationback to summary
public IdentityMapKeyEnumeration(Collection<CacheKey> keys)

Creates an instance of CacheKey instances enumeration. Checking of read lock on the CacheKey instances is turned on.

Parameters
keys:Collection<CacheKey>

Collection of CacheKey instances to be iterated

IdentityMapKeyEnumerationback to summary
public IdentityMapKeyEnumeration(Collection<CacheKey> keys, boolean shouldCheckReadLocks)

Creates an instance of CacheKey instances enumeration.

Parameters
keys:Collection<CacheKey>

Collection of CacheKey instances to be iterated

shouldCheckReadLocks:boolean

value of true if read lock on the CacheKey instances should be checked or false otherwise

Method Detail

nextElementback to summary
public CacheKey nextElement()

Implements abstract org.eclipse.persistence.internal.identitymaps.AbstractIdentityMapEnumeration.nextElement.

Implements java.util.Enumeration.nextElement.

Get next element of CacheKey enumeration if this enumeration object has at least one more element to provide.

Returns:CacheKey

the next element of this enumeration

Annotations
@Override
Exceptions
NoSuchElementException:
if no more elements exist