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

com.databasesandlife.util.jooq.CleartextPasswordConverter Maven / Gradle / Ivy

There is a newer version: 21.0.1
Show newest version
package com.databasesandlife.util.jooq;

import com.databasesandlife.util.gwtsafe.CleartextPassword;
import org.jooq.Converter;

public class CleartextPasswordConverter implements Converter {

    @Override public Class fromType() { return String.class; }
    @Override public Class toType() { return CleartextPassword.class; }

    @Override
    public CleartextPassword from(String x) {
        if (x == null) return null;
        return new CleartextPassword(x);
    }

    @Override
    public String to(CleartextPassword x) {
        if (x == null) return null;
        return x.getCleartext();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy