com.databasesandlife.util.jooq.ZoneIdConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-common Show documentation
Show all versions of java-common Show documentation
Utility classes developed at Adrian Smith Software (A.S.S.)
package com.databasesandlife.util.jooq;
import org.jooq.Converter;
import java.time.ZoneId;
@SuppressWarnings({ "serial" })
public class ZoneIdConverter implements Converter {
@Override public Class fromType() { return String.class; }
@Override public Class toType() { return ZoneId.class; }
@Override
public ZoneId from(String x) {
if (x == null) return null;
return ZoneId.of(x);
}
@Override
public String to(ZoneId m) {
if (m == null) return null;
return m.getId();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy