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

org.zodiac.scaff.crud.generator.MD5Generator Maven / Gradle / Ivy

package org.zodiac.scaff.crud.generator;

import org.zodiac.fastorm.core.DefaultValueGenerator;
import org.zodiac.fastorm.core.RuntimeDefaultValue;
import org.zodiac.fastorm.rdb.metadata.RDBColumnMetadata;
import org.zodiac.sdk.toolkit.id.generator.IDGenerator;

public class MD5Generator implements DefaultValueGenerator {

    public MD5Generator() {
        super();
    }

    @Override
    public String getSortId() {
        return Generators.MD5;
    }

    @Override
    public RuntimeDefaultValue generate(RDBColumnMetadata metadata) {
        return IDGenerator.MD5::generate;
    }

    @Override
    public String getName() {
        return "MD5";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy