Class EnumValueUpdate

java.lang.Object
org.ivoa.dm.executionbroker.AbstractUpdate
org.ivoa.dm.executionbroker.EnumValueUpdate
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:EnumValueUpdate", role=objectType) public class EnumValueUpdate extends AbstractUpdate implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple enum value update. objectType: EnumValueUpdate
  • Field Details

    • value

      @VoDml(id="execbroker:EnumValueUpdate.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String value
      The enum value to use. : Attribute value : multiplicity 1
  • Constructor Details

    • EnumValueUpdate

      public EnumValueUpdate()
      Creates a new EnumValueUpdate
    • EnumValueUpdate

      public EnumValueUpdate(String value, String kind, String path)
      full parameter constructor.
      Parameters:
      value - The enum value to use.
      kind - The kind of update.
      path - The path this update applies to.
    • EnumValueUpdate

      public EnumValueUpdate(EnumValueUpdate other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • EnumValueUpdate

      public EnumValueUpdate(AbstractUpdate superinstance, String value)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      value - The enum value to use.
  • Method Details

    • copyMe

      public AbstractUpdate copyMe()
      make a clone of the object taking into account current polymorhic type.
      Overrides:
      copyMe in class AbstractUpdate
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(EnumValueUpdate other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getValue

      public String getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

      public void setValue(String pValue)
      Set value Attribute.
      Parameters:
      pValue - value to set
    • withValue

      public EnumValueUpdate withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      EnumValueUpdate
    • createEnumValueUpdate

      public static EnumValueUpdate createEnumValueUpdate(Consumer<EnumValueUpdate.EnumValueUpdateBuilder> f)
      create a EnumValueUpdate in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class AbstractUpdate
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Overrides:
      delete in class AbstractUpdate