Class BaseParam
java.lang.Object
org.ivoa.dm.registry.vodataservice.BaseParam
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
 InputParam,TableParam
@Entity
@VoDml(id="VODataService:BaseParam",
       role=objectType)
public class BaseParam
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A description of a parameter that places no restriction on
                           the parameter's data type.
                         
                           As the parameter's data type is usually important, schemas
                           normally employ a sub-class of this type
                           rather than this type directly. 
 objectType:  BaseParam
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for BaseParam, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected StringA free-text description of a parameter's or column's contents.protected StringThe name of the parameter or column.protected StringThe name of a unified content descriptor that describes the scientific content of the parameter.protected StringThe unit associated with the values in the parameter or column.protected StringAn identifier for a concept in a data model that the data in this schema represent. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static BaseParamcreate a BaseParam in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns description Attribute.getId()getName()Returns name Attribute.getUcd()Returns ucd Attribute.getUnit()Returns unit Attribute.getUtype()Returns utype Attribute.voidsetDescription(String pDescription) Set description Attribute.voidSet name Attribute.voidSet ucd Attribute.voidSet unit Attribute.voidSet utype Attribute.voidupdateUsing(BaseParam other) Update this object with the content of the given object.withDescription(String pDescription) fluent setter for description Attribute.fluent setter for name Attribute.fluent setter for ucd Attribute.fluent setter for unit Attribute.fluent setter for utype Attribute. 
- 
Field Details
- 
_id
inserted database key - 
name
@VoDml(id="VODataService:BaseParam.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nameThe name of the parameter or column. : Attribute name : multiplicity 0..1 - 
description
@VoDml(id="VODataService:BaseParam.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String descriptionA free-text description of a parameter's or column's contents. : Attribute description : multiplicity 0..1 - 
unit
@VoDml(id="VODataService:BaseParam.unit", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String unitThe unit associated with the values in the parameter or column. : Attribute unit : multiplicity 0..1 - 
ucd
@VoDml(id="VODataService:BaseParam.ucd", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String ucdThe name of a unified content descriptor that describes the scientific content of the parameter. There are no requirements for compliance with any particular UCD standard. : Attribute ucd : multiplicity 0..1 - 
utype
@VoDml(id="VODataService:BaseParam.utype", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String utypeAn identifier for a concept in a data model that the data in this schema represent. The form of the utype string depends on the data model; common forms are sequences of dotted identifiers (e.g., in SSA) or URIs (e.g., in RegTAP). : Attribute utype : multiplicity 0..1 
 - 
 - 
Constructor Details
- 
BaseParam
public BaseParam()Creates a new BaseParam - 
BaseParam
full parameter constructor.- Parameters:
 name- The name of the parameter or column.description- A free-text description of a parameter's or column's contents.unit- The unit associated with the values in the parameter or column.ucd- The name of a unified content descriptor that describes the scientific content of the parameter. There are no requirements for compliance with any particular UCD standard.utype- An identifier for a concept in a data model that the data in this schema represent. The form of the utype string depends on the data model; common forms are sequences of dotted identifiers (e.g., in SSA) or URIs (e.g., in RegTAP).
 - 
BaseParam
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
 
 - 
copyMe
make a clone of the object taking into account current polymorhic type.- Returns:
 - the cloned object.
 
 - 
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:
 - BaseParam
 
 - 
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:
 - BaseParam
 
 - 
getUnit
Returns unit Attribute.- Returns:
 - unit Attribute
 
 - 
setUnit
Set unit Attribute.- Parameters:
 pUnit- value to set
 - 
withUnit
fluent setter for unit Attribute.- Parameters:
 pUnit- value to set- Returns:
 - BaseParam
 
 - 
getUcd
Returns ucd Attribute.- Returns:
 - ucd Attribute
 
 - 
setUcd
Set ucd Attribute.- Parameters:
 pUcd- value to set
 - 
withUcd
fluent setter for ucd Attribute.- Parameters:
 pUcd- value to set- Returns:
 - BaseParam
 
 - 
getUtype
Returns utype Attribute.- Returns:
 - utype Attribute
 
 - 
setUtype
Set utype Attribute.- Parameters:
 pUtype- value to set
 - 
withUtype
fluent setter for utype Attribute.- Parameters:
 pUtype- value to set- Returns:
 - BaseParam
 
 - 
createBaseParam
create a BaseParam 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>
 
 -