public interface DBMetaData extends DataSourceMetaData, Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
DBMetaData.TableChange
Holds table change information.
|
static class |
DBMetaData.TableInfo
This class includes limited information about the database table.
|
static class |
DBMetaData.TableMetaData
This class includes information about the database table, the columns of
the database table and the indices.
|
static class |
DBMetaData.TableType
The table type of a database table.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALL |
static int |
INDICES |
static int |
ROW_COUNT |
static int |
UNKNOWN_ROW_COUNT |
getName, getVersion
static final int INDICES
static final int ROW_COUNT
static final int ALL
static final int UNKNOWN_ROW_COUNT
boolean isCaseSensitive() throws DBException
true
if identifiers like table or columns names are
case sensitive, false
otherwiseDBException
int getMaxColumnNameLength() throws DBException
DBException
DBMetaData.TableInfo[] getTableInfos(ProgressMonitor monitor, EnumSet<DBMetaData.TableType> types) throws DBException
DBMetaData
. Read only the table
name and data types.DBMetaData
DBException
- if a database access error occursDBMetaData.TableMetaData[] getTableMetaData(ProgressMonitor monitor, int flags, DBMetaData.TableInfo... tables) throws DBException
DBMetaData.TableInfo
s.flags
- requested data, e.g INDICES
| ROW_COUNT
or
ALL
tables
- a number of DBMetaData.TableInfo
instancesDBMetaData.TableMetaData
DBException
- if a database access error occursStoredProcedure[] getStoredProcedures(ProgressMonitor monitor) throws DBException
StoredProcedure
Objects of this DBMetaData
.StoredProcedure
DBException
- if a database access error occursEntityRelationshipModel getEntityRelationshipModel(ProgressMonitor monitor) throws DBException
EntityRelationshipModel
of all tables of this
DBMetaData
.EntityRelationshipModel
of this DBMetaData
DBException
- if a database access error occursEntityRelationshipModel getEntityRelationshipModel(ProgressMonitor monitor, DBMetaData.TableInfo... tables) throws DBException
EntityRelationshipModel
of this DBMetaData
.EntityRelationshipModel
of this DBMetaData
DBException
- if a database access error occursboolean equalsType(ColumnMetaData clientColumn, ColumnMetaData dbColumn)
ColumnMetaData
.clientColumn
- the ColumnMetaData to comparedbColumn
- the ColumnMetaData to compare clientColumn
againsttrue
if the given ColumnMetaData
s are the
same, otherwise flase
DBConnection.Query[] synchronizeTables(ProgressMonitor monitor, DBMetaData.TableChange... changes) throws DBException
changes
.monitor
- changes
- all changes to be synchronizedDBException
- if a database access error occursvoid dispose()
Copyright © 2003–2020 XDEV Software. All rights reserved.