Package org.joda.time

Examples of org.joda.time.LocalDate.toDate()


    private DateTimeFormatter fmt = ISODateTimeFormat.dateTime();
   
    @Override
    public byte[] convertToNoSqlImpl(Object value) {
      LocalDate dt = (LocalDate) value;
      long milliseconds = dt.toDate().getTime();
      return StandardConverters.convertToBytes(milliseconds);
    }

    @Override
    public Object convertFromNoSqlImpl(byte[] value) {
View Full Code Here


    @Override
    void apachePOI(Cell cell, Object value) {
      if (value != null) {
        LocalDate val = (LocalDate) value;
        cell.setCellType(Cell.CELL_TYPE_NUMERIC);
        cell.setCellValue(val.toDate());
      }
    }

  }
View Full Code Here

    @Override
    void apachePOI(POICell cell, Object value) {
      if (value != null) {
        LocalDate val = (LocalDate) value;
        cell.setCellType(Cell.CELL_TYPE_NUMERIC);
        cell.setCellValue(val.toDate());
      }
    }

  }
View Full Code Here

  }

  @Override
  void setValue(Stmt stmt) {
    LocalDate date = value;
    stmt.setDate(index, date.toDate());
  }

}
View Full Code Here

  }

  @Override
  void setValue(Stmt stmt) {
    LocalDate date = value;
    stmt.setDate(index, date.toDate());
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.