return new DBOperationExecutor() {
public void executeOperation(DBOperationType operationType) throws SQLException, DBOperationNotSupportedException {
Connection connection = getConnectionHandler().getStandaloneConnection(getSchema());
DatabaseMetadataInterface metadataInterface = getConnectionHandler().getInterfaceProvider().getMetadataInterface();
if (operationType == DBOperationType.ENABLE) {
metadataInterface.enableConstraint(
getSchema().getName(),
getDataset().getName(),
getName(),
connection);
getStatus().set(DBObjectStatus.ENABLED, true);