Package | Description |
---|---|
tap | |
tap.db | |
tap.metadata |
Modifier and Type | Method and Description |
---|---|
protected QueryChecker |
AbstractTAPFactory.createQueryChecker(java.util.Collection<TAPTable> tables)
Create an object able to check the consistency between the ADQL query and the database.
|
Modifier and Type | Method and Description |
---|---|
protected TAPTable[] |
JDBCConnection.mergeTAPSchemaDefs(TAPMetadata metadata)
Merge the definition of TAP_SCHEMA tables given in parameter with the definition provided in the TAP standard.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<TAPTable> |
JDBCConnection.loadTables(TAPTable tableDef,
TAPMetadata metadata,
java.sql.Statement stmt)
Load into the corresponding metadata all tables listed in TAP_SCHEMA.tables.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JDBCConnection.addUploadedTable(TAPTable tableDef,
TableIterator data)
Important note:
Only tables uploaded by users can be created in the database.
|
boolean |
DBConnection.addUploadedTable(TAPTable tableDef,
TableIterator data)
Add the defined and given table inside the TAP_UPLOAD schema.
|
protected void |
JDBCConnection.checkUploadedTableDef(TAPTable tableDef)
Ensures that the given table MUST be inside the upload schema in ADQL.
|
protected void |
JDBCConnection.createTAPSchemaTable(TAPTable table,
java.sql.Statement stmt)
Create the specified standard TAP_SCHEMA tables into the database.
|
protected void |
JDBCConnection.createTAPTableIndexes(TAPTable table,
java.sql.Statement stmt)
Create the DB indexes corresponding to the given TAP_SCHEMA table.
|
boolean |
JDBCConnection.dropUploadedTable(TAPTable tableDef)
Important note:
Only tables uploaded by users can be dropped from the database.
|
boolean |
DBConnection.dropUploadedTable(TAPTable tableDef)
Drop the specified uploaded table from the database.
|
protected int |
JDBCConnection.fillUploadedTable(TAPTable metaTable,
TableIterator data)
Fill the table uploaded by the user with the given data.
|
protected TAPMetadata.STDTable |
JDBCConnection.isStdTable(java.lang.String dbTableName,
TAPTable[] stdTables,
boolean caseSensitive)
Tell whether the specified table (using its DB name only) is a standard one or not.
|
protected void |
JDBCConnection.loadColumns(TAPTable tableDef,
java.util.List<TAPTable> lstTables,
java.util.Map<java.lang.String,TAPCoosys> mapCoosys,
java.sql.Statement stmt)
Load into the corresponding tables all columns listed in TAP_SCHEMA.columns.
|
protected void |
JDBCConnection.loadColumns(TAPTable tableDef,
java.util.List<TAPTable> lstTables,
java.sql.Statement stmt)
Deprecated.
This method is now replaced by
JDBCConnection.loadColumns(TAPTable, List, Map, Statement) which has an additional parameter:
the list of declared coordinate systems. |
protected java.util.Map<java.lang.String,TAPCoosys> |
JDBCConnection.loadCoosys(TAPTable tableDef,
TAPMetadata metadata,
java.sql.Statement stmt)
Load all coordinate systems declared in the TAP_SCHEMA.
|
protected void |
JDBCConnection.loadKeys(TAPTable keysDef,
TAPTable keyColumnsDef,
java.util.List<TAPTable> lstTables,
java.sql.Statement stmt)
Load into the corresponding tables all keys listed in TAP_SCHEMA.keys and detailed in TAP_SCHEMA.key_columns.
|
protected void |
JDBCConnection.loadSchemas(TAPTable tableDef,
TAPMetadata metadata,
java.sql.Statement stmt)
Load into the given metadata all schemas listed in TAP_SCHEMA.schemas.
|
protected java.util.List<TAPTable> |
JDBCConnection.loadTables(TAPTable tableDef,
TAPMetadata metadata,
java.sql.Statement stmt)
Load into the corresponding metadata all tables listed in TAP_SCHEMA.tables.
|
protected void |
JDBCConnection.resetTAPSchema(java.sql.Statement stmt,
TAPTable[] stdTables)
Ensure the TAP_SCHEMA schema exists in the database AND it must especially drop all of its standard tables
(schemas, tables, columns, keys and key_columns), if they exist.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JDBCConnection.loadColumns(TAPTable tableDef,
java.util.List<TAPTable> lstTables,
java.util.Map<java.lang.String,TAPCoosys> mapCoosys,
java.sql.Statement stmt)
Load into the corresponding tables all columns listed in TAP_SCHEMA.columns.
|
protected void |
JDBCConnection.loadColumns(TAPTable tableDef,
java.util.List<TAPTable> lstTables,
java.sql.Statement stmt)
Deprecated.
This method is now replaced by
JDBCConnection.loadColumns(TAPTable, List, Map, Statement) which has an additional parameter:
the list of declared coordinate systems. |
protected void |
JDBCConnection.loadKeys(TAPTable keysDef,
TAPTable keyColumnsDef,
java.util.List<TAPTable> lstTables,
java.sql.Statement stmt)
Load into the corresponding tables all keys listed in TAP_SCHEMA.keys and detailed in TAP_SCHEMA.key_columns.
|
Modifier and Type | Field and Description |
---|---|
TAPTable |
TableSetParser.ForeignKey.fromTable
Source table of the foreign key.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,TAPTable> |
TAPSchema.tables
List all tables contained inside this schema.
|
Modifier and Type | Method and Description |
---|---|
TAPTable |
TAPSchema.addTable(java.lang.String tableName)
Build a
TAPTable object whose the ADQL and DB name will the given one. |
TAPTable |
TAPSchema.addTable(java.lang.String tableName,
TAPTable.TableType tableType,
java.lang.String description,
java.lang.String utype)
Build a
TAPTable object whose the ADQL and DB name will the given one. |
static TAPTable |
TAPMetadata.getCoosysTable()
Get the minimum definition of the table TAP_SCHEMA.coosys as expected by
the library (see
JDBCConnection.getTAPSchema() . |
TAPTable |
TAPForeignKey.getFromTable() |
TAPTable |
TAPMetadata.getObsCoreTable()
Get the description of the ObsCore table, if it is defined.
|
static TAPTable |
TAPMetadata.getStdTable(TAPMetadata.STDTable tableId)
Get the definition of the specified standard TAP table.
|
TAPTable |
TAPSchema.getTable(java.lang.String tableName)
Search for a table having the given ADQL name.
|
TAPTable |
TAPMetadata.getTable(java.lang.String schemaName,
java.lang.String tableName)
Search for the specified table in this TAP metadata set.
|
TAPTable |
TAPForeignKey.getTargetTable() |
TAPTable |
TAPMetadata.TAPTableIterator.next() |
protected TAPTable |
TableSetParser.parseTable(javax.xml.stream.XMLStreamReader reader,
java.util.List<TableSetParser.ForeignKey> keys)
Parse the XML representation of a TAP table.
|
TAPTable |
TAPSchema.removeTable(java.lang.String tableName)
Remove the table having the given ADQL name.
|
protected TAPTable |
TableSetParser.searchTable(java.lang.String tableName,
TAPMetadata meta,
java.lang.String position)
Search for the specified table in the given TAP metadata.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<TAPTable> |
TAPMetadata.getTables()
Get the list of all tables available in this TAP metadata set.
|
java.util.Iterator<TAPTable> |
TAPSchema.iterator() |
Modifier and Type | Method and Description |
---|---|
TAPForeignKey |
TAPTable.addForeignKey(java.lang.String keyId,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns)
Build a foreign key using the ID, the target table and the given list of columns.
|
TAPForeignKey |
TAPTable.addForeignKey(java.lang.String keyId,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns,
java.lang.String description,
java.lang.String utype)
Build a foreign key using the ID, the target table, the given list of columns, the given description and the given UType.
|
void |
TAPSchema.addTable(TAPTable newTable)
Add the given table inside this schema.
|
protected int |
TAPMetadata.writeTable(TAPTable t,
java.io.PrintWriter writer)
Format in XML the given table and then write it in the given writer.
|
Constructor and Description |
---|
TAPForeignKey(java.lang.String keyId,
TAPTable fromTable,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns) |
TAPForeignKey(java.lang.String keyId,
TAPTable fromTable,
TAPTable targetTable,
java.util.Map<java.lang.String,java.lang.String> columns,
java.lang.String description,
java.lang.String utype) |