Class Availability

java.lang.Object
org.ivoa.dm.vosi.availability.Availability
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="VOSIAvail:Availability", role=objectType) public class Availability extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
. objectType: Availability
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • available

      @VoDml(id="VOSIAvail:Availability.available", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean available
      Indicates whether the service is currently available. : Attribute available : multiplicity 1
    • upSince

      @VoDml(id="VOSIAvail:Availability.upSince", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date upSince
      The instant at which the service last became available. : Attribute upSince : multiplicity 0..1
    • downAt

      @VoDml(id="VOSIAvail:Availability.downAt", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date downAt
      The instant at which the service is next scheduled to become unavailable. : Attribute downAt : multiplicity 0..1
    • backAt

      @VoDml(id="VOSIAvail:Availability.backAt", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date backAt
      The instant at which the service is scheduled to become available again after a period of unavailability. : Attribute backAt : multiplicity 0..1
    • note

      @VoDml(id="VOSIAvail:Availability.note", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> note
      A textual note concerning availability. : Attribute note : multiplicity 0..*
  • Constructor Details

    • Availability

      public Availability()
      Creates a new Availability
    • Availability

      public Availability(Boolean available, Date upSince, Date downAt, Date backAt, List<String> note)
      full parameter constructor.
      Parameters:
      available - Indicates whether the service is currently available.
      upSince - The instant at which the service last became available.
      downAt - The instant at which the service is next scheduled to become unavailable.
      backAt - The instant at which the service is scheduled to become available again after a period of unavailability.
      note - A textual note concerning availability.
    • Availability

      public Availability(Availability 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(Availability 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.
    • getAvailable

      public Boolean getAvailable()
      Returns available Attribute.
      Returns:
      available Attribute
    • setAvailable

      public void setAvailable(Boolean pAvailable)
      Set available Attribute.
      Parameters:
      pAvailable - value to set
    • withAvailable

      public Availability withAvailable(Boolean pAvailable)
      fluent setter for available Attribute.
      Parameters:
      pAvailable - value to set
      Returns:
      Availability
    • getUpSince

      public Date getUpSince()
      Returns upSince Attribute.
      Returns:
      upSince Attribute
    • setUpSince

      public void setUpSince(Date pUpSince)
      Set upSince Attribute.
      Parameters:
      pUpSince - value to set
    • withUpSince

      public Availability withUpSince(Date pUpSince)
      fluent setter for upSince Attribute.
      Parameters:
      pUpSince - value to set
      Returns:
      Availability
    • getDownAt

      public Date getDownAt()
      Returns downAt Attribute.
      Returns:
      downAt Attribute
    • setDownAt

      public void setDownAt(Date pDownAt)
      Set downAt Attribute.
      Parameters:
      pDownAt - value to set
    • withDownAt

      public Availability withDownAt(Date pDownAt)
      fluent setter for downAt Attribute.
      Parameters:
      pDownAt - value to set
      Returns:
      Availability
    • getBackAt

      public Date getBackAt()
      Returns backAt Attribute.
      Returns:
      backAt Attribute
    • setBackAt

      public void setBackAt(Date pBackAt)
      Set backAt Attribute.
      Parameters:
      pBackAt - value to set
    • withBackAt

      public Availability withBackAt(Date pBackAt)
      fluent setter for backAt Attribute.
      Parameters:
      pBackAt - value to set
      Returns:
      Availability
    • getNote

      public List<String> getNote()
      Returns note Attribute.
      Returns:
      note Attribute
    • setNote

      public void setNote(List<String> pNote)
      Set note Attribute.
      Parameters:
      pNote - value to set
    • withNote

      public Availability withNote(List<String> pNote)
      fluent setter for note Attribute.
      Parameters:
      pNote - value to set
      Returns:
      Availability
    • createAvailability

      public static Availability createAvailability(Consumer<Availability.AvailabilityBuilder> f)
      create a Availability 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>