public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror(xid)); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public static final void pack(OutputObjectState os, Xid xid) throws IOException { if (xid instanceof XidImple) { XidImple x = (XidImple) xid; os.packBoolean(true); if (!x.packInto(os)) throw new IOException(jtaLogger.i18NLogger.get_xid_packerror()); } else { os.packBoolean(false); ByteArrayOutputStream s = new ByteArrayOutputStream(); ObjectOutputStream o = new ObjectOutputStream(s); o.writeObject(xid); o.close(); os.packBytes(s.toByteArray()); } }
public final boolean packInto(OutputObjectState os) { boolean result = false; try { os.packInt(_theXid.formatID); os.packInt(_theXid.gtrid_length); os.packInt(_theXid.bqual_length); os.packBytes(_theXid.data); result = true; } catch (Exception e) { e.printStackTrace(); result = false; } return result; }
public final boolean packInto(OutputObjectState os) { boolean result = false; try { os.packInt(_theXid.formatID); os.packInt(_theXid.gtrid_length); os.packInt(_theXid.bqual_length); os.packBytes(_theXid.data); result = true; } catch (Exception e) { e.printStackTrace(); result = false; } return result; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
boolean removeState(Uid u, String tn, int s) throws ObjectStoreException { try { OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); } catch (IOException ex) { throw new ObjectStoreException(ex.toString(), ex); } return true; }
public final boolean packInto(OutputObjectState os) { boolean result = false; try { os.packInt(_theXid.formatID); os.packInt(_theXid.gtrid_length); os.packInt(_theXid.bqual_length); os.packBytes(_theXid.data); result = true; } catch (Exception e) { jtaLogger.i18NLogger.warn_cant_pack_into_output_object_state(os, e); result = false; } return result; }
public final boolean packInto(OutputObjectState os) { boolean result = false; try { os.packInt(_theXid.formatID); os.packInt(_theXid.gtrid_length); os.packInt(_theXid.bqual_length); os.packBytes(_theXid.data); result = true; } catch (Exception e) { jtaLogger.i18NLogger.warn_cant_pack_into_output_object_state(os, e); result = false; } return result; }
public final boolean packInto(OutputObjectState os) { boolean result = false; try { os.packInt(_theXid.formatID); os.packInt(_theXid.gtrid_length); os.packInt(_theXid.bqual_length); os.packBytes(_theXid.data); result = true; } catch (Exception e) { jtaLogger.i18NLogger.warn_cant_pack_into_output_object_state(os, e); result = false; } return result; }
public final boolean packInto(OutputObjectState os) { boolean result = false; try { os.packInt(_theXid.formatID); os.packInt(_theXid.gtrid_length); os.packInt(_theXid.bqual_length); os.packBytes(_theXid.data); result = true; } catch (Exception e) { jtaLogger.i18NLogger.warn_cant_pack_into_output_object_state(os, e); result = false; } return result; }
private OutputObjectState getParticipantInformationOutputState(final ParticipantInformation participantInformation) throws IOException { final Uid uid = new Uid(participantInformation.getId()); final OutputObjectState state = new OutputObjectState(uid, PARTICIPANT_INFORMATION_RECORD_TYPE); state.packString(participantInformation.getId()); state.packString(participantInformation.getApplicationId()); state.packString(participantInformation.getStatus()); state.packString(participantInformation.getRecoveryURL()); state.packBytes(getParticipantBytes(participantInformation.getParticipant())); return state; }