public class CopyOption extends Object implements Serializable
DataObjectService#copyInstance(Object)
method to adjust the behavior of
the method.
See the constants defined within the class for the available options and descriptions.Modifier and Type | Field and Description |
---|---|
static CopyOption |
RESET_OBJECT_ID
Specify that the <tt>objectId</tt> field (see
GloballyUnique ) should be cleared on the copied
object and all children. |
static CopyOption |
RESET_PK_FIELDS
Specify that the PK fields on the object must be cleared as part of the copy operation.
|
static CopyOption |
RESET_VERSION_NUMBER
Specify that the
Version annotated field should be cleared if present on the copied object. |
Constructor and Description |
---|
CopyOption(String optionId)
Sets the option Id
|
public static CopyOption RESET_PK_FIELDS
public static CopyOption RESET_VERSION_NUMBER
Version
annotated field should be cleared if present on the copied object.public static CopyOption RESET_OBJECT_ID
GloballyUnique
) should be cleared on the copied
object and all children.public CopyOption(String optionId)
optionId
- cannot be null or blank.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.