public class RemoteDatabaseMetaData extends Object
Constructor and Description |
---|
RemoteDatabaseMetaData(AceQLConnection aceQLConnection)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dbSchemaDownload(File file)
Downloads in HTML format the whole schema of the remote database in the
passed file.
|
void |
dbSchemaDownload(File file,
String format)
Downloads the whole schema of the remote database in the passed file, in the
specified HTML or Text format.
|
void |
dbSchemaDownload(File file,
String format,
String tableName)
Downloads the schema extract for a table name in the specified HTML or Text
format.
|
JdbcDatabaseMetaData |
getJdbcDatabaseMetaData()
Returns the basic meta data values of the remote database, as sent by the the
remote JDBC Driver of the remote database.
|
Table |
getTable(String name)
Returns from the remote database a Table object that contains all the table's details.
|
List<String> |
getTableNames()
Returns the table names of the remote database.
|
List<String> |
getTableNames(String tableType)
Returns the table names of the remote database.
|
public RemoteDatabaseMetaData(AceQLConnection aceQLConnection)
aceQLConnection
- the Connection to the remote database.public void dbSchemaDownload(File file, String format, String tableName) throws IOException, AceQLException
file
- the file to download the remote schema informat
- the format to use: "html" or "text".tableName
- the table name filter, without dot separator. All tables are
downloaded if null.IOException
- if any local I/O Exception occursAceQLException
- if any other Exception occurspublic void dbSchemaDownload(File file, String format) throws IOException, AceQLException
file
- the file to download the remote schema informat
- the format to use: "html" or "text". Defaults to "html" if
null.NullPointerException
- if file is nullIOException
- if any local I/O Exception occursAceQLException
- if any other Exception occurspublic void dbSchemaDownload(File file) throws IOException, AceQLException
file
- the file to download the remote schema inNullPointerException
- if file is nullIOException
- if any local I/O Exception occursAceQLException
- if any Exception occurspublic JdbcDatabaseMetaData getJdbcDatabaseMetaData() throws AceQLException
AceQLException
- if any Exception occurspublic List<String> getTableNames() throws AceQLException
AceQLException
- if any Exception occurspublic List<String> getTableNames(String tableType) throws AceQLException
tableType
- the table type. Can be null. Possible values: "table",
"view", etc. Defaults to all types if tableType is null.AceQLException
- if any Exception occurspublic Table getTable(String name) throws AceQLException
name
- the name table to getNullPointerException
- if tableName is nullAceQLException
- if any Exception occurs
DB2 - Informix - Ingres - MySQL - Oracle Database - PostgreSQL - SQL Server - Sybase - Teradata
Copyright © 2020 KawanSoft SAS