code: protected void zDelete(MithraDataObject dataToDelete) throws MithraDatabaseException
      {
          long startTime = System.currentTimeMillis();
          Object source = this.getSourceAttributeValueFromObjectGeneric(dataToDelete);
          String sql = "delete from " + this.getFullyQualifiedTableNameGenericSource(source);
  
          sql += this.getSqlWhereClauseForDelete(dataToDelete);
  
          Connection con = null;
          PreparedStatement stm = null;
          try
          {
              con = this.getConnectionForWriteGenericSource(source);
              TimeZone databaseTimeZone = this.getDatabaseTimeZoneGenericSource(source);
              DatabaseType dt = this.getDatabaseTypeGenericSource(source);
  
              if (this.getSqlLogger().isDebugEnabled())
              {
                  PrintablePreparedStatement pps = new PrintablePreparedStatement(sql);
                  this.setPrimaryKeyAttributes(pps, 1, dataToDelete, databaseTimeZone, dt);
                  this.logWithSource(this.getSqlLogger(), source, "deleting with: " + pps.getPrintableStatement());
              }
              stm = con.prepareStatement(sql);
              this.setPrimaryKeyAttributes(stm, 1, dataToDelete, databaseTimeZone, dt);
              int deleted = stm.executeUpdate();
              stm.close();
              stm = null;
              checkDeletedRows(deleted, dataToDelete);
  
              String dbid = this.getDatabaseIdentifierGenericSource(source);
              getNotificationEventManager().addMithraNotificationEvent(dbid, this.getFullyQualifiedFinderClassName(), MithraNotificationEvent.DELETE, dataToDelete, source);
          }
          catch (SQLException e)
          {
              this.analyzeAndWrapSqlExceptionGenericSource("delete failed " + e.getMessage(), e, source, con);
          }
          finally
          {
              this.closeStatementAndConnection(con, stm);
          }
          this.getPerformanceData().recordTimeForDelete(1, startTime);
      }
docs: delete Start -----------------------------------------------------------------------------------------------------------