@LoadLevel(name="mysql") public class MysqlTableMetaCache extends AbstractTableMetaCache
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
MysqlTableMetaCache() |
| Modifier and Type | Method and Description |
|---|---|
protected TableMeta |
fetchSchema(Connection connection,
String tableName)
get scheme from datasource and tableName
|
protected String |
getCacheKey(Connection connection,
String tableName,
String resourceId)
generate cache key
|
protected TableMeta |
resultSetMetaToSchema(ResultSetMetaData rsmd,
DatabaseMetaData dbmd) |
getTableMeta, refreshprotected String getCacheKey(Connection connection, String tableName, String resourceId)
AbstractTableMetaCachegetCacheKey in class AbstractTableMetaCacheconnection - the connectiontableName - the table nameresourceId - the resource idprotected TableMeta fetchSchema(Connection connection, String tableName) throws SQLException
AbstractTableMetaCachefetchSchema in class AbstractTableMetaCacheconnection - the connectiontableName - the table nameSQLException - the sql exceptionprotected TableMeta resultSetMetaToSchema(ResultSetMetaData rsmd, DatabaseMetaData dbmd) throws SQLException
SQLExceptionCopyright © 2024 Apache. All rights reserved.