Package org.ivoa.dm.proposal.prop
Class ExpectedSpectralLine
java.lang.Object
org.ivoa.dm.proposal.prop.ExpectedSpectralLine
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:ExpectedSpectralLine",
role=objectType)
public class ExpectedSpectralLine
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Brief description of a spectral line.
objectType: ExpectedSpectralLine
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for ExpectedSpectralLine, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new ExpectedSpectralLineExpectedSpectralLine
(org.ivoa.dm.ivoa.RealQuantity restFrequency, String transition, org.ivoa.dm.ivoa.StringIdentifier splatalogId, String description) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpectedSpectralLine
create a ExpectedSpectralLine in functional builder style.void
Returns description AttributegetId()
org.ivoa.dm.ivoa.RealQuantity
Returns restFrequency Attributeorg.ivoa.dm.ivoa.StringIdentifier
Returns splatalogId AttributeReturns transition Attributevoid
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setDescription
(String pDescription) Defines description Attributevoid
setRestFrequency
(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) Defines restFrequency Attributevoid
setSplatalogId
(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) Defines splatalogId Attributevoid
setTransition
(String pTransition) Defines transition Attributevoid
updateUsing
(ExpectedSpectralLine other) Update this object with the content of the given object.withDescription
(String pDescription) withRestFrequency
(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) withSplatalogId
(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) withTransition
(String pTransition)
-
Field Details
-
_id
inserted database key -
restFrequency
@VoDml(id="proposal:ExpectedSpectralLine.restFrequency", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity restFrequency. : Attribute restFrequency : multiplicity 1 -
transition
@VoDml(id="proposal:ExpectedSpectralLine.transition", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String transition. : Attribute transition : multiplicity 0..1 -
splatalogId
@VoDml(id="proposal:ExpectedSpectralLine.splatalogId", role=attribute, type="ivoa:stringIdentifier", typeRole=primitiveType) protected org.ivoa.dm.ivoa.StringIdentifier splatalogId. : Attribute splatalogId : multiplicity 1 -
description
@VoDml(id="proposal:ExpectedSpectralLine.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String description. : Attribute description : multiplicity 1
-
-
Constructor Details
-
ExpectedSpectralLine
public ExpectedSpectralLine()Creates a new ExpectedSpectralLine -
ExpectedSpectralLine
public ExpectedSpectralLine(org.ivoa.dm.ivoa.RealQuantity restFrequency, String transition, org.ivoa.dm.ivoa.StringIdentifier splatalogId, String description) full parameter constructor.- Parameters:
restFrequency
- .transition
- .splatalogId
- .description
- .
-
ExpectedSpectralLine
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.
-
getRestFrequency
public org.ivoa.dm.ivoa.RealQuantity getRestFrequency()Returns restFrequency Attribute- Returns:
- restFrequency Attribute
-
setRestFrequency
public void setRestFrequency(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) Defines restFrequency Attribute- Parameters:
pRestFrequency
- value to set
-
withRestFrequency
-
getTransition
Returns transition Attribute- Returns:
- transition Attribute
-
setTransition
Defines transition Attribute- Parameters:
pTransition
- value to set
-
withTransition
-
getSplatalogId
public org.ivoa.dm.ivoa.StringIdentifier getSplatalogId()Returns splatalogId Attribute- Returns:
- splatalogId Attribute
-
setSplatalogId
public void setSplatalogId(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) Defines splatalogId Attribute- Parameters:
pSplatalogId
- value to set
-
withSplatalogId
-
getDescription
Returns description Attribute- Returns:
- description Attribute
-
setDescription
Defines description Attribute- Parameters:
pDescription
- value to set
-
withDescription
-
createExpectedSpectralLine
public static ExpectedSpectralLine createExpectedSpectralLine(Consumer<ExpectedSpectralLine.ExpectedSpectralLineBuilder> f) create a ExpectedSpectralLine 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
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-