/** * PUBLIC: * Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between the attribute and the real object. * This allows for an application specific class to be used which wraps the value holder. * The purpose of this is that the domain objects will not require to import the ValueHolderInterface class. * Refer also to transparent indirection for a transparent solution to indirection. */ public void useContainerIndirection(Class containerClass) { ContainerIndirectionPolicy policy = new ContainerIndirectionPolicy(); policy.setContainerClass(containerClass); setIndirectionPolicy(policy); }
/** * PUBLIC: * Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between * the attribute and the real object. * This allows for the reading of the target from the database to be delayed until accessed. * This defaults to true and is strongly suggested as it give a huge performance gain. */ public void useContainerIndirection(Class containerClass) { ContainerIndirectionPolicy policy = new ContainerIndirectionPolicy(); policy.setContainerClass(containerClass); setIndirectionPolicy(policy); }
/** * PUBLIC: * Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between the attribute and the real object. * This allows for an application specific class to be used which wraps the value holder. * The purpose of this is that the domain objects will not require to import the ValueHolderInterface class. * Refer also to transparent indirection for a transparent solution to indirection. */ public void useContainerIndirection(Class containerClass) { ContainerIndirectionPolicy policy = new ContainerIndirectionPolicy(); policy.setContainerClass(containerClass); setIndirectionPolicy(policy); }
/** * PUBLIC: * Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between the attribute and the real object. * This allows for an application specific class to be used which wraps the value holder. * The purpose of this is that the domain objects will not require to import the ValueHolderInterface class. * Refer also to transparent indirection for a transparent solution to indirection. */ public void useContainerIndirection(Class containerClass) { ContainerIndirectionPolicy policy = new ContainerIndirectionPolicy(); policy.setContainerClass(containerClass); setIndirectionPolicy(policy); }
/** * PUBLIC: * Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between * the attribute and the real object. * This allows for the reading of the target from the database to be delayed until accessed. * This defaults to true and is strongly suggested as it give a huge performance gain. */ public void useContainerIndirection(Class containerClass) { ContainerIndirectionPolicy policy = new ContainerIndirectionPolicy(); policy.setContainerClass(containerClass); setIndirectionPolicy(policy); }
/** * PUBLIC: * Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between * the attribute and the real object. * This allows for the reading of the target from the database to be delayed until accessed. * This defaults to true and is strongly suggested as it give a huge performance gain. */ public void useContainerIndirection(Class containerClass) { ContainerIndirectionPolicy policy = new ContainerIndirectionPolicy(); policy.setContainerClass(containerClass); setIndirectionPolicy(policy); }