final EnumMap<TransactionAttribute, Boolean> getTXFlags() { final byte[] txFlags = this.txFlags; EnumMap<TransactionAttribute, Boolean> attrs = null; for (int ordinal = 0; ordinal < NUM_TXFLAGS; ordinal++) { int flag = txFlags[ordinal]; switch (flag) { case 1: case -1: if (attrs == null) { attrs = ThriftUtils.newTransactionFlags(); } attrs.put(TransactionAttribute.findByValue(ordinal), flag == 1); break; default: break; } } return attrs; }
final boolean isTXFlagSet(TransactionAttribute txFlag, boolean defaultValue) { switch (this.txFlags[txFlag.ordinal()]) { case 1: return true; case -1: return false; default: return defaultValue; } }
for (Map.Entry<TransactionAttribute, Boolean> _iter181 : struct.transactionDefaults.entrySet()) oprot.writeI32(_iter181.getKey().getValue()); oprot.writeBool(_iter181.getValue());
for (Map.Entry<TransactionAttribute, Boolean> _iter270 : struct.pendingTransactionAttrs.entrySet()) oprot.writeI32(_iter270.getKey().getValue()); oprot.writeBool(_iter270.getValue());
_key266 = TransactionAttribute.findByValue(iprot.readI32()); _val267 = iprot.readBool(); struct.pendingTransactionAttrs.put(_key266, _val267);
for (Map.Entry<TransactionAttribute, Boolean> _iter273 : struct.pendingTransactionAttrs.entrySet()) oprot.writeI32(_iter273.getKey().getValue()); oprot.writeBool(_iter273.getValue());
final void setTXFlag(TransactionAttribute txFlag, boolean val) { this.txFlags[txFlag.ordinal()] = val ? (byte)1 : -1; }
_key282 = TransactionAttribute.findByValue(iprot.readI32()); _val283 = iprot.readBool(); struct.pendingTransactionAttrs.put(_key282, _val283);
for (Map.Entry<TransactionAttribute, Boolean> _iter192 : struct.transactionDefaults.entrySet()) oprot.writeI32(_iter192.getKey().getValue()); oprot.writeBool(_iter192.getValue());
_key162 = TransactionAttribute.findByValue(iprot.readI32()); _val163 = iprot.readBool(); struct.transactionDefaults.put(_key162, _val163);
_key220 = TransactionAttribute.findByValue(iprot.readI32()); _val221 = iprot.readBool(); struct.transactionDefaults.put(_key220, _val221);