@Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(mvccVersion);

    objectOutput.writeLong(releaseId);
    objectOutput.writeLong(createDate);
    objectOutput.writeLong(modifiedDate);

    if (servletContextName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(servletContextName);
    }

    if (schemaVersion == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(schemaVersion);
    }

    objectOutput.writeInt(buildNumber);
    objectOutput.writeLong(buildDate);

    objectOutput.writeBoolean(verified);

    objectOutput.writeInt(state);

    if (testString == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(testString);
    }
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(articleImageId);
    objectOutput.writeLong(groupId);

    if (articleId == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(articleId);
    }

    objectOutput.writeDouble(version);

    if (elInstanceId == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(elInstanceId);
    }

    if (elName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(elName);
    }

    if (languageId == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(languageId);
    }

    objectOutput.writeBoolean(tempImage);
  }
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(jiraChangeItemId);
    objectOutput.writeLong(jiraChangeGroupId);

    if (field == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(field);
    }

    if (oldValue == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(oldValue);
    }

    if (oldString == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(oldString);
    }

    if (newValue == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(newValue);
    }

    if (newString == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(newString);
    }
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    if (uuid == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(uuid);
    }

    objectOutput.writeLong(moduleId);
    objectOutput.writeLong(appId);

    if (bundleSymbolicName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(bundleSymbolicName);
    }

    if (bundleVersion == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(bundleVersion);
    }

    if (contextName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(contextName);
    }
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(entryId);
    objectOutput.writeLong(groupId);
    objectOutput.writeLong(companyId);
    objectOutput.writeLong(userId);

    if (userName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(userName);
    }

    objectOutput.writeLong(createDate);
    objectOutput.writeLong(modifiedDate);

    if (fullName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(fullName);
    }

    if (emailAddress == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(emailAddress);
    }

    if (comments == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(comments);
    }
  }
 @Override
 public void writeExternal(ObjectOutput objectOutput) throws IOException {
   objectOutput.writeLong(passwordPolicyRelId);
   objectOutput.writeLong(passwordPolicyId);
   objectOutput.writeLong(classNameId);
   objectOutput.writeLong(classPK);
 }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(eventID);

    if (event_type == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(event_type);
    }

    if (event == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(event);
    }

    if (who == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(who);
    }

    objectOutput.writeLong(period_start);
    objectOutput.writeLong(period_end);
    objectOutput.writeLong(etimestamp);
  }
 public void writeExternal(ObjectOutput out) throws IOException {
   super.writeExternal(out);
   out.writeLong(startMinDev);
   out.writeLong(startMaxDev);
   out.writeLong(endMinDev);
   out.writeLong(endMaxDev);
 }
 @Override
 public void serializeTo(
     final ObjectOutput out, final ManagedObjectStateSerializer stateSerializer)
     throws IOException {
   out.writeLong(getVersion());
   out.writeLong(getObjectID().toLong());
   stateSerializer.serializeTo(getManagedObjectState(), out);
 }
 @Override
 public void writeExternal(ObjectOutput objectOutput) throws IOException {
   objectOutput.writeLong(statsUserId);
   objectOutput.writeLong(groupId);
   objectOutput.writeLong(userId);
   objectOutput.writeInt(messageCount);
   objectOutput.writeLong(lastPostDate);
 }
 @Override
 public void writeExternal(ObjectOutput objectOutput) throws IOException {
   objectOutput.writeLong(id);
   objectOutput.writeLong(companyId);
   objectOutput.writeLong(paymentFileId);
   objectOutput.writeLong(dossierId);
   objectOutput.writeLong(amount);
 }
 public void writeExternal(ObjectOutput out) throws IOException {
   super.writeExternal(out);
   out.writeLong(initRange);
   out.writeLong(finalRange);
   out.writeObject(paramText);
   out.writeBoolean(unwrapLeft);
   out.writeBoolean(unwrapRight);
 }
Exemplo n.º 13
0
 /**
  * Write this out.
  *
  * @exception IOException error writing to log stream
  */
 public synchronized void writeExternal(ObjectOutput out) throws IOException {
   out.writeLong(getPrevblk());
   out.writeLong(getNextblk());
   out.writeShort(getBytesused());
   out.writeShort(getBytesinuse());
   out.writeLong(getPageLSN());
   if (getBytesused() == datasize) out.write(data);
   else out.write(data, 0, getBytesused());
 }
