Uses the delegator to clear elements from the cache; intelligently looks at
the map passed to see if it is a byPrimaryKey, and byAnd, or an all.
author: David E.
Begins a transaction if one is not already in place; if does begin one puts true in the began-transaction-name env variable, otherwise it returns false.
author: David E.