Class TimeZoneConnectionProvider

  • All Implemented Interfaces:
    Serializable, org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.Service, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.ServiceRegistryAwareService, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.Wrapped

    public class TimeZoneConnectionProvider
    extends ConnectionProviderDelegate
    This ConnectionProvider extends any other ConnectionProvider that would be used by default taken the current configuration properties, and it just sets a default TimeZone which is different than the current default one.
    See Also:
    Serialized Form
    • Constructor Detail

      • TimeZoneConnectionProvider

        public TimeZoneConnectionProvider​(String customTimeZone)
    • Method Detail

      • stop

        public void stop()
        Specified by:
        stop in interface org.hibernate.service.spi.Stoppable
        Overrides:
        stop in class ConnectionProviderDelegate