Class TargetField

java.lang.Object
org.ivoa.dm.proposal.prop.Field
org.ivoa.dm.proposal.prop.TargetField
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:TargetField", role=objectType) public class TargetField extends Field implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
the field points to the associated target. objectType: TargetField
  • Constructor Details

    • TargetField

      public TargetField()
      Creates a new TargetField
    • TargetField

      public TargetField(String name)
      full parameter constructor.
      Parameters:
      name - .
    • TargetField

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

      public TargetField(Field superinstance)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
  • Method Details

    • copyMe

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

      public void updateUsing(TargetField 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.
    • createTargetField

      public static TargetField createTargetField(Consumer<TargetField.TargetFieldBuilder> f)
      create a TargetField 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 Field
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class Field