static TransactionId convert(KahaTransactionInfo transactionInfo) { if (transactionInfo.hasLocalTransactionId()) { KahaLocalTransactionId tx = transactionInfo.getLocalTransactionId(); LocalTransactionId rc = new LocalTransactionId(); rc.setConnectionId(new ConnectionId(tx.getConnectionId())); rc.setValue(tx.getTransactionId()); return rc; } else { KahaXATransactionId tx = transactionInfo.getXaTransactionId(); XATransactionId rc = new XATransactionId(); rc.setBranchQualifier(tx.getBranchQualifier().toByteArray()); rc.setGlobalTransactionId(tx.getGlobalTransactionId().toByteArray()); rc.setFormatId(tx.getFormatId()); return rc; } } }
public int hashCode() { int rc=-2138302623; if (hasFormatId()) { rc ^= ( 538723218^getFormatId() ); } if (hasBranchQualifier()) { rc ^= ( 1822873864^getBranchQualifier().hashCode() ); } if (hasGlobalTransactionId()) { rc ^= ( -346697322^getGlobalTransactionId().hashCode() ); } return rc; }
public int hashCode() { int rc=-2138302623; if (hasFormatId()) { rc ^= ( 538723218^getFormatId() ); } if (hasBranchQualifier()) { rc ^= ( 1822873864^getBranchQualifier().hashCode() ); } if (hasGlobalTransactionId()) { rc ^= ( -346697322^getGlobalTransactionId().hashCode() ); } return rc; }
public int hashCode() { int rc=-2138302623; if (hasFormatId()) { rc ^= ( 538723218^getFormatId() ); } if (hasBranchQualifier()) { rc ^= ( 1822873864^getBranchQualifier().hashCode() ); } if (hasGlobalTransactionId()) { rc ^= ( -346697322^getGlobalTransactionId().hashCode() ); } return rc; }
public int hashCode() { int rc=-2138302623; if (hasFormatId()) { rc ^= ( 538723218^getFormatId() ); } if (hasBranchQualifier()) { rc ^= ( 1822873864^getBranchQualifier().hashCode() ); } if (hasGlobalTransactionId()) { rc ^= ( -346697322^getGlobalTransactionId().hashCode() ); } return rc; }
public KahaXATransactionId mergeFrom(KahaXATransactionId other) { if (other.hasFormatId()) { setFormatId(other.getFormatId()); } if (other.hasBranchQualifier()) { setBranchQualifier(other.getBranchQualifier()); } if (other.hasGlobalTransactionId()) { setGlobalTransactionId(other.getGlobalTransactionId()); } return this; }
public KahaXATransactionId mergeFrom(KahaXATransactionId other) { if (other.hasFormatId()) { setFormatId(other.getFormatId()); } if (other.hasBranchQualifier()) { setBranchQualifier(other.getBranchQualifier()); } if (other.hasGlobalTransactionId()) { setGlobalTransactionId(other.getGlobalTransactionId()); } return this; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasFormatId()) { output.writeInt32(1, getFormatId()); } if (hasBranchQualifier()) { output.writeBytes(2, getBranchQualifier()); } if (hasGlobalTransactionId()) { output.writeBytes(3, getGlobalTransactionId()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasFormatId()) { output.writeInt32(1, getFormatId()); } if (hasBranchQualifier()) { output.writeBytes(2, getBranchQualifier()); } if (hasGlobalTransactionId()) { output.writeBytes(3, getGlobalTransactionId()); } }
public KahaXATransactionId mergeFrom(KahaXATransactionId other) { if (other.hasFormatId()) { setFormatId(other.getFormatId()); } if (other.hasBranchQualifier()) { setBranchQualifier(other.getBranchQualifier()); } if (other.hasGlobalTransactionId()) { setGlobalTransactionId(other.getGlobalTransactionId()); } return this; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasFormatId()) { output.writeInt32(1, getFormatId()); } if (hasBranchQualifier()) { output.writeBytes(2, getBranchQualifier()); } if (hasGlobalTransactionId()) { output.writeBytes(3, getGlobalTransactionId()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasFormatId()) { output.writeInt32(1, getFormatId()); } if (hasBranchQualifier()) { output.writeBytes(2, getBranchQualifier()); } if (hasGlobalTransactionId()) { output.writeBytes(3, getGlobalTransactionId()); } }
public KahaXATransactionId mergeFrom(KahaXATransactionId other) { if (other.hasFormatId()) { setFormatId(other.getFormatId()); } if (other.hasBranchQualifier()) { setBranchQualifier(other.getBranchQualifier()); } if (other.hasGlobalTransactionId()) { setGlobalTransactionId(other.getGlobalTransactionId()); } return this; }
public boolean equals(KahaXATransactionId obj) { if (hasFormatId() ^ obj.hasFormatId() ) return false; if (hasFormatId() && ( getFormatId()!=obj.getFormatId() )) return false; if (hasBranchQualifier() ^ obj.hasBranchQualifier() ) return false; if (hasBranchQualifier() && ( !getBranchQualifier().equals(obj.getBranchQualifier()) )) return false; if (hasGlobalTransactionId() ^ obj.hasGlobalTransactionId() ) return false; if (hasGlobalTransactionId() && ( !getGlobalTransactionId().equals(obj.getGlobalTransactionId()) )) return false; return true; }
public boolean equals(KahaXATransactionId obj) { if (hasFormatId() ^ obj.hasFormatId() ) return false; if (hasFormatId() && ( getFormatId()!=obj.getFormatId() )) return false; if (hasBranchQualifier() ^ obj.hasBranchQualifier() ) return false; if (hasBranchQualifier() && ( !getBranchQualifier().equals(obj.getBranchQualifier()) )) return false; if (hasGlobalTransactionId() ^ obj.hasGlobalTransactionId() ) return false; if (hasGlobalTransactionId() && ( !getGlobalTransactionId().equals(obj.getGlobalTransactionId()) )) return false; return true; }
public boolean equals(KahaXATransactionId obj) { if (hasFormatId() ^ obj.hasFormatId() ) return false; if (hasFormatId() && ( getFormatId()!=obj.getFormatId() )) return false; if (hasBranchQualifier() ^ obj.hasBranchQualifier() ) return false; if (hasBranchQualifier() && ( !getBranchQualifier().equals(obj.getBranchQualifier()) )) return false; if (hasGlobalTransactionId() ^ obj.hasGlobalTransactionId() ) return false; if (hasGlobalTransactionId() && ( !getGlobalTransactionId().equals(obj.getGlobalTransactionId()) )) return false; return true; }
public boolean equals(KahaXATransactionId obj) { if (hasFormatId() ^ obj.hasFormatId() ) return false; if (hasFormatId() && ( getFormatId()!=obj.getFormatId() )) return false; if (hasBranchQualifier() ^ obj.hasBranchQualifier() ) return false; if (hasBranchQualifier() && ( !getBranchQualifier().equals(obj.getBranchQualifier()) )) return false; if (hasGlobalTransactionId() ^ obj.hasGlobalTransactionId() ) return false; if (hasGlobalTransactionId() && ( !getGlobalTransactionId().equals(obj.getGlobalTransactionId()) )) return false; return true; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasFormatId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(1, getFormatId()); } if (hasBranchQualifier()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(2, getBranchQualifier()); } if (hasGlobalTransactionId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(3, getGlobalTransactionId()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasFormatId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(1, getFormatId()); } if (hasBranchQualifier()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(2, getBranchQualifier()); } if (hasGlobalTransactionId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(3, getGlobalTransactionId()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasFormatId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(1, getFormatId()); } if (hasBranchQualifier()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(2, getBranchQualifier()); } if (hasGlobalTransactionId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBytesSize(3, getGlobalTransactionId()); } memoizedSerializedSize = size; return size; }