Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vollt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sonia Zorba
vollt
Commits
de0d2c30
Commit
de0d2c30
authored
10 years ago
by
gmantele
Browse files
Options
Downloads
Patches
Plain Diff
[TAP] Add old TAPColumn constructors (for a minimum backward compatibility).
parent
7cf50cbe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tap/metadata/TAPColumn.java
+73
-4
73 additions, 4 deletions
src/tap/metadata/TAPColumn.java
with
73 additions
and
4 deletions
src/tap/metadata/TAPColumn.java
+
73
−
4
View file @
de0d2c30
...
...
@@ -66,7 +66,7 @@ import adql.db.DBTable;
* </p>
*
* @author Grégory Mantelet (CDS;ARI)
* @version 2.0 (0
8
/2014)
* @version 2.0 (0
9
/2014)
*/
public
class
TAPColumn
implements
DBColumn
{
...
...
@@ -131,7 +131,7 @@ public class TAPColumn implements DBColumn {
protected
final
ArrayList
<
TAPForeignKey
>
lstSources
;
/**
* <p>Build a {@link TAPColumn} instance with the given ADQL name.</p>
* <p>Build a
VARCHAR
{@link TAPColumn} instance with the given ADQL name.</p>
*
* <p><i>Note:
* The DB name is set by default with the ADQL name. To set the DB name,
...
...
@@ -184,6 +184,26 @@ public class TAPColumn implements DBColumn {
setDatatype
(
type
);
}
/**
* <p>Build a VARCHAR {@link TAPColumn} instance with the given ADQL name and description.</p>
*
* <p><i>Note:
* The DB name is set by default with the ADQL name. To set the DB name,
* you MUST call then {@link #setDBName(String)}.
* </i></p>
*
* <p><i>Note:
* If the given ADQL name is prefixed (= it has some text separated by a '.' before the column name),
* this prefix will be removed. Only the part after the '.' character will be kept.
* </i></p>
*
* @param columnName Name that this column MUST have in ADQL queries. <i>CAN'T be NULL ; this name can never be changed after.</i>
* @param description Description of the column's content. <i>May be NULL</i>
*/
public
TAPColumn
(
String
columnName
,
String
description
){
this
(
columnName
,
(
TAPType
)
null
,
description
);
}
/**
* <p>Build a {@link TAPColumn} instance with the given ADQL name, datatype and description.</p>
*
...
...
@@ -212,7 +232,28 @@ public class TAPColumn implements DBColumn {
}
/**
* <p>Build a {@link TAPColumn} instance with the given field.</p>
* <p>Build a VARCHAR {@link TAPColumn} instance with the given ADQL name, description and unit.</p>
*
* <p><i>Note:
* The DB name is set by default with the ADQL name. To set the DB name,
* you MUST call then {@link #setDBName(String)}.
* </i></p>
*
* <p><i>Note:
* If the given ADQL name is prefixed (= it has some text separated by a '.' before the column name),
* this prefix will be removed. Only the part after the '.' character will be kept.
* </i></p>
*
* @param columnName Name that this column MUST have in ADQL queries. <i>CAN'T be NULL ; this name can never be changed after.</i>
* @param description Description of the column's content. <i>May be NULL</i>
* @param unit Unit of the column's values. <i>May be NULL</i>
*/
public
TAPColumn
(
String
columnName
,
String
description
,
String
unit
){
this
(
columnName
,
null
,
description
,
unit
);
}
/**
* <p>Build a {@link TAPColumn} instance with the given ADQL name, type, description and unit.</p>
*
* <p><i>Note:
* The DB name is set by default with the ADQL name. To set the DB name,
...
...
@@ -240,7 +281,35 @@ public class TAPColumn implements DBColumn {
}
/**
* <p>Build a {@link TAPColumn} instance with the given field.</p>
* <p>Build a VARCHAR {@link TAPColumn} instance with the given fields.</p>
*
* <p><i>Note:
* The DB name is set by default with the ADQL name. To set the DB name,
* you MUST call then {@link #setDBName(String)}.
* </i></p>
*
* <p><i>Note:
* If the given ADQL name is prefixed (= it has some text separated by a '.' before the column name),
* this prefix will be removed. Only the part after the '.' character will be kept.
* </i></p>
*
* <p><i>Note:
* The datatype is set by calling the function {@link #setDatatype(TAPType)} which does do
* anything if the given datatype is NULL.
* </i></p>
*
* @param columnName Name that this column MUST have in ADQL queries. <i>CAN'T be NULL ; this name can never be changed after.</i>
* @param description Description of the column's content. <i>May be NULL</i>
* @param unit Unit of the column's values. <i>May be NULL</i>
* @param ucd UCD describing the scientific content of this column.
* @param utype UType associating this column with a data-model.
*/
public
TAPColumn
(
String
columnName
,
String
description
,
String
unit
,
String
ucd
,
String
utype
){
this
(
columnName
,
null
,
description
,
unit
,
ucd
,
utype
);
}
/**
* <p>Build a {@link TAPColumn} instance with the given fields.</p>
*
* <p><i>Note:
* The DB name is set by default with the ADQL name. To set the DB name,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment