Class Table
java.lang.Object
org.ivoa.dm.registry.vodataservice.Table
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
 Atable
@Entity
@VoDml(id="VODataService:Table",
       role=objectType)
public class Table
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
.
 objectType:  Table
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Table, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected List<TableParam>A description of a table column.protected StringA free-text description of the table's contents .protected List<ForeignKey>A description of a foreign keys, one or more columns from the current table that can be used to join with another table.protected StringThe fully qualified name of the table.protected IntegerThe approximate size of the table in rows.protected StringA descriptive, human-interpretable name for the table.protected StringA name for the role this table plays.protected StringAn identifier for a concept in a data model that the data in this table represent. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.registry.vodataservice.TableParam to the composition.voidAdd a org.ivoa.dm.registry.vodataservice.ForeignKey to the composition.copyMe()make a clone of the object taking into account current polymorhic type.static Tablecreate a Table in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns column composition as an immutable list.Returns description Attribute.Returns foreignKey composition as an immutable list.getId()getName()Returns name Attribute.getNrows()Returns nrows Attribute.getTitle()Returns title Attribute.getType()Returns type Attribute.getUtype()Returns utype Attribute.voidRemove a org.ivoa.dm.registry.vodataservice.TableParam from the composition.voidRemove a org.ivoa.dm.registry.vodataservice.ForeignKey from the composition.voidupdate a org.ivoa.dm.registry.vodataservice.TableParam in the composition.voidupdate a org.ivoa.dm.registry.vodataservice.ForeignKey in the composition.voidsetColumn(List<TableParam> pColumn) Defines whole column composition.voidsetDescription(String pDescription) Set description Attribute.voidsetForeignKey(List<ForeignKey> pForeignKey) Defines whole foreignKey composition.voidSet name Attribute.voidSet nrows Attribute.voidSet title Attribute.voidSet type Attribute.voidSet utype Attribute.voidupdateUsing(Table 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 nrows Attribute.fluent setter for title Attribute.fluent setter for type Attribute.fluent setter for utype Attribute. 
- 
Field Details
- 
_id
inserted database key - 
name
@VoDml(id="VODataService:Table.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nameThe fully qualified name of the table. This name should include all catalogue or schema prefixes needed to sufficiently uniquely distinguish it in a query. In general, the format of the qualified name may depend on the context; however, when the table is intended to be queryable via ADQL, then the catalogue and schema qualifiers are delimited from the table name with dots (.). : Attribute name : multiplicity 1 - 
title
@VoDml(id="VODataService:Table.title", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String titleA descriptive, human-interpretable name for the table. This is used for display purposes. There is no requirement regarding uniqueness. : Attribute title : multiplicity 0..1 - 
description
@VoDml(id="VODataService:Table.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String descriptionA free-text description of the table's contents . : Attribute description : multiplicity 0..1 - 
utype
@VoDml(id="VODataService:Table.utype", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String utypeAn identifier for a concept in a data model that the data in this table 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 - 
nrows
@VoDml(id="VODataService:Table.nrows", role=attribute, type="ivoa:nonnegativeInteger", typeRole=primitiveType) protected Integer nrowsThe approximate size of the table in rows. This is not expected to be exact. For instance, the estimates on table sizes databases keep for query planning purposes are suitable for this field. : Attribute nrows : multiplicity 0..1 - 
column
@VoDml(id="VODataService:Table.column", role=composition, type="VODataService:TableParam", typeRole=objectType) protected List<TableParam> columnA description of a table column. composition column : ( Multiplicity : 0..* ) - 
foreignKey
@VoDml(id="VODataService:Table.foreignKey", role=composition, type="VODataService:ForeignKey", typeRole=objectType) protected List<ForeignKey> foreignKeyA description of a foreign keys, one or more columns from the current table that can be used to join with another table. composition foreignKey : ( Multiplicity : 0..* ) - 
type
@VoDml(id="VODataService:Table.type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String typeA name for the role this table plays. Recognized values include “output”, indicating this table is output from a query; “base_table”, indicating a table whose records represent the main subjects of its schema; and “view”, indicating that the table represents a useful combination or subset of other tables. Other values are allowed. : Attribute type : multiplicity 1 
 - 
 - 
Constructor Details
- 
Table
public Table()Creates a new Table - 
Table
public Table(String name, String title, String description, String utype, Integer nrows, List<TableParam> column, List<ForeignKey> foreignKey, String type) full parameter constructor.- Parameters:
 name- The fully qualified name of the table. This name should include all catalogue or schema prefixes needed to sufficiently uniquely distinguish it in a query. In general, the format of the qualified name may depend on the context; however, when the table is intended to be queryable via ADQL, then the catalogue and schema qualifiers are delimited from the table name with dots (.).title- A descriptive, human-interpretable name for the table. This is used for display purposes. There is no requirement regarding uniqueness.description- A free-text description of the table's contents .utype- An identifier for a concept in a data model that the data in this table 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).nrows- The approximate size of the table in rows. This is not expected to be exact. For instance, the estimates on table sizes databases keep for query planning purposes are suitable for this field.column- A description of a table column.foreignKey- A description of a foreign keys, one or more columns from the current table that can be used to join with another table.type- A name for the role this table plays. Recognized values include “output”, indicating this table is output from a query; “base_table”, indicating a table whose records represent the main subjects of its schema; and “view”, indicating that the table represents a useful combination or subset of other tables. Other values are allowed.
 - 
Table
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:
 - Table
 
 - 
getTitle
Returns title Attribute.- Returns:
 - title Attribute
 
 - 
setTitle
Set title Attribute.- Parameters:
 pTitle- value to set
 - 
withTitle
fluent setter for title Attribute.- Parameters:
 pTitle- value to set- Returns:
 - Table
 
 - 
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:
 - Table
 
 - 
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:
 - Table
 
 - 
getNrows
Returns nrows Attribute.- Returns:
 - nrows Attribute
 
 - 
setNrows
Set nrows Attribute.- Parameters:
 pNrows- value to set
 - 
withNrows
fluent setter for nrows Attribute.- Parameters:
 pNrows- value to set- Returns:
 - Table
 
 - 
getColumn
Returns column composition as an immutable list.- Returns:
 - column composition.
 
 - 
setColumn
Defines whole column composition.- Parameters:
 pColumn- composition to set.
 - 
addToColumn
Add a org.ivoa.dm.registry.vodataservice.TableParam to the composition.- Parameters:
 p- org.ivoa.dm.registry.vodataservice.TableParam to add
 - 
removeFromColumn
Remove a org.ivoa.dm.registry.vodataservice.TableParam from the composition.- Parameters:
 p- org.ivoa.dm.registry.vodataservice.TableParam to remove
 - 
replaceInColumn
update a org.ivoa.dm.registry.vodataservice.TableParam in the composition.- Parameters:
 _p- org.ivoa.dm.registry.vodataservice.TableParam to update the match is done via the database key
 - 
getForeignKey
Returns foreignKey composition as an immutable list.- Returns:
 - foreignKey composition.
 
 - 
setForeignKey
Defines whole foreignKey composition.- Parameters:
 pForeignKey- composition to set.
 - 
addToForeignKey
Add a org.ivoa.dm.registry.vodataservice.ForeignKey to the composition.- Parameters:
 p- org.ivoa.dm.registry.vodataservice.ForeignKey to add
 - 
removeFromForeignKey
Remove a org.ivoa.dm.registry.vodataservice.ForeignKey from the composition.- Parameters:
 p- org.ivoa.dm.registry.vodataservice.ForeignKey to remove
 - 
replaceInForeignKey
update a org.ivoa.dm.registry.vodataservice.ForeignKey in the composition.- Parameters:
 _p- org.ivoa.dm.registry.vodataservice.ForeignKey to update the match is done via the database key
 - 
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:
 - Table
 
 - 
createTable
create a Table 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>
 
 -