public static class DateTimeAdapter.Adapter
extends java.lang.Object
DateTimeAdapter
.Constructor and Description |
---|
DateTimeAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
DateTimeAdapter ann) |
DateTimeAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
org.joda.time.DateTimeZone zone) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
adaptToDate(java.sql.Date date) |
java.util.Date |
adaptToDate(org.joda.time.LocalDate date) |
java.util.Date |
adaptToDate(org.joda.time.LocalDateTime dateTime) |
java.util.Date |
adaptToDate(long instant) |
java.util.Date |
adaptToDate(java.lang.Long instant) |
java.util.Date |
adaptToDate(org.joda.time.ReadableInstant instant) |
java.util.Date |
adaptToDate(java.lang.String isoDateString) |
java.util.Date |
adaptToDate(java.sql.Time time) |
java.util.Date |
adaptToDate(java.sql.Timestamp timestamp) |
org.joda.time.DateMidnight |
adaptToDateMidnight(java.util.Date date) |
org.joda.time.DateMidnight |
adaptToDateMidnight(java.sql.Date date) |
org.joda.time.DateMidnight |
adaptToDateMidnight(long instant) |
org.joda.time.DateMidnight |
adaptToDateMidnight(java.lang.Long instant) |
org.joda.time.DateMidnight |
adaptToDateMidnight(java.lang.String isoDateString) |
org.joda.time.DateMidnight |
adaptToDateMidnight(java.sql.Time time) |
org.joda.time.DateMidnight |
adaptToDateMidnight(java.sql.Timestamp timestamp) |
org.joda.time.DateTime |
adaptToDateTime(java.util.Date date) |
org.joda.time.DateTime |
adaptToDateTime(java.sql.Date date) |
org.joda.time.DateTime |
adaptToDateTime(long instant) |
org.joda.time.DateTime |
adaptToDateTime(java.lang.Long instant) |
org.joda.time.DateTime |
adaptToDateTime(java.lang.String isoDateString) |
org.joda.time.DateTime |
adaptToDateTime(java.sql.Time time) |
org.joda.time.DateTime |
adaptToDateTime(java.sql.Timestamp timestamp) |
org.joda.time.LocalDate |
adaptToLocalDate(java.util.Date date) |
org.joda.time.LocalDate |
adaptToLocalDate(java.sql.Date date) |
org.joda.time.LocalDate |
adaptToLocalDate(long instant) |
org.joda.time.LocalDate |
adaptToLocalDate(java.lang.Long instant) |
org.joda.time.LocalDate |
adaptToLocalDate(java.lang.String isoDateString) |
org.joda.time.LocalDate |
adaptToLocalDate(java.sql.Time time) |
org.joda.time.LocalDate |
adaptToLocalDate(java.sql.Timestamp timestamp) |
org.joda.time.LocalDateTime |
adaptToLocalDateTime(java.util.Date date) |
org.joda.time.LocalDateTime |
adaptToLocalDateTime(java.sql.Date date) |
org.joda.time.LocalDateTime |
adaptToLocalDateTime(long instant) |
org.joda.time.LocalDateTime |
adaptToLocalDateTime(java.lang.Long instant) |
org.joda.time.LocalDateTime |
adaptToLocalDateTime(java.lang.String isoDateString) |
org.joda.time.LocalDateTime |
adaptToLocalDateTime(java.sql.Time time) |
org.joda.time.LocalDateTime |
adaptToLocalDateTime(java.sql.Timestamp timestamp) |
long |
adaptToLong(java.util.Date date) |
long |
adaptToLong(org.joda.time.LocalDate date) |
long |
adaptToLong(org.joda.time.LocalDateTime dateTime) |
long |
adaptToLong(org.joda.time.ReadableInstant instant) |
java.lang.Long |
adaptToLongObj(java.util.Date date) |
java.lang.Long |
adaptToLongObj(org.joda.time.LocalDate date) |
java.lang.Long |
adaptToLongObj(org.joda.time.LocalDateTime dateTime) |
java.lang.Long |
adaptToLongObj(org.joda.time.ReadableInstant instant) |
java.sql.Date |
adaptToSqlDate(java.util.Date date) |
java.sql.Date |
adaptToSqlDate(org.joda.time.LocalDate date) |
java.sql.Date |
adaptToSqlDate(org.joda.time.LocalDateTime dateTime) |
java.sql.Date |
adaptToSqlDate(org.joda.time.ReadableInstant instant) |
java.sql.Time |
adaptToSqlTime(java.util.Date date) |
java.sql.Time |
adaptToSqlTime(org.joda.time.LocalDateTime dateTime) |
java.sql.Time |
adaptToSqlTime(org.joda.time.ReadableInstant instant) |
java.sql.Timestamp |
adaptToSqlTimestamp(java.util.Date date) |
java.sql.Timestamp |
adaptToSqlTimestamp(org.joda.time.LocalDate date) |
java.sql.Timestamp |
adaptToSqlTimestamp(org.joda.time.LocalDateTime dateTime) |
java.sql.Timestamp |
adaptToSqlTimestamp(org.joda.time.ReadableInstant instant) |
java.lang.String |
adaptToString(java.util.Date date) |
java.lang.String |
adaptToString(org.joda.time.LocalDate date) |
java.lang.String |
adaptToString(org.joda.time.LocalDateTime dateTime) |
java.lang.String |
adaptToString(org.joda.time.ReadableInstant instant) |
public DateTimeAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, DateTimeAdapter ann)
type
- type of object that contains the adapted propertypropertyName
- name of property with adapterann
- specific annotation that binds to this adapter classpublic DateTimeAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, org.joda.time.DateTimeZone zone)
type
- type of object that contains the adapted propertypropertyName
- name of property withzone
- time zone to apply, or null to use defaultpublic org.joda.time.DateTime adaptToDateTime(long instant)
public org.joda.time.DateTime adaptToDateTime(java.lang.Long instant)
public org.joda.time.DateTime adaptToDateTime(java.lang.String isoDateString)
public org.joda.time.DateTime adaptToDateTime(java.util.Date date)
public org.joda.time.DateTime adaptToDateTime(java.sql.Date date)
public org.joda.time.DateTime adaptToDateTime(java.sql.Time time)
public org.joda.time.DateTime adaptToDateTime(java.sql.Timestamp timestamp)
public org.joda.time.DateMidnight adaptToDateMidnight(long instant)
public org.joda.time.DateMidnight adaptToDateMidnight(java.lang.Long instant)
public org.joda.time.DateMidnight adaptToDateMidnight(java.lang.String isoDateString)
public org.joda.time.DateMidnight adaptToDateMidnight(java.util.Date date)
public org.joda.time.DateMidnight adaptToDateMidnight(java.sql.Date date)
public org.joda.time.DateMidnight adaptToDateMidnight(java.sql.Time time)
public org.joda.time.DateMidnight adaptToDateMidnight(java.sql.Timestamp timestamp)
public org.joda.time.LocalDateTime adaptToLocalDateTime(long instant)
public org.joda.time.LocalDateTime adaptToLocalDateTime(java.lang.Long instant)
public org.joda.time.LocalDateTime adaptToLocalDateTime(java.lang.String isoDateString)
public org.joda.time.LocalDateTime adaptToLocalDateTime(java.util.Date date)
public org.joda.time.LocalDateTime adaptToLocalDateTime(java.sql.Date date)
public org.joda.time.LocalDateTime adaptToLocalDateTime(java.sql.Time time)
public org.joda.time.LocalDateTime adaptToLocalDateTime(java.sql.Timestamp timestamp)
public org.joda.time.LocalDate adaptToLocalDate(long instant)
public org.joda.time.LocalDate adaptToLocalDate(java.lang.Long instant)
public org.joda.time.LocalDate adaptToLocalDate(java.lang.String isoDateString)
public org.joda.time.LocalDate adaptToLocalDate(java.util.Date date)
public org.joda.time.LocalDate adaptToLocalDate(java.sql.Date date)
public org.joda.time.LocalDate adaptToLocalDate(java.sql.Time time)
public org.joda.time.LocalDate adaptToLocalDate(java.sql.Timestamp timestamp)
public long adaptToLong(org.joda.time.ReadableInstant instant)
public java.lang.Long adaptToLongObj(org.joda.time.ReadableInstant instant)
public java.lang.String adaptToString(org.joda.time.ReadableInstant instant)
public java.util.Date adaptToDate(org.joda.time.ReadableInstant instant)
public java.sql.Date adaptToSqlDate(org.joda.time.ReadableInstant instant)
public java.sql.Time adaptToSqlTime(org.joda.time.ReadableInstant instant)
public java.sql.Timestamp adaptToSqlTimestamp(org.joda.time.ReadableInstant instant)
public long adaptToLong(org.joda.time.LocalDateTime dateTime)
public java.lang.Long adaptToLongObj(org.joda.time.LocalDateTime dateTime)
public java.lang.String adaptToString(org.joda.time.LocalDateTime dateTime)
public java.util.Date adaptToDate(org.joda.time.LocalDateTime dateTime)
public java.sql.Date adaptToSqlDate(org.joda.time.LocalDateTime dateTime)
public java.sql.Time adaptToSqlTime(org.joda.time.LocalDateTime dateTime)
public java.sql.Timestamp adaptToSqlTimestamp(org.joda.time.LocalDateTime dateTime)
public long adaptToLong(org.joda.time.LocalDate date)
public java.lang.Long adaptToLongObj(org.joda.time.LocalDate date)
public java.lang.String adaptToString(org.joda.time.LocalDate date)
public java.util.Date adaptToDate(org.joda.time.LocalDate date)
public java.sql.Date adaptToSqlDate(org.joda.time.LocalDate date)
public java.sql.Timestamp adaptToSqlTimestamp(org.joda.time.LocalDate date)
public java.util.Date adaptToDate(long instant)
public java.util.Date adaptToDate(java.lang.Long instant)
public java.util.Date adaptToDate(java.lang.String isoDateString)
public java.util.Date adaptToDate(java.sql.Date date)
public java.util.Date adaptToDate(java.sql.Time time)
public java.util.Date adaptToDate(java.sql.Timestamp timestamp)
public long adaptToLong(java.util.Date date)
public java.lang.Long adaptToLongObj(java.util.Date date)
public java.lang.String adaptToString(java.util.Date date)
public java.sql.Date adaptToSqlDate(java.util.Date date)
public java.sql.Time adaptToSqlTime(java.util.Date date)
public java.sql.Timestamp adaptToSqlTimestamp(java.util.Date date)
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.