public class DatabaseMetadata extends Object
Constructor and Description |
---|
DatabaseMetadata(Connection connection,
org.hibernate.dialect.Dialect dialect)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Set<TableMetadata> |
getAllTables(String catalog,
String schema)
Returns metadata of all tables in database.
|
TableMetadata |
getTableMetadata(String name,
String schema,
String catalog,
boolean isQuoted)
Returns the table metadata for the given table name.
|
boolean |
isSequence(Object key)
Returns true if the database contains a sequence for the given name.
|
boolean |
isTable(Object key)
Returns true if the database contains a table of the given name.
|
String |
toString() |
public DatabaseMetadata(Connection connection, org.hibernate.dialect.Dialect dialect) throws SQLException
connection
- dialect
- SQLException
public TableMetadata getTableMetadata(String name, String schema, String catalog, boolean isQuoted) throws org.hibernate.HibernateException
name
- schema
- catalog
- isQuoted
- org.hibernate.HibernateException
public Set<TableMetadata> getAllTables(String catalog, String schema)
catalog
- schema
- public boolean isSequence(Object key)
key
- public boolean isTable(Object key) throws org.hibernate.HibernateException
key
- org.hibernate.HibernateException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.