Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# delete()

The `Database.delete()` function deletes a record corresponding to the concept instance in the database.

If `cascade` is set to `true`, it deletes all database records corresponding to the contained concept property references and nulls out foreign key references in database records corresponding to the concepts that refer to the concept being deleted.

## Example

    try
      {
       Database.setCurrentConnection ("/MyDbConnection");
       Database.beginTransaction ();
       /*the instance passed to delete operation is an instance of the    dbconcept*/
       Database.delete(instance, false)
       Database.commit();
      }
    catch (Exception e)
      {
       Database.rollback();
      }
    finally
      {
       Database.unsetConnection();
      }

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.