T - type of SQL statementpublic interface MetaDataRefresher<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement>
extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<org.apache.shardingsphere.infra.metadata.database.schema.event.MetaDataRefreshedEvent> |
refresh(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database,
Collection<String> logicDataSourceNames,
String schemaName,
T sqlStatement,
org.apache.shardingsphere.infra.config.props.ConfigurationProperties props)
Refresh schema.
|
Optional<org.apache.shardingsphere.infra.metadata.database.schema.event.MetaDataRefreshedEvent> refresh(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, Collection<String> logicDataSourceNames, String schemaName, T sqlStatement, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props) throws SQLException
database - databaselogicDataSourceNames - route data source namesschemaName - schema namesqlStatement - SQL statementprops - configuration propertiesSQLException - SQL exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.