public class DefaultSaveModeHandler extends Object implements SaveModeHandler
| 限定符和类型 | 字段和说明 |
|---|---|
Catalog |
catalog |
CatalogTable |
catalogTable |
String |
customSql |
DataSaveMode |
dataSaveMode |
SchemaSaveMode |
schemaSaveMode |
TablePath |
tablePath |
| 构造器和说明 |
|---|
DefaultSaveModeHandler(SchemaSaveMode schemaSaveMode,
DataSaveMode dataSaveMode,
Catalog catalog,
CatalogTable catalogTable,
String customSql) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected void |
createSchemaWhenNotExist() |
protected void |
createTable() |
protected void |
customProcessing() |
protected boolean |
dataExists() |
protected void |
dropTable() |
protected void |
errorWhenDataExists() |
protected void |
errorWhenSchemaNotExist() |
protected void |
executeCustomSql() |
void |
handleDataSaveMode() |
void |
handleSchemaSaveMode() |
protected void |
keepSchemaAndData() |
protected void |
keepSchemaDropData() |
protected void |
recreateSchema() |
protected boolean |
tableExists() |
protected void |
truncateTable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleSaveModepublic SchemaSaveMode schemaSaveMode
public DataSaveMode dataSaveMode
public Catalog catalog
public TablePath tablePath
public CatalogTable catalogTable
public String customSql
public DefaultSaveModeHandler(SchemaSaveMode schemaSaveMode, DataSaveMode dataSaveMode, Catalog catalog, CatalogTable catalogTable, String customSql)
public void handleSchemaSaveMode()
handleSchemaSaveMode 在接口中 SaveModeHandlerpublic void handleDataSaveMode()
handleDataSaveMode 在接口中 SaveModeHandlerprotected void recreateSchema()
protected void createSchemaWhenNotExist()
protected void errorWhenSchemaNotExist()
protected void keepSchemaDropData()
protected void keepSchemaAndData()
protected void customProcessing()
protected void errorWhenDataExists()
protected boolean tableExists()
protected void dropTable()
protected void createTable()
protected void truncateTable()
protected boolean dataExists()
protected void executeCustomSql()
public void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.