@Override
 public void writeToParcel(Parcel dest, int flags) {
   super.writeToParcel(dest, flags);
   dest.writeLong(date1 == null ? -1 : date1.getTime());
   dest.writeString(string1);
   dest.writeInt(boolean1 ? 1 : 0);
   dest.writeInt(int1);
   dest.writeLong(long1);
   dest.writeFloat(float1);
   dest.writeDouble(double1);
 }
  @Override
  public void populateContentValues(ContentValues aValues) {
    if (date1 != null) aValues.put(COL_DATE, date1.getTime());

    aValues.put(COL_STRING, string1);
    aValues.put(COL_BOOLEAN, boolean1);
    aValues.put(COL_INT, int1);
    aValues.put(COL_LONG, long1);
    aValues.put(COL_FLOAT, float1);
    aValues.put(COL_DOUBLE, double1);

    super.populateContentValues(aValues);
  }