/** * INTERNAL: * Used to set the collection class by name. * This is required when building from metadata to allow the correct class loader to be used. */ public void useListClassName(String concreteClassName) { setContainerPolicy(new ListContainerPolicy(concreteClassName)); }
/** * INTERNAL: * Used to set the collection class by name. * This is required when building from metadata to allow the correct class loader to be used. */ public void useCollectionClassName(String concreteClassName) { setContainerPolicy(new CollectionContainerPolicy(concreteClassName)); }
/** * PUBLIC: * Configure the mapping to use an instance of the specified container class * to hold the nested objects. * <p>jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface. * <p>jdk1.1.x: The container class must be a subclass of Vector. */ public void useCollectionClass(Class concreteClass) { this.setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteClass)); }
/** * INTERNAL: * Used to set the collection class by name. * This is required when building from metadata to allow the correct class loader to be used. */ public void useCollectionClassName(String concreteClassName) { setContainerPolicy(new CollectionContainerPolicy(concreteClassName)); }
/** * PUBLIC: * Configure the mapping to use an instance of the specified container class * to hold the nested objects. * <p>jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface. * <p>jdk1.1.x: The container class must be a subclass of Vector. */ public void useCollectionClass(Class concreteClass) { this.setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteClass)); }
/** * PUBLIC: * Configure the mapping to use an instance of the specified container class * to hold the nested objects. * <p>jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface. * <p>jdk1.1.x: The container class must be a subclass of Vector. */ public void useCollectionClass(Class concreteClass) { this.setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteClass)); }
/** * INTERNAL: * Used to set the collection class by name. * This is required when building from metadata to allow the correct class loader to be used. */ public void useListClassName(String concreteClassName) { setContainerPolicy(new ListContainerPolicy(concreteClassName)); }
((AbstractCompositeDirectCollectionMapping)nextMapping).setValueConverter(converter); ((AbstractCompositeDirectCollectionMapping)nextMapping).setContainerPolicy(getContainerPolicy()); }else{ if(converter != null){
((AbstractCompositeDirectCollectionMapping)nextMapping).setValueConverter(converter); ((AbstractCompositeDirectCollectionMapping)nextMapping).setContainerPolicy(getContainerPolicy()); }else if(nextMapping.isAbstractCompositeCollectionMapping()){ if(converter != null){
((AbstractCompositeDirectCollectionMapping)nextMapping).setValueConverter(converter); ((AbstractCompositeDirectCollectionMapping)nextMapping).setContainerPolicy(getContainerPolicy()); }else if(nextMapping.isAbstractCompositeCollectionMapping()){ if(converter != null){