private Timestamp convertFieldValueToTimestamp ( final Field field , final ExportContainer exportContainer ) { if ( field . getType ( ) . equals ( LocalDateTime . class ) ) { return convertToTimestamp ( parseDateTime ( exportContainer . getExportValue ( ) ) ) ; } else if ( field . getType ( ) . equals ( LocalDate . class ) ) { return convertToTimestamp ( parseDate ( exportContainer . getExportValue ( ) ) ) ; } else if ( field . getType ( ) . equals ( LocalTime . class ) ) { return convertToTimestamp ( parseTime ( exportContainer . getExportValue ( ) ) ) ; } else if ( field . getType ( ) . equals ( Date . class ) ) { return convertToTimestamp ( parseSimpleDateLong ( exportContainer . getExportValue ( ) ) ) ; } else if ( field . getType ( ) . equals ( Timestamp . class ) ) { return Timestamp . valueOf ( exportContainer . getExportValue ( ) ) ; } return null ; }
Convert container export value to timestamp value type