org.kuali.rice.krad.uif.component
Annotation Type ReferenceCopy


@Target(value=FIELD)
@Retention(value=RUNTIME)
@Documented
public @interface ReferenceCopy

Annotation for Component fields to indicate only the property reference should be made (as opposed to a new object) when doing a component copy

Author:
Kuali Rice Team (rice.collab@kuali.org)

Optional Element Summary
 boolean newCollectionInstance
          Indicates whether a new collection instance should be made with collection elements copied by reference
 boolean referenceTransient
          Indicates that a field should be omitted from copying.
 

newCollectionInstance

public abstract boolean newCollectionInstance
Indicates whether a new collection instance should be made with collection elements copied by reference

Returns:
boolean true if new collection instance should be made, false if the whole collection should be copied by reference
Default:
false

referenceTransient

public abstract boolean referenceTransient
Indicates that a field should be omitted from copying.

Returns:
true if the field should be omitted from copying, false to follow newCollectionInstance() semantics.
Default:
false


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.