public abstract class DelegatingDBMetaData extends Object implements DBMetaData
This class is not intended to be subclassed by the user!
DBMetaData.TableChange, DBMetaData.TableInfo, DBMetaData.TableMetaData, DBMetaData.TableType
ALL, INDICES, ROW_COUNT, UNKNOWN_ROW_COUNT
Constructor and Description |
---|
DelegatingDBMetaData(DBMetaData delegate) |
public DelegatingDBMetaData(DBMetaData delegate)
public DBMetaData getDelegate()
public String getName()
getName
in interface DataSourceMetaData
public String getVersion()
getVersion
in interface DataSourceMetaData
public boolean isCaseSensitive() throws DBException
isCaseSensitive
in interface DBMetaData
true
if identifiers like table or columns names are
case sensitive, false
otherwiseDBException
public int getMaxColumnNameLength() throws DBException
getMaxColumnNameLength
in interface DBMetaData
DBException
public DBMetaData.TableInfo[] getTableInfos(ProgressMonitor monitor, EnumSet<DBMetaData.TableType> types) throws DBException
DBMetaData
. Read only the table
name and data types.getTableInfos
in interface DBMetaData
DBMetaData
DBException
- if a database access error occurspublic DBMetaData.TableMetaData[] getTableMetaData(ProgressMonitor monitor, int flags, DBMetaData.TableInfo... tables) throws DBException
DBMetaData.TableInfo
s.getTableMetaData
in interface DBMetaData
flags
- requested data, e.g DBMetaData.INDICES
| DBMetaData.ROW_COUNT
or
DBMetaData.ALL
tables
- a number of DBMetaData.TableInfo
instancesDBMetaData.TableMetaData
DBException
- if a database access error occurspublic StoredProcedure[] getStoredProcedures(ProgressMonitor monitor) throws DBException
StoredProcedure
Objects of this DBMetaData
.getStoredProcedures
in interface DBMetaData
StoredProcedure
DBException
- if a database access error occurspublic EntityRelationshipModel getEntityRelationshipModel(ProgressMonitor monitor) throws DBException
EntityRelationshipModel
of all tables of this
DBMetaData
.getEntityRelationshipModel
in interface DBMetaData
EntityRelationshipModel
of this DBMetaData
DBException
- if a database access error occurspublic EntityRelationshipModel getEntityRelationshipModel(ProgressMonitor monitor, DBMetaData.TableInfo... tables) throws DBException
EntityRelationshipModel
of this DBMetaData
.getEntityRelationshipModel
in interface DBMetaData
EntityRelationshipModel
of this DBMetaData
DBException
- if a database access error occurspublic boolean equalsType(ColumnMetaData clientColumn, ColumnMetaData dbColumn)
ColumnMetaData
.equalsType
in interface DBMetaData
clientColumn
- the ColumnMetaData to comparedbColumn
- the ColumnMetaData to compare clientColumn
againsttrue
if the given ColumnMetaData
s are the
same, otherwise flase
public DBConnection.Query[] synchronizeTables(ProgressMonitor monitor, DBMetaData.TableChange... changes) throws DBException
changes
.synchronizeTables
in interface DBMetaData
changes
- all changes to be synchronizedDBException
- if a database access error occurspublic void dispose()
dispose
in interface DBMetaData
Copyright © 2003–2020 XDEV Software. All rights reserved.