com.googlecode.jpattern.gwt.client.communication
Class ServerCallGetCacheableCommand_OLD<T extends com.googlecode.jpattern.shared.result.facade.ICommandFacadeResult<?>>

java.lang.Object
  extended by com.googlecode.jpattern.gwt.client.command.ACommand
      extended by com.googlecode.jpattern.gwt.client.communication.AServerCallCommand<T>
          extended by com.googlecode.jpattern.gwt.client.communication.ServerCallGetCacheableCommand_OLD<T>

public class ServerCallGetCacheableCommand_OLD<T extends com.googlecode.jpattern.shared.result.facade.ICommandFacadeResult<?>>
extends AServerCallCommand<T>

This command uses a cache to reduce the number of calls to the server. Before perform the real get call, it checks if a valid result for this get call is in a global cache (using the ICacheService), if yes the cached value is returned otherwise the get call is performed and the result is stored in the cache.

Author:
Francesco Cina' 06/mag/2011

Constructor Summary
ServerCallGetCacheableCommand_OLD(Map<String,String> inKeyValuesMap, StringBuffer url, GenericWrapper<T> callResult, String cacheName)
           
 
Method Summary
protected  void exec(com.googlecode.jpattern.shared.result.IResult commandResult)
           
 
Methods inherited from class com.googlecode.jpattern.gwt.client.command.ACommand
callback, exec, getCommandCallBack, getProvider, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerCallGetCacheableCommand_OLD

public ServerCallGetCacheableCommand_OLD(Map<String,String> inKeyValuesMap,
                                         StringBuffer url,
                                         GenericWrapper<T> callResult,
                                         String cacheName)
Method Detail

exec

protected void exec(com.googlecode.jpattern.shared.result.IResult commandResult)
Specified by:
exec in class ACommand


Copyright © 2011. All Rights Reserved.