Red Hat Data Grid HotRod C++ Client  7.2.0
Query.h
Go to the documentation of this file.
1 /*
2  * Query.h
3  *
4  * Created on: Nov 23, 2016
5  * Author: rigazilla
6  */
7 
8 #ifndef INCLUDE_INFINISPAN_HOTROD_QUERY_H_
9 #define INCLUDE_INFINISPAN_HOTROD_QUERY_H_
10 #include "infinispan/hotrod/query.pb.h"
11 #include <tuple>
12 
13 using namespace org::infinispan::protostream;
14 
15 namespace org {
16 namespace infinispan {
17 namespace query {
18 namespace remote {
19 namespace client {
20 
21 // jpqlstring field has been renamed to querystring
22 // in the .proto file.
23 // This class mantains backward compatibility
27 class QueryRequest : public QueryRequestProtobuf
28 {
29 public:
30  inline bool has_jpqlstring() const { return has_querystring(); }
31  inline void clear_jpqlstring() { clear_querystring(); }
36  inline const ::std::string& jpqlstring() const { return querystring(); }
42  inline void set_jpqlstring(const ::std::string& value) { set_querystring(value); }
47  inline void set_jpqlstring(const char* value) { set_querystring(value); }
54  inline void set_jpqlstring(const char* value, size_t size) { set_querystring(value, size); }
55  inline ::std::string* mutable_jpqlstring() { return mutable_querystring(); }
56  inline ::std::string* release_jpqlstring() { return release_querystring(); }
57  inline void set_allocated_jpqlstring(::std::string* querystring) { set_allocated_querystring(querystring); }
58 };
59 
60 }}}}}
61 
62 #endif /* INCLUDE_INFINISPAN_HOTROD_QUERY_H_ */
bool has_jpqlstring() const
Definition: Query.h:30
inline::std::string * release_jpqlstring()
Definition: Query.h:56
const ::std::string & jpqlstring() const
Definition: Query.h:36
Definition: Query.h:15
void set_allocated_jpqlstring(::std::string *querystring)
Definition: Query.h:57
inline::std::string * mutable_jpqlstring()
Definition: Query.h:55
Definition: AuthenticationConfiguration.h:10
void set_jpqlstring(const char *value)
Definition: Query.h:47
void set_jpqlstring(const char *value, size_t size)
Definition: Query.h:54
void set_jpqlstring(const ::std::string &value)
Definition: Query.h:42