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 
00029 class CPPCACHE_EXPORT Query : public SharedBase
00030 {
00031 
00032 public:
00033 
00046   virtual SelectResultsPtr execute(uint32_t timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
00047 
00053   virtual const char * getQueryString() const = 0;
00054 
00060   virtual void compile() = 0;
00061 
00068   virtual bool isCompiled() = 0;
00069 
00070 };
00071 
00072 } //namespace gemfire
00073 
00074 #endif //ifndef __GEMFIRE_QUERY_H__

GemFire C++ Cache API Documentation