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, getColumnMetaDataList
public MySQLShardingMetaDataHandler(DataSource dataSource, String actualTableName)
public boolean isTableExist(Connection connection) throws SQLException
ShardingMetaDataHandler
isTableExist
in class ShardingMetaDataHandler
connection
- jdbc connectionSQLException
- SQL exceptionpublic List<ColumnMetaData> getExistColumnMeta(Connection connection) throws SQLException
ShardingMetaDataHandler
getExistColumnMeta
in class ShardingMetaDataHandler
connection
- jdbc connectionSQLException
- SQL exceptionCopyright © 2018. All rights reserved.