Class AbstractDataSourcePreparer
java.lang.Object
org.apache.shardingsphere.data.pipeline.core.prepare.datasource.AbstractDataSourcePreparer
- All Implemented Interfaces:
DataSourcePreparer
Abstract data source preparer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringaddIfNotExistsForCreateTableSQL(String createTableSQL) protected final voidexecuteTargetTableSQL(Connection targetConnection, String sql) protected final PipelineDataSourceWrappergetSourceCachedDataSource(RuleAlteredJobConfiguration jobConfig, PipelineDataSourceManager dataSourceManager) protected final TableDefinitionSQLTypeprotected final PipelineDataSourceWrappergetTargetCachedDataSource(TaskConfiguration taskConfig, PipelineDataSourceManager dataSourceManager) voidPrepare target schemas.protected StringreplaceActualTableNameToLogicTableName(String createOrAlterTableSQL, @NonNull String actualTableName, @NonNull String logicTableName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.data.pipeline.core.prepare.datasource.DataSourcePreparer
prepareTargetTables
-
Constructor Details
-
AbstractDataSourcePreparer
public AbstractDataSourcePreparer()
-
-
Method Details
-
prepareTargetSchemas
Description copied from interface:DataSourcePreparerPrepare target schemas.- Specified by:
prepareTargetSchemasin interfaceDataSourcePreparer- Parameters:
parameter- prepare target schemas parameter
-
getSourceCachedDataSource
protected final PipelineDataSourceWrapper getSourceCachedDataSource(RuleAlteredJobConfiguration jobConfig, PipelineDataSourceManager dataSourceManager) -
getTargetCachedDataSource
protected final PipelineDataSourceWrapper getTargetCachedDataSource(TaskConfiguration taskConfig, PipelineDataSourceManager dataSourceManager) -
executeTargetTableSQL
protected final void executeTargetTableSQL(Connection targetConnection, String sql) throws SQLException - Throws:
SQLException
-
getTableDefinitionSQLType
-
addIfNotExistsForCreateTableSQL
-
replaceActualTableNameToLogicTableName
-