Class CopyOption

java.lang.Object
org.kuali.rice.krad.data.CopyOption
All Implemented Interfaces:
Serializable

public class CopyOption extends Object implements Serializable
CopyOption is used when calling the
invalid reference
DataObjectService#copyInstance(Object)
method to adjust the behavior of the method. See the constants defined within the class for the available options and descriptions.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • RESET_PK_FIELDS

      public static CopyOption RESET_PK_FIELDS
      Specify that the PK fields on the object must be cleared as part of the copy operation.
    • RESET_VERSION_NUMBER

      public static CopyOption RESET_VERSION_NUMBER
      Specify that the Version annotated field should be cleared if present on the copied object.
    • RESET_OBJECT_ID

      public static CopyOption RESET_OBJECT_ID
      Specify that the <tt>objectId</tt> field (see GloballyUnique) should be cleared on the copied object and all children.
  • Constructor Details

    • CopyOption

      public CopyOption(String optionId)
      Sets the option Id
      Parameters:
      optionId - cannot be null or blank.
  • Method Details

    • getOptionId

      public String getOptionId()
      Gets the option id.
      Returns:
      not null or blank.
    • toString

      public String toString()
      Overrides:
      toString in class Object