Purpose: A CollectionContainerPolicy is ContainerPolicy whose container class implements the Collection interface.
Responsibilities: Provide the functionality to operate on an instance of a Collection. @see ContainerPolicy @see MapContainerPolicy
598599600601602603604605606607608
mapping.useTransparentMap(mapKey); } else if (rawClass == List.class) { mapping.useTransparentList(); } else if (rawClass == Collection.class) { mapping.useTransparentCollection(); mapping.setContainerPolicy(new CollectionContainerPolicy(ClassConstants.IndirectList_Class)); } else if (rawClass == Set.class) { mapping.useTransparentSet(); } else { // Because of validation we should never get this far. }