Package org.ivoa.dm.caom2
Class Target
java.lang.Object
org.ivoa.dm.caom2.Target
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Target",
role=objectType)
public class Target
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the target of an observation.
objectType: Target
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Target, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyadditional keywords that describe the target; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g.protected Booleanindicates that the target is a moving object; used for solar system objects but not high proper motion stars.protected Stringproper name of the target.protected Doublecosmological redshift of the target.protected Booleanindicates that the target is typically used as a standard (astrometric, photometric, etc).protected Stringresolvable target identifier; the targetID URI should be of the form {scheme}:{id} so it can be resolved (for example: naif:170100) .protected TargetTypetype of target; typically used to figure out what the target name means and where to look for additional information about it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Targetcreate a Target in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns keywords Attribute.Returns moving Attribute.getName()Returns name Attribute.Returns redshift Attribute.Returns standard Attribute.Returns targetID Attribute.getType()Returns type Attribute.voidsetKeywords(List<String> pKeywords) Set keywords Attribute.voidSet moving Attribute.voidSet name Attribute.voidsetRedshift(Double pRedshift) Set redshift Attribute.voidsetStandard(Boolean pStandard) Set standard Attribute.voidsetTargetID(String pTargetID) Set targetID Attribute.voidsetType(TargetType pType) Set type Attribute.voidupdateUsing(Target other) Update this object with the content of the given object.withKeywords(List<String> pKeywords) fluent setter for keywords Attribute.withMoving(Boolean pMoving) fluent setter for moving Attribute.fluent setter for name Attribute.withRedshift(Double pRedshift) fluent setter for redshift Attribute.withStandard(Boolean pStandard) fluent setter for standard Attribute.withTargetID(String pTargetID) fluent setter for targetID Attribute.withType(TargetType pType) fluent setter for type Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="caom2:Target.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nameproper name of the target. : Attribute name : multiplicity 1 -
targetID
@VoDml(id="caom2:Target.targetID", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String targetIDresolvable target identifier; the targetID URI should be of the form {scheme}:{id} so it can be resolved (for example: naif:170100) . : Attribute targetID : multiplicity 0..1 -
type
@VoDml(id="caom2:Target.type", role=attribute, type="caom2:TargetType", typeRole=dataType) protected TargetType typetype of target; typically used to figure out what the target name means and where to look for additional information about it. : Attribute type : multiplicity 0..1 -
redshift
@VoDml(id="caom2:Target.redshift", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double redshiftcosmological redshift of the target. : Attribute redshift : multiplicity 0..1 -
standard
@VoDml(id="caom2:Target.standard", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean standardindicates that the target is typically used as a standard (astrometric, photometric, etc). : Attribute standard : multiplicity 0..1 -
moving
@VoDml(id="caom2:Target.moving", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean movingindicates that the target is a moving object; used for solar system objects but not high proper motion stars. : Attribute moving : multiplicity 0..1 -
keywords
@VoDml(id="caom2:Target.keywords", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> keywordsadditional keywords that describe the target; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g. to store all keywords in a single column in a table). : Attribute keywords : multiplicity 0..*
-
-
Constructor Details
-
Target
public Target()Creates a new Target -
Target
public Target(String name, String targetID, TargetType type, Double redshift, Boolean standard, Boolean moving, List<String> keywords) full parameter constructor.- Parameters:
name- proper name of the target.targetID- resolvable target identifier; the targetID URI should be of the form {scheme}:{id} so it can be resolved (for example: naif:170100) .type- type of target; typically used to figure out what the target name means and where to look for additional information about it.redshift- cosmological redshift of the target.standard- indicates that the target is typically used as a standard (astrometric, photometric, etc).moving- indicates that the target is a moving object; used for solar system objects but not high proper motion stars.keywords- additional keywords that describe the target; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g. to store all keywords in a single column in a table).
-
Target
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.
-
getName
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName- value to set- Returns:
- Target
-
getTargetID
Returns targetID Attribute.- Returns:
- targetID Attribute
-
setTargetID
Set targetID Attribute.- Parameters:
pTargetID- value to set
-
withTargetID
fluent setter for targetID Attribute.- Parameters:
pTargetID- value to set- Returns:
- Target
-
getType
Returns type Attribute.- Returns:
- type Attribute
-
setType
Set type Attribute.- Parameters:
pType- value to set
-
withType
fluent setter for type Attribute.- Parameters:
pType- value to set- Returns:
- Target
-
getRedshift
Returns redshift Attribute.- Returns:
- redshift Attribute
-
setRedshift
Set redshift Attribute.- Parameters:
pRedshift- value to set
-
withRedshift
fluent setter for redshift Attribute.- Parameters:
pRedshift- value to set- Returns:
- Target
-
getStandard
Returns standard Attribute.- Returns:
- standard Attribute
-
setStandard
Set standard Attribute.- Parameters:
pStandard- value to set
-
withStandard
fluent setter for standard Attribute.- Parameters:
pStandard- value to set- Returns:
- Target
-
getMoving
Returns moving Attribute.- Returns:
- moving Attribute
-
setMoving
Set moving Attribute.- Parameters:
pMoving- value to set
-
withMoving
fluent setter for moving Attribute.- Parameters:
pMoving- value to set- Returns:
- Target
-
getKeywords
Returns keywords Attribute.- Returns:
- keywords Attribute
-
setKeywords
Set keywords Attribute.- Parameters:
pKeywords- value to set
-
withKeywords
fluent setter for keywords Attribute.- Parameters:
pKeywords- value to set- Returns:
- Target
-
createTarget
create a Target 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>
-