/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TXNID: return isSetTxnid(); case REPL_POLICY: return isSetReplPolicy(); } throw new IllegalStateException(); }
@Override public int compareTo(AbortTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetReplPolicy()).compareTo(other.isSetReplPolicy()); if (lastComparison != 0) { return lastComparison; } if (isSetReplPolicy()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replPolicy, other.replPolicy); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxnid()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TXNID: return isSetTxnid(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TXNID: return isSetTxnid(); } throw new IllegalStateException(); }
public int compareTo(AbortTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; AbortTxnRequest typedOther = (AbortTxnRequest)other; lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(AbortTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; AbortTxnRequest typedOther = (AbortTxnRequest)other; lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxnid()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxnid()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); } // check for sub-struct validity }