public abstract class AbstractTableMetaCache extends Object implements TableMetaCache
| Constructor and Description |
|---|
AbstractTableMetaCache() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract TableMeta |
fetchSchema(Connection connection,
String tableName)
get scheme from datasource and tableName
|
protected abstract String |
getCacheKey(Connection connection,
String tableName,
String resourceId)
generate cache key
|
TableMeta |
getTableMeta(Connection connection,
String tableName,
String resourceId) |
void |
refresh(Connection connection,
String resourceId) |
public TableMeta getTableMeta(Connection connection, String tableName, String resourceId)
getTableMeta in interface TableMetaCachepublic void refresh(Connection connection, String resourceId)
refresh in interface TableMetaCacheprotected abstract String getCacheKey(Connection connection, String tableName, String resourceId)
connection - the connectiontableName - the table nameresourceId - the resource idprotected abstract TableMeta fetchSchema(Connection connection, String tableName) throws SQLException
connection - the connectiontableName - the table nameSQLException - the sql exceptionCopyright © 2024 Apache. All rights reserved.