Example #1
0
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(interviewId);

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

    objectOutput.writeLong(titlesId);
    objectOutput.writeBoolean(deleted);
    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);
  }
Example #2
0
 /*
  * (non-Javadoc)
  *
  * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
  */
 public void writeExternal(ObjectOutput out) throws IOException {
   out.writeUTF(this.expr);
   out.writeUTF((this.expectedType != null) ? this.expectedType.getName() : "");
   out.writeObject(ReflectionUtil.toTypeNameArray(this.paramTypes));
   out.writeObject(this.fnMapper);
   out.writeObject(this.varMapper);
 }
  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 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());
    }
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(activityLimitId);

    objectOutput.writeLong(groupId);

    objectOutput.writeLong(companyId);

    objectOutput.writeLong(userId);

    objectOutput.writeLong(classNameId);

    objectOutput.writeLong(classPK);

    objectOutput.writeInt(activityType);

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

    if (value == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(value);
    }
  }
  @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 out) throws IOException {
   super.writeExternal(out);
   out.writeUTF(libelle);
   out.writeUTF(emplacement);
   out.writeObject(allees);
 }
 @Override
 public void writeExternal(ObjectOutput out) throws IOException {
   out.writeUTF(role);
   out.writeObject(instanceId);
   out.writeUTF(clusterUri.toString());
   out.writeUTF(roleUri.toString());
   storeId.writeExternal(out);
 }
Example #9
0
 /**
  * It serializes the DAGLink Object for communication with flex client
  *
  * @param out
  * @throws IOException
  */
 public void writeExternal(ObjectOutput out) throws IOException {
   // TODO Auto-generated method stub
   out.writeUTF(toolTip);
   out.writeUTF(pathId);
   out.writeBoolean(isSelected);
   out.writeInt((int) sourceNodeId);
   out.writeInt((int) destinationNodeId);
 }
 @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());
 }
Example #11
0
 @Override
 public void writeExternal(ObjectOutput out) throws IOException {
   out.writeUTF(firstName);
   out.writeUTF(lastName);
   out.writeInt(age);
   out.writeObject(mother);
   out.writeObject(father);
   out.writeObject(children);
 }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeInt(teospkid);

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

    objectOutput.writeLong(testBlobEntryId);
  }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(id);
    objectOutput.writeObject(decimal);

    if (text == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(text);
    }
  }
  @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);
    }
  }
 /*
  * (non-Javadoc)
  *
  * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
  */
 @Override
 public void writeExternal(final ObjectOutput out) throws IOException {
   out.writeInt(documentDefinitions_.size());
   for (Map.Entry<String, IDocumentDefinition> entry : documentDefinitions_.entrySet()) {
     out.writeUTF(entry.getKey());
     out.writeObject(entry.getValue());
   }
   out.writeInt(itemDefinitions_.size());
   for (Map.Entry<String, IItemDefinition> entry : itemDefinitions_.entrySet()) {
     out.writeUTF(entry.getKey());
     out.writeObject(entry.getValue());
   }
 }
  @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);
    }
  }
Example #19
0
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(districtId);

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

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

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

    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);
  }
  @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 {
    if (uuid == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(uuid);
    }

    objectOutput.writeLong(fileEntryTypeId);
    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 (name == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(name);
    }

    if (description == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(description);
    }
  }
  @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);
  }
Example #23
0
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(payGradeId);
    objectOutput.writeLong(companyId);
    objectOutput.writeLong(groupId);
    objectOutput.writeLong(createDate);
    objectOutput.writeLong(modifiedDate);
    objectOutput.writeLong(userId);

    if (payGradeName == null) {
      objectOutput.writeUTF(StringPool.BLANK);
    } else {
      objectOutput.writeUTF(payGradeName);
    }
  }
Example #24
0
 @Override
 public void writeExternal(ObjectOutput output) throws IOException {
   output.writeUTF(keyTypeClassName);
   output.writeInt(version);
   output.writeInt(mergePoint);
   output.writeInt(instanceCount);
 }
  @Override
  public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);

    if (correlationId != null) out.writeUTF(correlationId);
    else out.writeObject(null);
  }
 public void writeExternal(ObjectOutput output) {
   try {
     output.writeUTF(value);
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
  @Override
  public void writeExternal(ObjectOutput objectOutput) throws IOException {
    // Write binary words sizes.
    objectOutput.writeInt(prefixSizeInBytes);
    objectOutput.writeInt(descIndexSizeInBytes);

    // Write possible lengths.
    int sizeOfLengths = possibleLengths.size();
    objectOutput.writeInt(sizeOfLengths);
    for (Integer length : possibleLengths) {
      objectOutput.writeInt(length);
    }

    // Write description pool size.
    objectOutput.writeInt(descriptionPool.length);
    // Write description pool.
    for (String description : descriptionPool) {
      objectOutput.writeUTF(description);
    }

    // Write entries.
    objectOutput.writeInt(numOfEntries);
    for (int i = 0; i < numOfEntries; i++) {
      writeExternalWord(objectOutput, prefixSizeInBytes, phoneNumberPrefixes, i);
      writeExternalWord(objectOutput, descIndexSizeInBytes, descriptionIndexes, i);
    }
  }
Example #28
0
  /**
   * Implements Externalizable interface to write serialized form
   *
   * @param s Output stream to serialize to
   */
  public void writeExternal(java.io.ObjectOutput s) throws IOException {
    // Write column names and column information
    int numFields = 0;
    if (fields == null) {
      s.writeInt(0);
    } else {
      numFields = fields.size();
      s.writeInt(numFields);
      for (int i = 0; i < numFields; i++) {
        String fieldName = (String) fields.get(i);
        s.writeUTF(fieldName);
        s.writeObject(columnInfos.get(fieldName));
      }
    }

    // Write record data
    if (records == null) {
      s.writeInt(0);
    } else {
      int numRows = records.size();
      s.writeInt(numRows);
      for (int row = 0; row < numRows; row++) {
        List record = (List) records.get(row);
        for (int col = 0; col < numFields; col++) {
          s.writeObject(record.get(col));
        }
      }
    }
  }
Example #29
0
 public static void writeEnum(ObjectOutput out, Enum<?> value) throws IOException {
   if (value == null) {
     out.writeObject(null);
   } else {
     out.writeUTF(value.name());
   }
 }
Example #30
0
    public void writeExternal(ObjectOutput objectOutput) throws IOException {
      objectOutput.writeBoolean(hasNationalNumberPattern);
      if (hasNationalNumberPattern) {
        objectOutput.writeUTF(nationalNumberPattern_);
      }

      objectOutput.writeBoolean(hasPossibleNumberPattern);
      if (hasPossibleNumberPattern) {
        objectOutput.writeUTF(possibleNumberPattern_);
      }

      objectOutput.writeBoolean(hasExampleNumber);
      if (hasExampleNumber) {
        objectOutput.writeUTF(exampleNumber_);
      }
    }