Package org.ivoa.dm.regtap
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for ResDate, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResDate
create a ResDate in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns date_value Attribute.getId()
Returns value_role Attribute.void
setDate_value
(Date pDate_value) Set date_value Attribute.void
setValue_role
(String pValue_role) Set value_role Attribute.void
updateUsing
(ResDate other) Update this object with the content of the given object.withDate_value
(Date pDate_value) fluent setter for date_value Attribute.withValue_role
(String pValue_role) fluent setter for value_role Attribute.
-
Field Details
-
_id
inserted database key -
date_value
@VoDml(id="RegTAP:ResDate.date_value", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date date_valueA 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_roleA 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
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
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:
getId
in 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.
-
getDate_value
Returns date_value Attribute.- Returns:
- date_value Attribute
-
setDate_value
Set date_value Attribute.- Parameters:
pDate_value
- value to set
-
withDate_value
fluent setter for date_value Attribute.- Parameters:
pDate_value
- value to set- Returns:
- ResDate
-
getValue_role
Returns value_role Attribute.- Returns:
- value_role Attribute
-
setValue_role
Set value_role Attribute.- Parameters:
pValue_role
- value to set
-
withValue_role
fluent setter for value_role Attribute.- Parameters:
pValue_role
- value to set- Returns:
- ResDate
-
createResDate
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 interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-