クラス 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
-
- すべての実装されたインタフェース:
java.lang.Runnable
public class DropObjectsCommand extends AbstractSchemaDataSourceCommand
DROPコマンド
-
-
フィールドの概要
-
クラスから継承されたフィールド com.sqlapp.data.db.command.AbstractCommand
logger
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 DropObjectsCommand()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected voiddoRun()protected voiddropObjects(java.sql.Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry)protected voiddropTables(java.sql.Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry)java.lang.StringgetAfterDropTableSql()java.lang.String[]getExcludeObjects()java.lang.String[]getExcludeSchemas()java.lang.String[]getIncludeObjects()java.lang.String[]getIncludeSchemas()protected com.sqlapp.data.db.metadata.ReadDbObjectPredicategetMetadataReaderFilter()java.lang.StringgetPreDropTableSql()protected com.sqlapp.data.db.metadata.SchemaReadergetSchemaReader(java.sql.Connection connection, com.sqlapp.data.db.dialect.Dialect dialect)booleanisDropObjects()booleanisDropTables()booleanisOnlyCurrentCatalog()booleanisOnlyCurrentSchema()protected voidloadDetail(java.sql.Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema)voidsetAfterDropTableSql(java.lang.String afterDropTableSql)voidsetDropObjects(boolean dropObjects)voidsetDropTables(boolean dropTables)voidsetExcludeObjects(java.lang.String... excludeObjects)voidsetExcludeSchemas(java.lang.String... excludeSchemas)voidsetIncludeObjects(java.lang.String... includeObjects)voidsetIncludeSchemas(java.lang.String... includeSchemas)voidsetOnlyCurrentCatalog(boolean onlyCurrentCatalog)voidsetOnlyCurrentSchema(boolean onlyCurrentSchema)voidsetPreDropTableSql(java.lang.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, getContext, getConvertHandler, getErr, getExceptionHandler, initialize, initializeContext, println, run, setConvertHandler, setExceptionHandler
-
-
-
-
メソッドの詳細
-
getSchemaReader
protected com.sqlapp.data.db.metadata.SchemaReader getSchemaReader(java.sql.Connection connection, com.sqlapp.data.db.dialect.Dialect dialect) throws java.sql.SQLException- 例外:
java.sql.SQLException
-
getMetadataReaderFilter
protected com.sqlapp.data.db.metadata.ReadDbObjectPredicate getMetadataReaderFilter()
-
doRun
protected void doRun()
- 定義:
doRunクラス内AbstractCommand
-
dropObjects
protected void dropObjects(java.sql.Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry) throws java.sql.SQLException- 例外:
java.sql.SQLException
-
loadDetail
protected void loadDetail(java.sql.Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema) throws java.sql.SQLException- 例外:
java.sql.SQLException
-
dropTables
protected void dropTables(java.sql.Connection connection, com.sqlapp.data.db.metadata.SchemaReader schemaReader, com.sqlapp.data.schemas.Schema schema, com.sqlapp.data.db.sql.SqlFactoryRegistry sqlFactoryRegistry) throws java.sql.SQLException- 例外:
java.sql.SQLException
-
getIncludeSchemas
public java.lang.String[] getIncludeSchemas()
- 戻り値:
- the includeSchemas
-
setIncludeSchemas
public void setIncludeSchemas(java.lang.String... includeSchemas)
- パラメータ:
includeSchemas- the includeSchemas to set
-
getExcludeSchemas
public java.lang.String[] getExcludeSchemas()
- 戻り値:
- the excludeSchemas
-
setExcludeSchemas
public void setExcludeSchemas(java.lang.String... excludeSchemas)
- パラメータ:
excludeSchemas- the excludeSchemas to set
-
getIncludeObjects
public java.lang.String[] getIncludeObjects()
- 戻り値:
- the includeObjects
-
setIncludeObjects
public void setIncludeObjects(java.lang.String... includeObjects)
- パラメータ:
includeObjects- the includeObjects to set
-
getExcludeObjects
public java.lang.String[] getExcludeObjects()
- 戻り値:
- the excludeObjects
-
setExcludeObjects
public void setExcludeObjects(java.lang.String... excludeObjects)
- パラメータ:
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
public java.lang.String getPreDropTableSql()
- 戻り値:
- the preDropTableSql
-
setPreDropTableSql
public void setPreDropTableSql(java.lang.String preDropTableSql)
- パラメータ:
preDropTableSql- the preDropTableSql to set
-
getAfterDropTableSql
public java.lang.String getAfterDropTableSql()
- 戻り値:
- the afterDropTableSql
-
setAfterDropTableSql
public void setAfterDropTableSql(java.lang.String afterDropTableSql)
- パラメータ:
afterDropTableSql- the afterDropTableSql to set
-
-