Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
adqlName
Name that this column must have in ADQL queries.
|
protected java.lang.String |
dbName
Name of the column in the "database".
|
protected DBTable |
table
Table in which this column exists.
|
protected DBType |
type
Type of the column in the "database".
|
Constructor and Description |
---|
DefaultDBColumn(java.lang.String dbName,
DBTable table)
Builds a default
DBColumn with the given DB name and DB table. |
DefaultDBColumn(java.lang.String dbName,
DBType type,
DBTable table)
Builds a default
DBColumn with the given DB name and DB table. |
DefaultDBColumn(java.lang.String dbName,
java.lang.String adqlName,
DBTable table)
Builds a default
DBColumn with the given DB name, DB table and ADQL name. |
DefaultDBColumn(java.lang.String dbName,
java.lang.String adqlName,
DBType type,
DBTable table)
Builds a default
DBColumn with the given DB name, DB table and ADQL name. |
Modifier and Type | Method and Description |
---|---|
DBColumn |
copy(java.lang.String dbName,
java.lang.String adqlName,
DBTable dbTable)
Makes a copy of this instance of
DBColumn . |
java.lang.String |
getADQLName()
Gets the name of this column (without any prefix and double-quotes).
|
DBType |
getDatatype()
Get the type of this column (as closed as possible from the "database" type).
|
java.lang.String |
getDBName()
Gets the name of this column in the "database".
|
DBTable |
getTable()
Gets the table which contains this
DBColumn . |
void |
setADQLName(java.lang.String adqlName) |
void |
setDatatype(DBType type)
Set the type of this column.
|
void |
setTable(DBTable table) |
protected java.lang.String dbName
protected DBType type
protected DBTable table
protected java.lang.String adqlName
public DefaultDBColumn(java.lang.String dbName, DBTable table)
DBColumn
with the given DB name and DB table.dbName
- Database column name (it will be also used for the ADQL name).
Only the column name is expected. Contrary to DefaultDBTable
,
if a whole column reference is given, no split will be done.table
- DB table which contains this column.DefaultDBColumn(String, String, DBType, DBTable)
public DefaultDBColumn(java.lang.String dbName, DBType type, DBTable table)
DBColumn
with the given DB name and DB table.dbName
- Database column name (it will be also used for the ADQL name).
Only the column name is expected. Contrary to DefaultDBTable
,
if a whole column reference is given, no split will be done.type
- Type of the column.
Note: there is no default value. Consequently if this parameter is NULL,
the type should be considered as unknown. It means that any comparison with
any type will always return 'true'.table
- DB table which contains this column.DefaultDBColumn(String, String, DBType, DBTable)
public DefaultDBColumn(java.lang.String dbName, java.lang.String adqlName, DBTable table)
DBColumn
with the given DB name, DB table and ADQL name.dbName
- Database column name.
Only the column name is expected. Contrary to DefaultDBTable
,
if a whole column reference is given, no split will be done.adqlName
- Column name used in ADQL queries.
Only the column name is expected. Contrary to DefaultDBTable
,
if a whole column reference is given, no split will be done.table
- DB table which contains this column.DefaultDBColumn(String, String, DBType, DBTable)
public DefaultDBColumn(java.lang.String dbName, java.lang.String adqlName, DBType type, DBTable table)
DBColumn
with the given DB name, DB table and ADQL name.dbName
- Database column name.
Only the column name is expected. Contrary to DefaultDBTable
,
if a whole column reference is given, no split will be done.
REQUIRED parameter: it must be not NULL.adqlName
- Column name used in ADQL queries.
Only the column name is expected. Contrary to DefaultDBTable
,
if a whole column reference is given, no split will be done.
If NULL, it will be set to dbName.type
- Type of the column.
Note: there is no default value. Consequently if this parameter is NULL,
the type should be considered as unknown. It means that any comparison with
any type will always return 'true'.table
- DB table which contains this column.public final java.lang.String getADQLName()
DBColumn
getADQLName
in interface DBColumn
public final void setADQLName(java.lang.String adqlName)
public final DBType getDatatype()
DBColumn
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.
getDatatype
in interface DBColumn
public final void setDatatype(DBType type)
Set the type of this column.
Note 1: The given type should be as closed as possible from a type listed by the IVOA in the TAP protocol description into the section UPLOAD.
Note 2: there is no default value. Consequently if this parameter is NULL, the type should be considered as unknown. It means that any comparison with any type will always return 'true'.
type
- New type of this column.public final java.lang.String getDBName()
DBColumn
public final DBTable getTable()
DBColumn
DBColumn
.public final void setTable(DBTable table)