H:/gfcppsancout/product/include/gfcpp/Query.hpp

Go to the documentation of this file.
00001 #ifndef __GEMFIRE_QUERY_H__
00002 #define __GEMFIRE_QUERY_H__
00003 /*=========================================================================
00004  * (c) Copyright 2002-2006, GemStone Systems, Inc. All Rights Reserved.
00005  * 1260 NW Waterhouse Ave., Suite 200,  Beaverton, OR 97006
00006  *========================================================================
00007  */
00008 
00009 #include "gfcpp_globals.hpp"
00010 #include "gf_types.hpp"
00011 
00012 #include "SelectResults.hpp"
00013 
00018 #define DEFAULT_QUERY_RESPONSE_TIMEOUT 15
00019 
00020 namespace gemfire
00021 {
00022 
00032 class CPPCACHE_EXPORT Query : public SharedBase
00033 {
00034 
00035 public:
00036 
00052   virtual SelectResultsPtr execute(uint32_t timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
00053 
00062   virtual const char * getQueryString() const = 0;
00063 
00072   virtual void compile() = 0;
00073 
00083   virtual bool isCompiled() = 0;
00084 
00085 };
00086 
00087 } //namespace gemfire
00088 
00089 #endif //ifndef __GEMFIRE_QUERY_H__

GemFire C++ Cache API Documentation