@Override
  public void toData(DataOutput out) throws IOException {
    out.writeInt(ID);
    if (shortID == null) {
      DataSerializer.writePrimitiveBoolean(true, out);
    } else {
      DataSerializer.writePrimitiveBoolean(false, out);
      DataSerializer.writeShort(shortID, out);
    }

    DataSerializer.writeString(pkid, out);
    DataSerializer.writeObject(position1, out);
    DataSerializer.writeObject(position2, out);
    DataSerializer.writeObject(positions, out);
    DataSerializer.writeObject(collectionHolderMap, out);
    DataSerializer.writeString(type, out);
    DataSerializer.writeString(status, out);
    DataSerializer.writeStringArray(names, out);
    DataSerializer.writeString(description, out);
    DataSerializer.writePrimitiveLong(createTime, out);
    DataSerializer.writeDate(createDate, out);
    // Write Position3.
    if (position3 == null) {
      out.writeInt(0);
    } else {
      out.writeInt(position3.length);
      for (final Position position : position3) {
        DataSerializer.writeObject(position, out);
      }
    }
    out.writeInt(indexKey);
  }
Getter for property type.S

@return Value of property type.
geode-junit/src/main/java/org/apache/geode/cache/query/data/Portfolio.java