Exemplo n.º 14
0
 @Override
 public void writeExternal(final ObjectOutput out) throws IOException {
   out.writeUTF(nodeSource);
   out.writeUTF(databaseName);
   out.writeLong(runId);
   out.writeLong(operationSerial);
   out.writeByte(mode.ordinal());
   out.writeByte(status.ordinal());
 }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    if (uuid == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(uuid);
    }

    objectOutput.writeLong(requestId);
    objectOutput.writeLong(groupId);
    objectOutput.writeLong(companyId);
    objectOutput.writeLong(userId);
    objectOutput.writeLong(createDate);
    objectOutput.writeLong(modifiedDate);
    objectOutput.writeLong(classNameId);
    objectOutput.writeLong(classPK);
    objectOutput.writeInt(type);

    if (extraData == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(extraData);
    }

    objectOutput.writeLong(receiverUserId);
    objectOutput.writeInt(status);
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(rowId);

    objectOutput.writeLong(companyId);
    objectOutput.writeLong(modifiedDate);

    objectOutput.writeLong(tableId);

    objectOutput.writeLong(classPK);
  }
  /** {@inheritDoc} */
  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    GridUtils.writeUuid(out, nodeId);

    CU.writeVersion(out, ver);

    out.writeLong(timeout);
    out.writeLong(threadId);
    out.writeLong(id);
    out.writeShort(flags());
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(shardId);
    objectOutput.writeLong(classNameId);
    objectOutput.writeLong(classPK);

    if (name == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(name);
    }
  }
Exemplo n.º 19
0
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(orgId);

    if (name == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(name);
    }

    if (holder == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(holder);
    }

    if (owner == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(owner);
    }

    if (userlist == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(userlist);
    }

    if (description == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(description);
    }

    if (legalStatus == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(legalStatus);
    }

    objectOutput.writeLong(created);
    objectOutput.writeLong(updated);
    objectOutput.writeLong(contactId);
    objectOutput.writeLong(addressId);
    objectOutput.writeInt(status);

    if (logoLocation == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(logoLocation);
    }
  }
 @Override
 public void writeExternal(ObjectOutput objectOutput) throws IOException {
   objectOutput.writeLong(itemPriceId);
   objectOutput.writeLong(itemId);
   objectOutput.writeInt(minQuantity);
   objectOutput.writeInt(maxQuantity);
   objectOutput.writeDouble(price);
   objectOutput.writeDouble(discount);
   objectOutput.writeBoolean(taxable);
   objectOutput.writeDouble(shipping);
   objectOutput.writeBoolean(useShippingFormula);
   objectOutput.writeInt(status);
 }
    @Override
    public void writeObject(ObjectOutput output, OffHeapEmbeddedMetadata object)
        throws IOException {
      int number = numbers.get(object.getClass(), -1);
      output.write(number);
      switch (number) {
        case EXPIRABLE:
          output.writeLong(object.lifespan());
          output.writeLong(object.maxIdle());
          break;
      }

      output.writeObject(object.version());
    }
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(meetupsEntryId);
    objectOutput.writeLong(companyId);
    objectOutput.writeLong(userId);

    if (userName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(userName);
    }

    objectOutput.writeLong(createDate);
    objectOutput.writeLong(modifiedDate);

    if (title == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(title);
    }

    if (description == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(description);
    }

    objectOutput.writeLong(startDate);
    objectOutput.writeLong(endDate);
    objectOutput.writeInt(totalAttendees);
    objectOutput.writeInt(maxAttendees);
    objectOutput.writeDouble(price);
    objectOutput.writeLong(thumbnailId);
  }
Exemplo n.º 23
0
  /** {@inheritDoc} */
  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    out.writeLong(createTime);
    out.writeLong(readTime);
    out.writeLong(writeTime);
    out.writeLong(commitTime);
    out.writeLong(rollbackTime);

    out.writeInt(reads);
    out.writeInt(writes);
    out.writeInt(hits);
    out.writeInt(misses);
    out.writeInt(txCommits);
    out.writeInt(txRollbacks);
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    if (uuid == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(uuid);
    }

    objectOutput.writeLong(relationId);
    objectOutput.writeLong(companyId);
    objectOutput.writeLong(createDate);
    objectOutput.writeLong(userId1);
    objectOutput.writeLong(userId2);
    objectOutput.writeInt(type);
  }
Exemplo n.º 25
0
 @Override
 public void writeExternal(final ObjectOutput out) throws IOException {
   out.writeLong(queryId.getMostSignificantBits());
   out.writeLong(queryId.getLeastSignificantBits());
   out.writeLong(serviceId.getMostSignificantBits());
   out.writeLong(serviceId.getLeastSignificantBits());
   out.writeInt(bopId);
   out.writeInt(partitionId); // Note: partitionId is 32-bits clean
   LongPacker.packLong(out, sinkMessagesOut);
   LongPacker.packLong(out, altSinkMessagesOut);
   //        out.writeInt(sinkMessagesOut);
   //        out.writeInt(altSinkMessagesOut);
   out.writeObject(stats);
   out.writeObject(cause);
 }
Exemplo n.º 26
0
 @Override
 public void writeExternal(final ObjectOutput out) throws IOException {
   out.writeInt(this.length);
   for (int i = 0; i < this.length; i++) {
     out.writeLong(Double.doubleToRawLongBits(this.realValues[i]));
   }
 }
Exemplo n.º 27
0
  private void writeTo(ObjectOutput o) throws IOException {
    o.writeInt(x);
    o.writeInt(y);
    o.writeInt(width);
    o.writeInt(height);
    o.writeInt(measuredWidth);
    o.writeInt(measuredHeight);
    o.writeInt(scrollX);
    o.writeInt(scrollY);
    o.writeInt(absoluteX);
    o.writeInt(absoluteY);
    o.writeFloat(cameraDistance);
    o.writeBoolean(visible);
    o.writeLong(drawingTime);
    o.writeBoolean(isShown);
    o.writeBoolean(hasFocus);
    o.writeBoolean(focusable);
    o.writeBoolean(hasOnClickListener);
    o.writeObject(viewType);
    o.writeObject(textContent);
    o.writeBoolean(isEditText);
    o.writeBoolean(isInputMethodTarget);
    o.writeBoolean(isContainer);
    o.writeInt(inputMethod);
    o.writeInt(id);

    if (children != null) {
      o.writeInt(children.size());
      for (ViewComponentInfo child : children) {
        child.writeTo(o);
      }
    } else {
      o.writeInt(0);
    }
  }
  public void writeExternal(ObjectOutput output) throws IOException {
    // ##begin writeExternal%writeExternal.body preserve=no

    output.writeLong(EXTERNALIZATION_VERSION_UID);

    // ##end writeExternal%writeExternal.body
  }
Exemplo n.º 29
0
  @Override
  public void writeExternal(ObjectOutput oo) throws IOException {
    /*
     * Serialization format:
     * byte 1: serial version
     * byte 2: name length (l)
     * byte 3 to l+3: name
     * byte l+4 to l+67: size of node
     * byte l+68: children count
     * byte l+69 to n: children (recursive)
     */
    if (name != null && name.length() > Short.MAX_VALUE)
      throw new IOException("Name of node exceeds maximum allowed size of " + Short.MAX_VALUE);
    if (children.size() > Short.MAX_VALUE)
      throw new IOException(
          "Number of subfolders in "
              + name
              + " exceeds maximum allowed number: "
              + Short.MAX_VALUE);

    oo.writeByte(serialVersion);
    if (name != null) {
      oo.writeByte(name.length());
      oo.writeBytes(name);
    } else {
      oo.writeByte(1);
      oo.writeByte(0);
    }
    oo.writeLong(size);
    oo.writeByte(children.size());
    for (FSTree child : children.values()) {
      child.writeExternal(oo);
    }
  }
  @Override
  public void writeExternal(ObjectOutput output) throws IOException {
    String data;
    Date date;
    List<Cookie> cookie_list = getCookies();
    output.writeInt(cookie_list.size());
    for (Cookie cookie : cookie_list) {
      output.writeUTF(cookie.getName());
      output.writeUTF(cookie.getValue());

      data = cookie.getComment();
      output.writeBoolean(data != null);
      if (data != null) output.writeUTF(data);

      date = cookie.getExpiryDate();
      output.writeBoolean(date != null);
      if (date != null) output.writeLong(date.getTime());

      data = cookie.getDomain();
      output.writeBoolean(data != null);
      if (data != null) output.writeUTF(data);

      data = cookie.getPath();
      output.writeBoolean(data != null);
      if (data != null) output.writeUTF(data);

      output.writeBoolean(cookie.isSecure());
      output.writeInt(cookie.getVersion());
    }
  }