io.ebeaninternal.server.core.timezone.CloneDataTimeZone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.core.timezone;
import java.util.Calendar;
/**
* Implementation of DataTimeZone that clones the Calendar instance.
*
* Used with Oracle JDBC driver as that wants to mutate the Calender.
*
*/
public class CloneDataTimeZone extends SimpleDataTimeZone {
public CloneDataTimeZone(String zoneId) {
super(zoneId);
}
@Override
public Calendar getTimeZone() {
// return cloned copy for Oracle to muck around with
return (Calendar) zone.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy