All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.server.core.timezone.DataTimeZone Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeaninternal.server.core.timezone;

import java.util.Calendar;

/**
 * Define if a Calendar representing the time zone should be used in JDBC calls.
 */
public interface DataTimeZone {

  /**
   * Return the Calendar to use for Timezone information when reading/writing timestamps.
   */
  Calendar getTimeZone();

  /**
   * Return the Calendar to use for Timezone information when reading/writing date.
   * A 'date' only value has normally no timezone information, but some platforms (like MySQL)
   * reqire this.
   */
  default Calendar getDateTimeZone() {
    return null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy