@@ -892,6 +893,23 @@ public class TAPMetadata implements Iterable<TAPSchema>, VOSIResource, TAPResour
returntap_schema;
}
/**
* Get the minimum definition of the table TAP_SCHEMA.coosys as expected by
* the library (see {@link JDBCConnection#getTAPSchema()}.
*
* @return The created definition of TAP_SCHEMA.coosys.
*
* @since 2.1
*/
publicstaticfinalTAPTablegetCoosysTable(){
TAPTablecoosys=newTAPTable(STDSchema.TAPSCHEMA+".coosys",TableType.table,"List of coordinate systems of coordinate columns published in this TAP service.",null);
coosys.addColumn("id",newDBType(DBDatatype.VARCHAR),"ID of the coordinate system definition as it must be in the VOTable.",null,null,null,true,true,false);
coosys.addColumn("equinox",newDBType(DBDatatype.VARCHAR),"Required to fix the equatorial or ecliptic systems (as e.g. \"J2000\" as the default for \"eq_FK5\" or \"B1950\" as the default for \"eq_FK4\").",null,null,null,false,false,false);
coosys.addColumn("epoch",newDBType(DBDatatype.VARCHAR),"Epoch of the positions (if necessary).",null,null,null,false,false,false);
returncoosys;
}
/**
* <p>Get the definition of the specified standard TAP table.</p>
*
@@ -931,14 +949,6 @@ public class TAPMetadata implements Iterable<TAPSchema>, VOSIResource, TAPResour
tables.addColumn("utype",newDBType(DBDatatype.VARCHAR),"UTYPE if table corresponds to a data model",null,null,null,false,false,true);
returntables;
caseCOOSYS:
TAPTablecoosys=newTAPTable(STDSchema.TAPSCHEMA+"."+STDTable.COOSYS,TableType.table,"List of coordinate systems of coordinate columns published in this TAP service.",null);
coosys.addColumn("id",newDBType(DBDatatype.VARCHAR),"ID of the coordinate system definition as it must be in the VOTable.",null,null,null,true,true,false);
coosys.addColumn("equinox",newDBType(DBDatatype.VARCHAR),"Required to fix the equatorial or ecliptic systems (as e.g. \"J2000\" as the default for \"eq_FK5\" or \"B1950\" as the default for \"eq_FK4\").",null,null,null,false,false,false);
coosys.addColumn("epoch",newDBType(DBDatatype.VARCHAR),"Epoch of the positions (if necessary).",null,null,null,false,false,false);
returncoosys;
caseCOLUMNS:
TAPTablecolumns=newTAPTable(STDSchema.TAPSCHEMA+"."+STDTable.COLUMNS,TableType.table,"List of columns of all tables listed in TAP_SCHEMA.TABLES and published in this TAP service.",null);
columns.addColumn("column_index",newDBType(DBDatatype.INTEGER),"this index is used to recommend column ordering for clients",null,null,null,false,false,true);
@@ -954,7 +964,6 @@ public class TAPMetadata implements Iterable<TAPSchema>, VOSIResource, TAPResour
columns.addColumn("indexed",newDBType(DBDatatype.INTEGER),"an indexed column; 1 means true, 0 means false",null,null,null,false,false,true);
columns.addColumn("principal",newDBType(DBDatatype.INTEGER),"a principal column; 1 means true, 0 means false",null,null,null,false,false,true);
columns.addColumn("std",newDBType(DBDatatype.INTEGER),"a standard column; 1 means true, 0 means false",null,null,null,false,false,true);
columns.addColumn("coosys_id",newDBType(DBDatatype.VARCHAR),"ID of the used coordinate systems (if any).",null,null,null,false,false,false);
returncolumns;
caseKEYS:
@@ -1031,14 +1040,11 @@ public class TAPMetadata implements Iterable<TAPSchema>, VOSIResource, TAPResour