public final class MySQLShardingMetaDataHandler extends ShardingMetaDataHandler
| Constructor and Description |
|---|
MySQLShardingMetaDataHandler(DataSource dataSource,
String actualTableName) |
| Modifier and Type | Method and Description |
|---|---|
List<ColumnMetaData> |
getExistColumnMeta(Connection connection)
Get exit table's column metadata list.
|
boolean |
isTableExist(Connection connection)
Judge whether table exist or not.
|
getColumnMetaDataList, getColumnMetaDataListpublic MySQLShardingMetaDataHandler(DataSource dataSource, String actualTableName)
public boolean isTableExist(Connection connection) throws SQLException
ShardingMetaDataHandlerisTableExist in class ShardingMetaDataHandlerconnection - jdbc connectionSQLException - SQL exceptionpublic List<ColumnMetaData> getExistColumnMeta(Connection connection) throws SQLException
ShardingMetaDataHandlergetExistColumnMeta in class ShardingMetaDataHandlerconnection - jdbc connectionSQLException - SQL exceptionCopyright © 2018. All rights reserved.