Class MaterializeOption

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

public class MaterializeOption extends Object implements Serializable
MaterializeOption is used when calling the DataObjectWrapper.materializeReferencedObjects(MaterializeOption...) 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

    • REFERENCES

      public static MaterializeOption REFERENCES
      Specify that only references should be materialized. Adding this disables the default of refreshing both references and collections.
    • COLLECTIONS

      public static MaterializeOption COLLECTIONS
      Specify that only collections should be materialized. Adding this disables the default of refreshing both references and collections.
    • UPDATE_UPDATABLE_REFS

      public static MaterializeOption UPDATE_UPDATABLE_REFS
      Specify that references and/or collections which are saved when the wrapped object is saved should also be refreshed. CAUTION: This has the potential to overwrite previously updated data. This will effectively reset all child objects to their current saved state.
    • NULL_INVALID_REFS

      public static MaterializeOption NULL_INVALID_REFS
      If this option is set, when the foreign key fields do not point to a saved object (per the persistence provider), the object reference will be nulled out. Without this option, the object in that reference (if any) will be left alone if a valid object is not found.
    • INCLUDE_EAGER_REFS

      public static MaterializeOption INCLUDE_EAGER_REFS
      Specify that non-lazy-loaded references should also be reloaded from the persistence provider.
  • Constructor Details

    • MaterializeOption

      public MaterializeOption(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