com.kenshoo.pl.entity.converters.IntegerValueConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity.converters;
import com.kenshoo.pl.entity.ValueConverter;
import org.jooq.types.UInteger;
public class IntegerValueConverter implements ValueConverter {
public final static IntegerValueConverter INSTANCE = new IntegerValueConverter();
@Override
public UInteger convertTo(Integer value) {
return UInteger.valueOf(value);
}
@Override
public Integer convertFrom(UInteger value) {
return value.intValue();
}
@Override
public Class getValueClass() {
return Integer.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy