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 Attribute.getId()
org.ivoa.dm.ivoa.RealQuantity
Returns restFrequency Attribute.org.ivoa.dm.ivoa.StringIdentifier
Returns splatalogId Attribute.Returns transition Attribute.void
persistRefs
(jakarta.persistence.EntityManager _em) Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.void
setDescription
(String pDescription) Set description Attribute.void
setRestFrequency
(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) Set restFrequency Attribute.void
setSplatalogId
(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) Set splatalogId Attribute.void
setTransition
(String pTransition) Set transition Attribute.void
updateUsing
(ExpectedSpectralLine other) Update this object with the content of the given object.withDescription
(String pDescription) fluent setter for description Attribute.withRestFrequency
(org.ivoa.dm.ivoa.RealQuantity pRestFrequency) fluent setter for restFrequency Attribute.withSplatalogId
(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) fluent setter for splatalogId Attribute.withTransition
(String pTransition) fluent setter for transition Attribute.
-
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) Set restFrequency Attribute.- Parameters:
pRestFrequency
- value to set
-
withRestFrequency
fluent setter for restFrequency Attribute.- Parameters:
pRestFrequency
- value to set- Returns:
- ExpectedSpectralLine
-
getTransition
Returns transition Attribute.- Returns:
- transition Attribute
-
setTransition
Set transition Attribute.- Parameters:
pTransition
- value to set
-
withTransition
fluent setter for transition Attribute.- Parameters:
pTransition
- value to set- Returns:
- ExpectedSpectralLine
-
getSplatalogId
public org.ivoa.dm.ivoa.StringIdentifier getSplatalogId()Returns splatalogId Attribute.- Returns:
- splatalogId Attribute
-
setSplatalogId
public void setSplatalogId(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId) Set splatalogId Attribute.- Parameters:
pSplatalogId
- value to set
-
withSplatalogId
fluent setter for splatalogId Attribute.- Parameters:
pSplatalogId
- value to set- Returns:
- ExpectedSpectralLine
-
getDescription
Returns description Attribute.- Returns:
- description Attribute
-
setDescription
Set description Attribute.- Parameters:
pDescription
- value to set
-
withDescription
fluent setter for description Attribute.- Parameters:
pDescription
- value to set- Returns:
- ExpectedSpectralLine
-
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
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-