001package io.ebean.config;
002
003/**
004 * Configuration for JSON features.
005 */
006public abstract class JsonConfig {
007
008  /**
009   * Defined the format used for Date types.
010   */
011  public enum Date {
012
013    /**
014     * Format as epoch millis.
015     */
016    MILLIS,
017
018    /**
019     * Format as ISO-8601 date format.
020     */
021    ISO8601
022  }
023
024  /**
025   * Defined the format used for DateTime types.
026   */
027  public enum DateTime {
028
029    /**
030     * Format as epoch millis.
031     */
032    MILLIS,
033
034    /**
035     * Format as epoch with nanos.
036     */
037    NANOS,
038
039    /**
040     * Format as ISO-8601 date format.
041     */
042    ISO8601
043  }
044
045
046  public enum Include {
047
048    /**
049     * Include all values including null and empty collections.
050     */
051    ALL,
052
053    /**
054     * Exclude null values (include empty collections).
055     */
056    NON_NULL,
057
058    /**
059     * Exclude null values and empty collections.
060     */
061    NON_EMPTY
062  }
063}