Exemple #1
0
 public void execute_prepared_cql_query_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   execute_prepared_cql_query_args args = new execute_prepared_cql_query_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   execute_prepared_cql_query_result result = new execute_prepared_cql_query_result();
   try {
     result.Success = iface_.execute_prepared_cql_query(args.ItemId, args.Values);
   } catch (InvalidRequestException ire) {
     result.Ire = ire;
   } catch (UnavailableException ue) {
     result.Ue = ue;
   } catch (TimedOutException te) {
     result.Te = te;
   } catch (SchemaDisagreementException sde) {
     result.Sde = sde;
   }
   oprot.WriteMessageBegin(new TMessage("execute_prepared_cql_query", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemple #2
0
 public CqlResult recv_execute_prepared_cql_query()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   execute_prepared_cql_query_result result = new execute_prepared_cql_query_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.ire) {
     throw result.Ire;
   }
   if (result.__isset.ue) {
     throw result.Ue;
   }
   if (result.__isset.te) {
     throw result.Te;
   }
   if (result.__isset.sde) {
     throw result.Sde;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "execute_prepared_cql_query failed: unknown result");
 }