Package org.ivoa.dm.vosi.availability
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
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Availability, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected BooleanIndicates whether the service is currently available.protected DateThe instant at which the service is scheduled to become available again after a period of unavailability.protected DateThe instant at which the service is next scheduled to become unavailable.A textual note concerning availability.protected DateThe instant at which the service last became available. - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Availabilityfull parameter constructor.Availability(Availability other) Copy Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionstatic Availabilitycreate a Availability in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns available Attribute.Returns backAt Attribute.Returns downAt Attribute.getId()getNote()Returns note Attribute.Returns upSince Attribute.voidsetAvailable(Boolean pAvailable) Set available Attribute.voidSet backAt Attribute.voidSet downAt Attribute.voidSet note Attribute.voidsetUpSince(Date pUpSince) Set upSince Attribute.voidupdateUsing(Availability other) Update this object with the content of the given object.withAvailable(Boolean pAvailable) fluent setter for available Attribute.withBackAt(Date pBackAt) fluent setter for backAt Attribute.withDownAt(Date pDownAt) fluent setter for downAt Attribute.fluent setter for note Attribute.withUpSince(Date pUpSince) fluent setter for upSince Attribute. 
- 
Field Details
- 
_id
inserted database key - 
available
@VoDml(id="VOSIAvail:Availability.available", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean availableIndicates 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 upSinceThe 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 downAtThe 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 backAtThe 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> noteA textual note concerning availability. : Attribute note : multiplicity 0..* 
 - 
 - 
Constructor Details
- 
Availability
public Availability()Creates a new Availability - 
Availability
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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 
 - 
 - 
Method Details
- 
getId
- Specified by:
 getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
 - the id
 
 - 
updateUsing
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
Returns available Attribute.- Returns:
 - available Attribute
 
 - 
setAvailable
Set available Attribute.- Parameters:
 pAvailable- value to set
 - 
withAvailable
fluent setter for available Attribute.- Parameters:
 pAvailable- value to set- Returns:
 - Availability
 
 - 
getUpSince
Returns upSince Attribute.- Returns:
 - upSince Attribute
 
 - 
setUpSince
Set upSince Attribute.- Parameters:
 pUpSince- value to set
 - 
withUpSince
fluent setter for upSince Attribute.- Parameters:
 pUpSince- value to set- Returns:
 - Availability
 
 - 
getDownAt
Returns downAt Attribute.- Returns:
 - downAt Attribute
 
 - 
setDownAt
Set downAt Attribute.- Parameters:
 pDownAt- value to set
 - 
withDownAt
fluent setter for downAt Attribute.- Parameters:
 pDownAt- value to set- Returns:
 - Availability
 
 - 
getBackAt
Returns backAt Attribute.- Returns:
 - backAt Attribute
 
 - 
setBackAt
Set backAt Attribute.- Parameters:
 pBackAt- value to set
 - 
withBackAt
fluent setter for backAt Attribute.- Parameters:
 pBackAt- value to set- Returns:
 - Availability
 
 - 
getNote
Returns note Attribute.- Returns:
 - note Attribute
 
 - 
setNote
Set note Attribute.- Parameters:
 pNote- value to set
 - 
withNote
fluent setter for note Attribute.- Parameters:
 pNote- value to set- Returns:
 - Availability
 
 - 
createAvailability
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:
 forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
 - 
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
 deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
 
 -