/*
(non-Javadoc)

@see com.ibm.ws.sib.processor.impl.interfaces.DestinationHandler#isToBeDeleted()
339750
@Override
    public boolean isToBeDeleted()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(
                        tc,
                        "isToBeDeleted",
                        new Object[] { getName(), getUuid().toString() });
            SibTr.exit(tc, "isToBeDeleted", Boolean.valueOf(_toBeDeleted));
        }

        return _toBeDeleted;
    }
725807
boolean _closeBrowserDestinationDeleted(DestinationHandler destinationHandler)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "_closeBrowserDestinationDeleted", destinationHandler);

    if (destinationHandler == _dest)
    {
      synchronized (this)
      {
        if (!_closed)
          //if we're closed already, don't bother doing anything.
        {
          //dereference from the parent connection
          _conn.removeBrowserSession(this);
          
          if (_consumerManager != null)
          {
            // We still call detach because we might be a gathering browser
            // and therefore need to detach any other underlying browsers
            _consumerManager.detachBrowser(this);
          }
          
          if (_browseCursor != null)
          {
            try
            {
              _browseCursor.finished();
            }
            catch (SISessionDroppedException e)
            {
              FFDCFilter.processException(
                  e,
                  "com.ibm.ws.sib.processor.impl.BrowserSessionImpl._closeBrowserDestinationDeleted",
                  "1:423:1.78.1.7",
                  this);
                  
              SibTr.exception(tc, e);
              SibTr.error(tc, "INTERNAL_MESSAGING_ERROR_CWSIP0002",
                new Object[] {
                  "com.ibm.ws.sib.processor.impl.BrowserSessionImpl._closeBrowserDestinationDeleted",
                  "1:430:1.78.1.7",
                  SIMPUtils.getStackTrace(e) });
            }
          }
          
          _browseCursor = null;
          _conn = null;
          _closed = true;
        }
      }
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "_closeBrowserDestinationDeleted", new Boolean(_closed));
    
    return _closed;
  }
1372562
public boolean deleteData(String indexName, String type, String id) {
        DeleteResponse response = getClient().prepareDelete().setIndex(indexName).setType(type).setId(id).execute().actionGet();
        return response.getResult() == DocWriteResponse.Result.DELETED;
    }
1046868
boolean isManaged() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "isManaged");
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "isManaged", isManaged);
        return isManaged;
    }
1278126
public boolean onDelete()
    {
        if (this.getEditing() == false)
        {   // Can't delete on a disabled grid.
            String strError = "Can't Delete from disabled grid";
            if (this.getTask() != null)
                if (this.getTask().getApplication() != null)
                    strError = ((BaseApplication)this.getTask().getApplication()).getResources(ResourceConstants.ERROR_RESOURCE, true).getString(strError);
            this.displayError(strError);
            return false;
        }
        return super.onDelete();
    }
191411
protected boolean delete(@NotNull ByteIterable key, @Nullable ByteIterable value) {
        if (deleteImpl(key, value)) {
            TreeCursorMutable.notifyCursors(this);
            return true;
        }
        return false;
    }
8681
@Override
    public void delete(final T value) {
        if (value != null) {
            final String id = value.getId();
            if (!StringUtils.isEmpty(id)) {
                doDelete(id);
                notifyDeleted(value);
            }
        }
    }
837326
public boolean isToBeIgnored()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(tc, "isToBeIgnored");
            SibTr.exit(tc, "isToBeIgnored", Boolean.valueOf(_toBeIgnored));
        }

        return _toBeIgnored;
    }
221539
public void performDeletion()
    {
        if(deletionMap == null)
            return;
        else
        {
            PersistenceBroker broker = tx.getBroker();
            Iterator it = deletionMap.values().iterator();
            while(it.hasNext())
            {
                NamedEntry namedEntry = (NamedEntry) it.next();
                broker.delete(namedEntry);
            }
        }
    }
767970
private void deleteDestLocalizations(JsBus bus) {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, "deleteDestLocalizations", this);
        }

        Iterator i = alterDestinations.iterator();

        while (i.hasNext()) {

            String key = (String) i.next();

            try {
                // Get it from the old cache as it is no longer in the new cache.
                DestinationDefinition dd = (DestinationDefinition) _me.getSIBDestination(bus.getName(), key);
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    SibTr.debug(tc, "deleteDestLocalizations: deleting DestinationLocalization, name =" + key + " Name=");
                }
                if (!isInZOSServentRegion() && _mpAdmin != null) {
                	LocalizationEntry dldEntry = (LocalizationEntry) lpMap.get(dd.getName()+"@"+_me.getName());
                	LocalizationDefinition dld=(LocalizationDefinition) dldEntry.getLocalizationDefinition();
                	
                    //Venu Liberty change: passing Destination UUID as String.
                    //Destination Definition is passed as NULL as entire destination has to be deleted
                    _mpAdmin.deleteDestinationLocalization(dd.getUUID().toString(), null);  
                }
               
            } catch (Exception e) {
                com.ibm.ws.ffdc.FFDCFilter.processException(e, CLASS_NAME + ".deleteDestLocalizations", "1", this);
                SibTr.exception(tc, e);
            }
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(tc, "deleteDestLocalizations");
        }
    }
1357511
boolean isTransactionRolledBack () {

        final String methodName = "isTransactionRolledBack";
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName);
        }

        // Default to true indicating a rollback 
        boolean isRolledBack = true;
        Boolean rolledBack = null;

        if (_lastXidUsed != null) {
            // Get hold of the state of the last transaction used by this xa resource
            // instance.
            synchronized (_transactionStates) {

              rolledBack = (Boolean) _transactionStates.remove (_lastXidUsed);

              if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
                StringBuffer sb = new StringBuffer ("After removing the xid ");
                sb.append (_lastXidUsed);
                sb.append (" the hashtable of transactionStates now contains ");
                sb.append (_transactionStates.size());
                sb.append (" entries");
                SibTr.debug (this, TRACE, sb.toString());
              }
           }
        } else {

          if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr.debug (this, TRACE, "WARNING! No last Xid set");
          }

        }


        if (rolledBack != null) {

          isRolledBack = rolledBack.booleanValue();

        }

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
          SibTr.exit(this, TRACE, methodName, Boolean.valueOf(isRolledBack));
        }

        return isRolledBack;

    }
16213
@Override
    public boolean isDone() {

        //F743-609CodRev - read volatile variable only once
        boolean done = ivDone;
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "isDone: " + done + " Future object: " + this);
        }

        return (done);
    }
620621
@Override
    public boolean isRemoved() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "isRemoved : false");
        return false;
    }
1290910
@Override
    public boolean isTransacted()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(this, tc, "isTransacted");
            SibTr.exit(this, tc, "isTransacted", Boolean.valueOf(transacted));
        }
        return transacted;
    }
873448
@Override
	public boolean isStored() {

		if (isIdProperty()) {
			return true;
		}

		Indexed indexedAnnotation = getIndexAnnotation();
		return indexedAnnotation != null && indexedAnnotation.stored();
	}
328053
public void setToBeDeleted(boolean delete)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "setToBeDeleted", Boolean.valueOf(delete));

        _toBeDeleted = delete;

        if (delete)
        {
            // Tell the associated statistics that they should disappear.
            if (_protoRealization != null)
                _protoRealization.setToBeDeleted();
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setToBeDeleted");
    }
825031
@Override
  public boolean deleteDataNode(String nodeId) {
    try {
      rwLock.writeLock().lock();
      return this.dataNodeMap.containsKey(nodeId) && deleteDataNode(this.dataNodeMap.get(nodeId));
    } finally {
      rwLock.writeLock().unlock();
    }
  }