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 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. // alas, we cannot check 'statementType' 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(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, SnappyExceptionData struct) throws org.apache.thrift.TException { struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (resultSet != null) { resultSet.validate(); } if (generatedKeys != null) { generatedKeys.validate(); } if (warnings != null) { warnings.validate(); } if (preparedResult != null) { preparedResult.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(); } }
throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorCode' was not found in serialized data! Struct: " + toString()); struct.validate();