Class ResDate

java.lang.Object
org.ivoa.dm.regtap.ResDate
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="RegTAP:ResDate", role=objectType) public class ResDate extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A date associated with an event in the life cycle of the resource. objectType: ResDate
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • date_value

      @VoDml(id="RegTAP:ResDate.date_value", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date date_value
      A date associated with an event in the life cycle of the resource. : Attribute date_value : multiplicity 1
    • value_role

      @VoDml(id="RegTAP:ResDate.value_role", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String value_role
      A ivoa:string indicating what the date refers to, e.g., created, availability, updated. This value is generally drawn from a controlled vocabulary. : Attribute value_role : multiplicity 1
  • Constructor Details

    • ResDate

      public ResDate()
      Creates a new ResDate
    • ResDate

      public ResDate(Date date_value, String value_role)
      full parameter constructor.
      Parameters:
      date_value - A date associated with an event in the life cycle of the resource.
      value_role - A ivoa:string indicating what the date refers to, e.g., created, availability, updated. This value is generally drawn from a controlled vocabulary.
    • ResDate

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

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(ResDate 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.
    • getDate_value

      public Date getDate_value()
      Returns date_value Attribute.
      Returns:
      date_value Attribute
    • setDate_value

      public void setDate_value(Date pDate_value)
      Set date_value Attribute.
      Parameters:
      pDate_value - value to set
    • withDate_value

      public ResDate withDate_value(Date pDate_value)
      fluent setter for date_value Attribute.
      Parameters:
      pDate_value - value to set
      Returns:
      ResDate
    • getValue_role

      public String getValue_role()
      Returns value_role Attribute.
      Returns:
      value_role Attribute
    • setValue_role

      public void setValue_role(String pValue_role)
      Set value_role Attribute.
      Parameters:
      pValue_role - value to set
    • withValue_role

      public ResDate withValue_role(String pValue_role)
      fluent setter for value_role Attribute.
      Parameters:
      pValue_role - value to set
      Returns:
      ResDate
    • createResDate

      public static ResDate createResDate(Consumer<ResDate.ResDateBuilder> f)
      create a ResDate 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
    • delete

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