use of org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction in project dbeaver by serge-rider.
the class OracleDataTypeManager method addObjectDeleteActions.
@Override
protected void addObjectDeleteActions(List<DBEPersistAction> actions, ObjectDeleteCommand objectDeleteCommand) {
final OracleDataType object = objectDeleteCommand.getObject();
actions.add(new SQLDatabasePersistAction("Drop type", //$NON-NLS-1$
"DROP TYPE " + object.getFullyQualifiedName(DBPEvaluationContext.DDL)));
}
use of org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction in project dbeaver by serge-rider.
the class OracleDataTypeManager method createOrReplaceProcedureQuery.
private void createOrReplaceProcedureQuery(List<DBEPersistAction> actionList, OracleDataType dataType) {
String header = OracleUtils.normalizeSourceName(dataType, false);
if (!CommonUtils.isEmpty(header)) {
actionList.add(new SQLDatabasePersistAction("Create type header", //$NON-NLS-1$
"CREATE OR REPLACE " + header));
}
String body = OracleUtils.normalizeSourceName(dataType, true);
if (!CommonUtils.isEmpty(body)) {
actionList.add(new SQLDatabasePersistAction("Create type body", //$NON-NLS-1$
"CREATE OR REPLACE " + body));
}
OracleUtils.addSchemaChangeActions(actionList, dataType);
}
use of org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction in project dbeaver by serge-rider.
the class OraclePackageManager method addObjectDeleteActions.
@Override
protected void addObjectDeleteActions(List<DBEPersistAction> actions, ObjectDeleteCommand objectDeleteCommand) {
final OraclePackage object = objectDeleteCommand.getObject();
actions.add(new SQLDatabasePersistAction("Drop package", //$NON-NLS-1$
"DROP PACKAGE " + object.getFullyQualifiedName(DBPEvaluationContext.DDL)));
}
use of org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction in project dbeaver by serge-rider.
the class OracleProcedureManager method addObjectDeleteActions.
@Override
protected void addObjectDeleteActions(List<DBEPersistAction> actions, ObjectDeleteCommand objectDeleteCommand) {
final OracleProcedureStandalone object = objectDeleteCommand.getObject();
actions.add(new SQLDatabasePersistAction("Drop procedure", //$NON-NLS-1$ //$NON-NLS-2$
"DROP " + object.getProcedureType().name() + " " + object.getFullyQualifiedName(DBPEvaluationContext.DDL)));
}
use of org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction in project dbeaver by serge-rider.
the class DB2SchemaManager method addObjectDeleteActions.
@Override
protected void addObjectDeleteActions(List<DBEPersistAction> actions, ObjectDeleteCommand command) {
String schemaName = command.getObject().getName();
DBEPersistAction action = new SQLDatabasePersistAction("Drop schema (SQL)", String.format(SQL_DROP_SCHEMA, DBUtils.getQuotedIdentifier(command.getObject())));
actions.add(action);
}
Aggregations