00001 #ifndef __GEMFIRE_QUERY_H__ 00002 #define __GEMFIRE_QUERY_H__ 00003 /*========================================================================= 00004 * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved. 00005 * This product is protected by U.S. and international copyright 00006 * and intellectual property laws. Pivotal products are covered by 00007 * more patents listed at http://www.pivotal.io/patents. 00008 *======================================================================== 00009 */ 00010 00011 #include "gfcpp_globals.hpp" 00012 #include "gf_types.hpp" 00013 00014 #include "SelectResults.hpp" 00015 00020 namespace gemfire 00021 { 00022 00033 class CPPCACHE_EXPORT Query : public SharedBase 00034 { 00035 00036 public: 00037 00052 virtual SelectResultsPtr execute(uint32_t timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0; 00053 00070 virtual SelectResultsPtr execute(CacheableVectorPtr paramList, uint32_t timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0; 00076 virtual const char * getQueryString() const = 0; 00077 00083 virtual void compile() = 0; 00084 00091 virtual bool isCompiled() = 0; 00092 00093 }; 00094 00095 } //namespace gemfire 00096 00097 #endif //ifndef __GEMFIRE_QUERY_H__