infinispan/infinispan — pull request #1482 by anistor (2012-11-26 12:56:04+00:00)
Title: ISPN-2530 Clear command does not work for distributed transactional caches

ISPN-2530 Clear command does not work for distributed transactional caches

* Add CacheTransaction.hasModification(Class clazz) to be able to test if current transaction has a modification of a certain type
* DistributionInterceptor.visitPrepareCommand sends the PrepareCommand to all cache members if the current TX has a ClearCommand modification.
* LocalTransaction.getCommitNodes(..) will return the whole list of members if the current transaction has a ClearCommand
* LocalTransaction.getCommitNodes(..) can accept an empty list of recipients without failing
* Add functional tests for clear operation

JIRA: https://issues.jboss.org/browse/ISPN-2530