org.infinispan.cli.interpreter.statement
Class ReplaceStatement

java.lang.Object
  extended by org.infinispan.cli.interpreter.statement.ReplaceStatement
All Implemented Interfaces:
Statement

public class ReplaceStatement
extends Object
implements Statement

Replaces an existing entry in the cache

Since:
5.2
Author:
Tristan Tarrant

Constructor Summary
ReplaceStatement(List<Option> options, KeyData key, Object newValue, ExpirationData exp)
           
ReplaceStatement(List<Option> options, KeyData key, Object oldValue, Object newValue, ExpirationData exp)
           
 
Method Summary
 Result execute(Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplaceStatement

public ReplaceStatement(List<Option> options,
                        KeyData key,
                        Object newValue,
                        ExpirationData exp)

ReplaceStatement

public ReplaceStatement(List<Option> options,
                        KeyData key,
                        Object oldValue,
                        Object newValue,
                        ExpirationData exp)
Method Detail

execute

public Result execute(Session session)
               throws StatementException
Specified by:
execute in interface Statement
Throws:
StatementException

-->

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.