public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (generatedKeys != null) { generatedKeys.validate(); } if (warnings != null) { warnings.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, GFXDExceptionData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.reason != null) { oprot.writeFieldBegin(REASON_FIELD_DESC); oprot.writeString(struct.reason); oprot.writeFieldEnd(); } if (struct.sqlState != null) { oprot.writeFieldBegin(SQL_STATE_FIELD_DESC); oprot.writeString(struct.sqlState); oprot.writeFieldEnd(); } oprot.writeFieldBegin(SEVERITY_FIELD_DESC); oprot.writeI32(struct.severity); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void validate() throws org.apache.thrift.TException { // check for required fields // alas, we cannot check 'statementId' because it's a primitive and you chose the non-beans generator. if (parameterMetaData == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'parameterMetaData' was not present! Struct: " + toString()); } // check for sub-struct validity if (warnings != null) { warnings.validate(); } }
throw new org.apache.thrift.protocol.TProtocolException("Required field 'severity' was not found in serialized data! Struct: " + toString()); struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields if (rows == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'rows' was not present! Struct: " + toString()); } // alas, we cannot check 'flags' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'cursorId' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'statementId' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'connId' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity if (source != null) { source.validate(); } if (warnings != null) { warnings.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (exceptionData == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'exceptionData' was not present! Struct: " + toString()); } if (serverInfo == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'serverInfo' was not present! Struct: " + toString()); } // check for sub-struct validity if (exceptionData != null) { exceptionData.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (resultSet != null) { resultSet.validate(); } if (procedureOutParams != null) { procedureOutParams.validate(); } if (generatedKeys != null) { generatedKeys.validate(); } if (warnings != null) { warnings.validate(); } if (preparedResult != null) { preparedResult.validate(); } }