[Bio] / Sprout / ERDB.pm Repository:
ViewVC logotype

Diff of /Sprout/ERDB.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.76, Wed Nov 15 12:08:26 2006 UTC revision 1.77, Mon Nov 20 05:53:02 2006 UTC
# Line 1612  Line 1612 
1612    
1613  =head3 Delete  =head3 Delete
1614    
1615  C<< my $stats = $erdb->Delete($entityName, $objectID); >>  C<< my $stats = $erdb->Delete($entityName, $objectID, $testFlag); >>
1616    
1617  Delete an entity instance from the database. The instance is deleted along with all entity and  Delete an entity instance from the database. The instance is deleted along with all entity and
1618  relationship instances dependent on it. The idea of dependence here is recursive. An object is  relationship instances dependent on it. The definition of I<dependence> is recursive.
1619  always dependent on itself. An object is dependent if it is a 1-to-many or many-to-many  
1620  relationship connected to a dependent entity or the "to" entity connected to a 1-to-many  An object is always dependent on itself. An object is dependent if it is a 1-to-many or many-to-many
1621    relationship connected to a dependent entity or if it is the "to" entity connected to a 1-to-many
1622  dependent relationship.  dependent relationship.
1623    
1624  =over 4  =over 4
# Line 1763  Line 1764 
1764                  # Here the user wants to trace without executing.                  # Here the user wants to trace without executing.
1765                  Trace($stmt) if T(0);                  Trace($stmt) if T(0);
1766              } else {              } else {
1767                  # Here we can delete. Note that the SQL method dies with a confessing                  # Here we can delete. Note that the SQL method dies with a confession
1768                  # if an error occurs, so we just go ahead and do it.                  # if an error occurs, so we just go ahead and do it.
1769                  Trace("Executing delete from $target using '$objectID'.") if T(3);                  Trace("Executing delete from $target using '$objectID'.") if T(3);
1770                  my $rv = $db->SQL($stmt, 0, $objectID);                  my $rv = $db->SQL($stmt, 0, $objectID);

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3