Package org.ivoa.dm.caom2
Class Polarization
java.lang.Object
org.ivoa.dm.caom2.Polarization
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Polarization",
role=objectType)
public class Polarization
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of polarization measurements included in the data.
objectType: Polarization
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Polarization, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new PolarizationPolarization(List<PolarizationState> states, Integer dimension) full parameter constructor.Polarization(Polarization other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Polarizationcreate a Polarization in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns dimension Attribute.getId()Returns states Attribute.voidsetDimension(Integer pDimension) Set dimension Attribute.voidsetStates(List<PolarizationState> pStates) Set states Attribute.voidupdateUsing(Polarization other) Update this object with the content of the given object.withDimension(Integer pDimension) fluent setter for dimension Attribute.withStates(List<PolarizationState> pStates) fluent setter for states Attribute.
-
Field Details
-
_id
inserted database key -
states
@VoDml(id="caom2:Polarization.states", role=attribute, type="caom2:PolarizationState", typeRole=enumeration) protected List<PolarizationState> statesstandard polarization states included (CHANGED cardinality in CAOM-2.5). : Attribute states : multiplicity 1..* -
dimension
@VoDml(id="caom2:Polarization.dimension", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer dimensionnumber of polarization states included. : Attribute dimension : multiplicity 0..1
-
-
Constructor Details
-
Polarization
public Polarization()Creates a new Polarization -
Polarization
full parameter constructor.- Parameters:
states- standard polarization states included (CHANGED cardinality in CAOM-2.5).dimension- number of polarization states included.
-
Polarization
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.
-
getStates
Returns states Attribute.- Returns:
- states Attribute
-
setStates
Set states Attribute.- Parameters:
pStates- value to set
-
withStates
fluent setter for states Attribute.- Parameters:
pStates- value to set- Returns:
- Polarization
-
getDimension
Returns dimension Attribute.- Returns:
- dimension Attribute
-
setDimension
Set dimension Attribute.- Parameters:
pDimension- value to set
-
withDimension
fluent setter for dimension Attribute.- Parameters:
pDimension- value to set- Returns:
- Polarization
-
createPolarization
create a Polarization 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>
-