Package org.ivoa.dm.tapschema
Class Column
java.lang.Object
org.ivoa.dm.tapschema.Column
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<String>
@Entity
@VoDml(id="tapschema:column",
role=objectType)
public class Column
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<String>, org.ivoa.vodml.jaxb.XmlIdManagement
the column.
objectType: Column
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Composite key for Column.static class
A builder class for column, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
.protected Integer
used to recommend table ordering for clients.protected String
name of the column.protected TAPType
the type of the column (VOTable semantics).protected String
.protected Boolean
does the column have an index.protected Boolean
indicates that the column is considered a core part of the content; clients can use this hint to make the principal column(s) visible, for example by selecting them by default in generating an ADQL query.protected Boolean
is the column defined by a standard.protected String
additional key to parent of composition.protected String
.protected String
.protected String
.protected String
. -
Constructor Summary
ConstructorsConstructorDescriptionColumn()
Creates a new columnColumn
(String column_name, TAPType datatype, String arraysize, String xtype, String description, String utype, String unit, String ucd, Boolean indexed, Boolean principal, Boolean std, Integer column_index) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Column
create a column in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns arraysize Attribute.Returns column_index Attribute.Returns column_name Attribute.Returns datatype Attribute.Returns description Attribute.getId()
return the database key id.Returns indexed Attribute.Returns principal Attribute.getStd()
Returns std Attribute.getUcd()
Returns ucd Attribute.getUnit()
Returns unit Attribute.getUtype()
Returns utype Attribute.getXmlId()
getXtype()
Returns xtype Attribute.boolean
void
setArraysize
(String pArraysize) Set arraysize Attribute.void
setColumn_index
(Integer pColumn_index) Set column_index Attribute.void
setColumn_name
(String pColumn_name) Set column_name Attribute.void
setDatatype
(TAPType pDatatype) Set datatype Attribute.void
setDescription
(String pDescription) Set description Attribute.void
setIndexed
(Boolean pIndexed) Set indexed Attribute.void
setPrincipal
(Boolean pPrincipal) Set principal Attribute.void
Set std Attribute.void
Set ucd Attribute.void
Set unit Attribute.void
Set utype Attribute.void
void
Set xtype Attribute.void
updateUsing
(Column other) Update this object with the content of the given object.withArraysize
(String pArraysize) fluent setter for arraysize Attribute.withColumn_index
(Integer pColumn_index) fluent setter for column_index Attribute.withColumn_name
(String pColumn_name) fluent setter for column_name Attribute.withDatatype
(TAPType pDatatype) fluent setter for datatype Attribute.withDescription
(String pDescription) fluent setter for description Attribute.withIndexed
(Boolean pIndexed) fluent setter for indexed Attribute.withPrincipal
(Boolean pPrincipal) fluent setter for principal Attribute.fluent setter for std Attribute.fluent setter for ucd Attribute.fluent setter for unit Attribute.fluent setter for utype Attribute.fluent setter for xtype Attribute.
-
Field Details
-
table_name
additional key to parent of composition. -
column_name
@VoDml(id="tapschema:column.column_name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String column_namename of the column. : Attribute column_name : multiplicity 1 -
datatype
@VoDml(id="tapschema:column.datatype", role=attribute, type="tapschema:TAPType", typeRole=enumeration) protected TAPType datatypethe type of the column (VOTable semantics). : Attribute datatype : multiplicity 1 -
arraysize
@VoDml(id="tapschema:column.arraysize", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String arraysize. : Attribute arraysize : multiplicity 0..1 -
xtype
@VoDml(id="tapschema:column.xtype", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String xtype. : Attribute xtype : multiplicity 0..1 -
description
@VoDml(id="tapschema:column.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String description. : Attribute description : multiplicity 0..1 -
utype
@VoDml(id="tapschema:column.utype", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String utype. : Attribute utype : multiplicity 0..1 -
unit
@VoDml(id="tapschema:column.unit", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String unit. : Attribute unit : multiplicity 0..1 -
ucd
@VoDml(id="tapschema:column.ucd", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String ucd. : Attribute ucd : multiplicity 0..1 -
indexed
@VoDml(id="tapschema:column.indexed", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean indexeddoes the column have an index. : Attribute indexed : multiplicity 1 -
principal
@VoDml(id="tapschema:column.principal", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean principalindicates that the column is considered a core part of the content; clients can use this hint to make the principal column(s) visible, for example by selecting them by default in generating an ADQL query. In cases where the service selects the columns to return (such as a query language without an explicit output selection), the principal column indicates those columns that are returned by default. : Attribute principal : multiplicity 1 -
std
@VoDml(id="tapschema:column.std", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean stdis the column defined by a standard. : Attribute std : multiplicity 1 -
column_index
@VoDml(id="tapschema:column.column_index", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer column_indexused to recommend table ordering for clients. Clients may order by index (ascending) so lower index items would appear earlier in a listing. : Attribute column_index : multiplicity 0..1
-
-
Constructor Details
-
Column
public Column()Creates a new column -
Column
public Column(String column_name, TAPType datatype, String arraysize, String xtype, String description, String utype, String unit, String ucd, Boolean indexed, Boolean principal, Boolean std, Integer column_index) full parameter constructor.- Parameters:
column_name
- name of the column.datatype
- the type of the column (VOTable semantics).arraysize
- .xtype
- .description
- .utype
- .unit
- .ucd
- .indexed
- does the column have an index.principal
- indicates that the column is considered a core part of the content; clients can use this hint to make the principal column(s) visible, for example by selecting them by default in generating an ADQL query. In cases where the service selects the columns to return (such as a query language without an explicit output selection), the principal column indicates those columns that are returned by default.std
- is the column defined by a standard.column_index
- used to recommend table ordering for clients. Clients may order by index (ascending) so lower index items would appear earlier in a listing.
-
Column
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
-
Method Details
-
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.
-
getColumn_name
Returns column_name Attribute.- Returns:
- column_name Attribute
-
setColumn_name
Set column_name Attribute.- Parameters:
pColumn_name
- value to set
-
withColumn_name
fluent setter for column_name Attribute.- Parameters:
pColumn_name
- value to set- Returns:
- column
-
getDatatype
Returns datatype Attribute.- Returns:
- datatype Attribute
-
setDatatype
Set datatype Attribute.- Parameters:
pDatatype
- value to set
-
withDatatype
fluent setter for datatype Attribute.- Parameters:
pDatatype
- value to set- Returns:
- column
-
getArraysize
Returns arraysize Attribute.- Returns:
- arraysize Attribute
-
setArraysize
Set arraysize Attribute.- Parameters:
pArraysize
- value to set
-
withArraysize
fluent setter for arraysize Attribute.- Parameters:
pArraysize
- value to set- Returns:
- column
-
getXtype
Returns xtype Attribute.- Returns:
- xtype Attribute
-
setXtype
Set xtype Attribute.- Parameters:
pXtype
- value to set
-
withXtype
fluent setter for xtype Attribute.- Parameters:
pXtype
- value to set- Returns:
- column
-
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:
- column
-
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:
- column
-
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:
- column
-
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:
- column
-
getIndexed
Returns indexed Attribute.- Returns:
- indexed Attribute
-
setIndexed
Set indexed Attribute.- Parameters:
pIndexed
- value to set
-
withIndexed
fluent setter for indexed Attribute.- Parameters:
pIndexed
- value to set- Returns:
- column
-
getPrincipal
Returns principal Attribute.- Returns:
- principal Attribute
-
setPrincipal
Set principal Attribute.- Parameters:
pPrincipal
- value to set
-
withPrincipal
fluent setter for principal Attribute.- Parameters:
pPrincipal
- value to set- Returns:
- column
-
getStd
Returns std Attribute.- Returns:
- std Attribute
-
setStd
Set std Attribute.- Parameters:
pStd
- value to set
-
withStd
fluent setter for std Attribute.- Parameters:
pStd
- value to set- Returns:
- column
-
getColumn_index
Returns column_index Attribute.- Returns:
- column_index Attribute
-
setColumn_index
Set column_index Attribute.- Parameters:
pColumn_index
- value to set
-
withColumn_index
fluent setter for column_index Attribute.- Parameters:
pColumn_index
- value to set- Returns:
- column
-
getXmlId
- Specified by:
getXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKey
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
getId
return the database key id. Note that this is the same as attribute column_name.- Specified by:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<String>
- Returns:
- the id
-
createColumn
create a column 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<String>
-