Package adql.db
Interface DBColumn
- All Known Implementing Classes:
DBCommonColumn,DefaultDBColumn
public interface DBColumn
Definition of a valid target column.
This column can be used in an ADQL query with its ADQL name (getADQLName())
and corresponds to a real column in the "database" with its DB name (getDBName()).
- Version:
- 1.4 (07/2016)
- Author:
- Grégory Mantelet (CDS;ARI)
-
Method Summary
Modifier and TypeMethodDescriptionMakes a copy of this instance ofDBColumn.Gets the name of this column (without any prefix and double-quotes).Get the type of this column (as closed as possible from the "database" type).Gets the name of this column in the "database".getTable()Gets the table which contains thisDBColumn.
-
Method Details
-
getADQLName
String getADQLName()Gets the name of this column (without any prefix and double-quotes).- Returns:
- Its ADQL name.
-
getDBName
String getDBName()Gets the name of this column in the "database".- Returns:
- Its DB name.
-
getDatatype
DBType getDatatype()Get the type of this column (as closed as possible from the "database" type).
Note: The returned type should be as closed as possible from a type listed by the IVOA in the TAP protocol description into the section UPLOAD.
- Returns:
- Its type.
- Since:
- 1.3
-
getTable
DBTable getTable()Gets the table which contains thisDBColumn.- Returns:
- Its table or null if no table is specified.
-
copy
Makes a copy of this instance ofDBColumn.- Parameters:
dbName- Its new DB name.adqlName- Its new ADQL name.dbTable- Its new table.- Returns:
- A modified copy of this
DBColumn.
-