クラス DropObjectsCommand
java.lang.Object
com.sqlapp.data.db.command.AbstractCommand
com.sqlapp.data.db.command.AbstractDataSourceCommand
com.sqlapp.data.db.command.AbstractSchemaDataSourceCommand
com.sqlapp.data.db.command.DropObjectsCommand
- すべての実装されたインタフェース:
Runnable
DROPコマンド
-
フィールドの概要
クラスから継承されたフィールド com.sqlapp.data.db.command.AbstractCommand
logger -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected voiddoRun()protected voiddropObjects(Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry) protected voiddropTables(Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry) String[]String[]String[]String[]protected com.sqlapp.data.db.metadata.ReadDbObjectPredicateprotected com.sqlapp.data.db.metadata.SchemaReadergetSchemaReader(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect) booleanbooleanbooleanbooleanprotected voidloadDetail(Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema) voidsetAfterDropTableSql(String afterDropTableSql) voidsetDropObjects(boolean dropObjects) voidsetDropTables(boolean dropTables) voidsetExcludeObjects(String... excludeObjects) voidsetExcludeSchemas(String... excludeSchemas) voidsetIncludeObjects(String... includeObjects) voidsetIncludeSchemas(String... includeSchemas) voidsetOnlyCurrentCatalog(boolean onlyCurrentCatalog) voidsetOnlyCurrentSchema(boolean onlyCurrentSchema) voidsetPreDropTableSql(String preDropTableSql) クラスから継承されたメソッド com.sqlapp.data.db.command.AbstractSchemaDataSourceCommand
getSchemas, getSqlFactoryRegistry, setSqlFactoryRegistryクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractDataSourceCommand
createOutputTextBuilder, getConnection, getConnectionHandler, getCurrentCatalogName, getCurrentSchemaName, getDataSource, getDialect, newConverters, releaseConnection, rollback, setConnection, setConnectionHandler, setDataSource, setDialectクラスから継承されたメソッド com.sqlapp.data.db.command.AbstractCommand
createJsonConverter, createYamlConverter, debug, debug, error, error, getConsoleOutputLevel, getContext, getConvertHandler, getErr, getExceptionHandler, info, info, initialize, initializeContext, run, setConsoleOutputLevel, setConvertHandler, setExceptionHandler
-
コンストラクタの詳細
-
DropObjectsCommand
public DropObjectsCommand()
-
-
メソッドの詳細
-
getSchemaReader
protected com.sqlapp.data.db.metadata.SchemaReader getSchemaReader(Connection connection, com.sqlapp.data.db.dialect.Dialect dialect) throws SQLException - 例外:
SQLException
-
getMetadataReaderFilter
protected com.sqlapp.data.db.metadata.ReadDbObjectPredicate getMetadataReaderFilter() -
doRun
protected void doRun()- 定義:
doRunクラス内AbstractCommand
-
dropObjects
protected void dropObjects(Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry) throws SQLException - 例外:
SQLException
-
loadDetail
protected void loadDetail(Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema) throws SQLException - 例外:
SQLException
-
dropTables
protected void dropTables(Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry) throws SQLException - 例外:
SQLException
-
getIncludeSchemas
- 戻り値:
- the includeSchemas
-
setIncludeSchemas
- パラメータ:
includeSchemas- the includeSchemas to set
-
getExcludeSchemas
- 戻り値:
- the excludeSchemas
-
setExcludeSchemas
- パラメータ:
excludeSchemas- the excludeSchemas to set
-
getIncludeObjects
- 戻り値:
- the includeObjects
-
setIncludeObjects
- パラメータ:
includeObjects- the includeObjects to set
-
getExcludeObjects
- 戻り値:
- the excludeObjects
-
setExcludeObjects
- パラメータ:
excludeObjects- the excludeObjects to set
-
isOnlyCurrentCatalog
public boolean isOnlyCurrentCatalog()- 戻り値:
- the onlyCurrentCatalog
-
setOnlyCurrentCatalog
public void setOnlyCurrentCatalog(boolean onlyCurrentCatalog) - パラメータ:
onlyCurrentCatalog- the onlyCurrentCatalog to set
-
isOnlyCurrentSchema
public boolean isOnlyCurrentSchema()- 戻り値:
- the onlyCurrentSchema
-
setOnlyCurrentSchema
public void setOnlyCurrentSchema(boolean onlyCurrentSchema) - パラメータ:
onlyCurrentSchema- the onlyCurrentSchema to set
-
isDropObjects
public boolean isDropObjects()- 戻り値:
- the dropObjects
-
setDropObjects
public void setDropObjects(boolean dropObjects) - パラメータ:
dropObjects- the dropObjects to set
-
isDropTables
public boolean isDropTables()- 戻り値:
- the dropTables
-
setDropTables
public void setDropTables(boolean dropTables) - パラメータ:
dropTables- the dropTables to set
-
getPreDropTableSql
- 戻り値:
- the preDropTableSql
-
setPreDropTableSql
- パラメータ:
preDropTableSql- the preDropTableSql to set
-
getAfterDropTableSql
- 戻り値:
- the afterDropTableSql
-
setAfterDropTableSql
- パラメータ:
afterDropTableSql- the afterDropTableSql to set
-