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

public Class SortedCollectionContainerPolicy

extends CollectionContainerPolicy
Class Inheritance
Imports
java.security.AccessController, .PrivilegedActionException, java.util.Comparator, java.lang.reflect.Constructor, org.eclipse.persistence.internal.helper.Helper, org.eclipse.persistence.exceptions.*, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, .PrivilegedGetConstructorFor, .PrivilegedInvokeConstructor, .PrivilegedNewInstanceFromClass

Purpose: A SortedCollectionContainerPolicy is ContainerPolicy whose container class implements the SortedInterface interface. Added for BUG # 3233263

Responsibilities: Provide the functionality to operate on an instance of a SortedSet.

See Also
ContainerPolicy, MapContainerPolicy

Field Summary

Modifier and TypeField and Description
protected Class<?>
protected String
protected Comparator<T>

Constructor Summary

AccessConstructor and Description
public
SortedCollectionContainerPolicy()

INTERNAL: Construct a new policy.

public
SortedCollectionContainerPolicy(Class<?> containerClass)

INTERNAL: Construct a new policy for the specified class.

public
SortedCollectionContainerPolicy(String containerClassName)

INTERNAL: Construct a new policy for the specified class name.

Method Summary

Modifier and TypeMethod and Description
public Object
public void
convertClassNamesToClasses(ClassLoader classLoader)

Overrides org.eclipse.persistence.internal.queries.InterfaceContainerPolicy.convertClassNamesToClasses.

INTERNAL: Convert all the class-name-based settings in this SortedCollectionContainerPolicy to actual class-based settings.
public Comparator<T>
getComparator()

INTERNAL: Return the stored comparator

public Class<?>
getComparatorClass()

INTERNAL: Return the stored comparator class

public String
getComparatorClassName()

INTERNAL: return stored comparator class name

public void
setComparator(Comparator<T> comparator)

INTERNAL: Sets a comparator object for this policy to use when instantiating a new SortedSet object.

public void
setComparatorClass(Class<?> comparatorClass)

INTERNAL: Sets a comparator class for this policy to use when instantiating a new SortedSet object.

public void
setComparatorClassName(String comparatorClassName)

INTERNAL: Sets a comparator class name for this policy to use when instantiating a new SortedSet object.

Inherited from org.eclipse.persistence.internal.queries.CollectionContainerPolicy:
addIntobuildContainerFromVectorclearcloneForcontainsgetInterfaceTypehasOrderisCollectionPolicyisValidContaineriteratorForremoveFromsizeFor

Field Detail

comparatorClassback to summary
protected Class<?> comparatorClass
comparatorClassNameback to summary
protected String comparatorClassName
m_comparatorback to summary
protected Comparator<T> m_comparator

Constructor Detail

SortedCollectionContainerPolicyback to summary
public SortedCollectionContainerPolicy()

INTERNAL: Construct a new policy.

SortedCollectionContainerPolicyback to summary
public SortedCollectionContainerPolicy(Class<?> containerClass)

INTERNAL: Construct a new policy for the specified class.

SortedCollectionContainerPolicyback to summary
public SortedCollectionContainerPolicy(String containerClassName)

INTERNAL: Construct a new policy for the specified class name.

Method Detail

containerInstanceback to summary
public Object containerInstance()

Overrides org.eclipse.persistence.internal.queries.ContainerPolicy.containerInstance.

Implements org.eclipse.persistence.internal.core.queries.CoreContainerPolicy.containerInstance.

INTERNAL Override from ContainerPolicy. Need to maintain the comparator in the new instance

Annotations
@Override
convertClassNamesToClassesback to summary
public void convertClassNamesToClasses(ClassLoader classLoader)

Overrides org.eclipse.persistence.internal.queries.InterfaceContainerPolicy.convertClassNamesToClasses.

INTERNAL: Convert all the class-name-based settings in this SortedCollectionContainerPolicy to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.

Annotations
@Override
getComparatorback to summary
public Comparator<T> getComparator()

INTERNAL: Return the stored comparator

getComparatorClassback to summary
public Class<?> getComparatorClass()

INTERNAL: Return the stored comparator class

getComparatorClassNameback to summary
public String getComparatorClassName()

INTERNAL: return stored comparator class name

setComparatorback to summary
public void setComparator(Comparator<T> comparator)

INTERNAL: Sets a comparator object for this policy to use when instantiating a new SortedSet object.

setComparatorClassback to summary
public void setComparatorClass(Class<?> comparatorClass)

INTERNAL: Sets a comparator class for this policy to use when instantiating a new SortedSet object.

setComparatorClassNameback to summary
public void setComparatorClassName(String comparatorClassName)

INTERNAL: Sets a comparator class name for this policy to use when instantiating a new SortedSet object.