public class DropObjectsCommand extends AbstractSchemaDataSourceCommand
logger| Constructor and Description |
|---|
DropObjectsCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRun() |
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) |
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) |
java.lang.String |
getAfterDropTableSql() |
java.lang.String[] |
getExcludeObjects() |
java.lang.String[] |
getExcludeSchemas() |
java.lang.String[] |
getIncludeObjects() |
java.lang.String[] |
getIncludeSchemas() |
protected com.sqlapp.data.db.metadata.ReadDbObjectPredicate |
getMetadataReaderFilter() |
java.lang.String |
getPreDropTableSql() |
protected com.sqlapp.data.db.metadata.SchemaReader |
getSchemaReader(com.sqlapp.data.db.dialect.Dialect dialect) |
boolean |
isDropObjects() |
boolean |
isDropTables() |
boolean |
isOnlyCurrentCatalog() |
boolean |
isOnlyCurrentSchema() |
protected void |
loadDetail(java.sql.Connection connection,
com.sqlapp.data.db.metadata.SchemaReader schemaReader,
com.sqlapp.data.schemas.Schema schema) |
void |
setAfterDropTableSql(java.lang.String afterDropTableSql) |
void |
setDropObjects(boolean dropObjects) |
void |
setDropTables(boolean dropTables) |
void |
setExcludeObjects(java.lang.String... excludeObjects) |
void |
setExcludeSchemas(java.lang.String... excludeSchemas) |
void |
setIncludeObjects(java.lang.String... includeObjects) |
void |
setIncludeSchemas(java.lang.String... includeSchemas) |
void |
setOnlyCurrentCatalog(boolean onlyCurrentCatalog) |
void |
setOnlyCurrentSchema(boolean onlyCurrentSchema) |
void |
setPreDropTableSql(java.lang.String preDropTableSql) |
getSchemas, getSchemas, getSqlFactoryRegistry, setSqlFactoryRegistrycreateOutputTextBuilder, getConnection, getConnectionHandler, getCurrentCatalogName, getCurrentSchemaName, getDataSource, getDialect, getDialect, newConverters, releaseConnection, setConnection, setConnectionHandler, setDataSource, setDialectcreateJsonConverter, getContext, getConvertHandler, getErr, getExceptionHandler, initialize, initializeContext, println, run, setConvertHandler, setExceptionHandlerprotected com.sqlapp.data.db.metadata.SchemaReader getSchemaReader(com.sqlapp.data.db.dialect.Dialect dialect)
throws java.sql.SQLException
java.sql.SQLExceptionprotected com.sqlapp.data.db.metadata.ReadDbObjectPredicate getMetadataReaderFilter()
protected void doRun()
doRun in class AbstractCommandprotected 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.SQLExceptionprotected 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.SQLExceptionprotected 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.SQLExceptionpublic java.lang.String[] getIncludeSchemas()
public void setIncludeSchemas(java.lang.String... includeSchemas)
includeSchemas - the includeSchemas to setpublic java.lang.String[] getExcludeSchemas()
public void setExcludeSchemas(java.lang.String... excludeSchemas)
excludeSchemas - the excludeSchemas to setpublic java.lang.String[] getIncludeObjects()
public void setIncludeObjects(java.lang.String... includeObjects)
includeObjects - the includeObjects to setpublic java.lang.String[] getExcludeObjects()
public void setExcludeObjects(java.lang.String... excludeObjects)
excludeObjects - the excludeObjects to setpublic boolean isOnlyCurrentCatalog()
public void setOnlyCurrentCatalog(boolean onlyCurrentCatalog)
onlyCurrentCatalog - the onlyCurrentCatalog to setpublic boolean isOnlyCurrentSchema()
public void setOnlyCurrentSchema(boolean onlyCurrentSchema)
onlyCurrentSchema - the onlyCurrentSchema to setpublic boolean isDropObjects()
public void setDropObjects(boolean dropObjects)
dropObjects - the dropObjects to setpublic boolean isDropTables()
public void setDropTables(boolean dropTables)
dropTables - the dropTables to setpublic java.lang.String getPreDropTableSql()
public void setPreDropTableSql(java.lang.String preDropTableSql)
preDropTableSql - the preDropTableSql to setpublic java.lang.String getAfterDropTableSql()
public void setAfterDropTableSql(java.lang.String afterDropTableSql)
afterDropTableSql - the afterDropTableSql to set