public class DbContextMetaData extends Object implements Closeable
| 构造器和说明 |
|---|
DbContextMetaData() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
String |
getCatalog()
获取 catalog
|
Connection |
getConnection()
获取连接
|
DataSource |
getDataSource()
获取数据源
|
DbDialect |
getDialect()
获取方言
|
Connection |
getMetaConnection()
获取元信息链接
|
String |
getProductName()
获取产品名称
|
String |
getProductVersion()
获取产品版本号
|
String |
getSchema()
获取 schema
|
TableWrap |
getTable(String tableName) |
Collection<TableWrap> |
getTableAll() |
String |
getTablePk1(String tableName) |
DbType |
getType()
获取类型
|
String |
getUrl()
获取链接字符串
|
void |
init()
初始化
|
void |
refresh()
刷新
|
protected void |
setDataSource(DataSource ds) |
void |
setDialect(DbDialect dialect) |
protected void |
setSchema(String schema) |
void |
setType(DbType type) |
public String getUrl()
public String getProductName()
public String getProductVersion()
public DataSource getDataSource()
protected void setDataSource(DataSource ds)
public Connection getConnection() throws SQLException
SQLExceptionpublic Connection getMetaConnection() throws SQLException
SQLExceptionpublic String getSchema()
protected void setSchema(String schema)
public String getCatalog()
public DbType getType()
public void setType(DbType type)
public DbDialect getDialect()
public void setDialect(DbDialect dialect)
public Collection<TableWrap> getTableAll()
public void refresh()
public void init()
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2023. All rights reserved.