public <T extends DataObject>void purge(URI id,Class<T> type) throws DatabaseException {
  T dataObj=_dbClient.queryObject(type,id);
  if (dataObj != null) {
    if (!dataObj.getInactive()) {
      dataObj.setInactive(true);
      _dbClient.persistObject(dataObj);
    }
    Set<URI> cleared=new HashSet<URI>();
    purge(dataObj,cleared);
    _log.info("Deactivated db_object: type = {}, id = {}",type.toString(),id);
  }
}

public < T extends DataObject > void purge ( URI id , Class < T > type ) throws DatabaseException { T dataObj = _dbClient . queryObject ( type , id ) ; if ( dataObj != null ) { if ( ! dataObj . getInactive ( ) ) { dataObj . setInactive ( true ) ; _dbClient . persistObject ( dataObj ) ; } Set < URI > cleared = new HashSet < URI > ( ) ; purge ( dataObj , cleared ) ; _log . info ( "Deactivated db_object: type = {}, id = {}" , type . toString ( ) , id ) ; } }
checks to see if any references exist for this uri uses dependency list created from relational indices
