Class CreateTableStatementSchemaRefresher

  • All Implemented Interfaces:
    MetaDataRefresher<org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateTableStatement>, org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

    public final class CreateTableStatementSchemaRefresher
    extends Object
    implements MetaDataRefresher<org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateTableStatement>
    Schema refresher for create table statement.
    • Constructor Detail

      • CreateTableStatementSchemaRefresher

        public CreateTableStatementSchemaRefresher()
    • Method Detail

      • refresh

        public void refresh​(org.apache.shardingsphere.infra.instance.mode.ModeContextManager modeContextManager,
                            org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database,
                            Collection<String> logicDataSourceNames,
                            String schemaName,
                            org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateTableStatement sqlStatement,
                            org.apache.shardingsphere.infra.config.props.ConfigurationProperties props)
                     throws SQLException
        Description copied from interface: MetaDataRefresher
        Refresh schema.
        Specified by:
        refresh in interface MetaDataRefresher<org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateTableStatement>
        Parameters:
        modeContextManager - mode context manager
        database - database
        logicDataSourceNames - route data source names
        schemaName - schema name
        sqlStatement - SQL statement
        props - configuration properties
        Throws:
        SQLException - SQL exception
      • getType

        public String getType()
        Specified by:
        getType in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI