Package org.infinispan.cli.interpreter.result

Examples of org.infinispan.cli.interpreter.result.StatementException


   @Override
   public Result execute(Session session) throws StatementException {
      TransactionManager tm = getTransactionManager(session);
      if (tm==null) {
         throw new StatementException("Cannot retrieve a transaction manager for the cache");
      }
      try {
         tm.begin();
         return EmptyResult.RESULT;
      } catch (NotSupportedException e) {
         throw new StatementException("The TransactionManager does not support nested transactions");
      } catch (SystemException e) {
         throw new StatementException("Unexpected error while starting transaction: "+e.getMessage());
      }
   }
View Full Code Here

TOP

Related Classes of org.infinispan.cli.interpreter.result.StatementException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.