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

io.github.weasleyj.mybatis.encrypt.constant.EncryptConstant Maven / Gradle / Ivy

Go to download

A spring-boot starter make it easy to encrypt and decrypt some column of database tables, support for user custom encryption algorithms

There is a newer version: 1.0.3
Show newest version
package io.github.weasleyj.mybatis.encrypt.constant;

import java.math.BigDecimal;
import java.util.*;

/**
 * The encryption constant
 *
 * @author weasley
 * @version 1.0.0
 */
public interface EncryptConstant {
    /**
     * SQL start with insert
     */
    String INSERT = "INSERT";
    /**
     * SQL start with update
     */
    String UPDATE = "UPDATE";
    /**
     * SQL start with select
     */
    String SELECT = "SELECT";

    /**
     * UNDERLYING_DATA_TYPES
     */
    @SuppressWarnings({"all"})
    Set> UNDERLYING_DATA_TYPES = new HashSet>() {{
        add(String.class);
        add(Boolean.class);
        add(Short.class);
        add(Double.class);
        add(Integer.class);
        add(Long.class);
        add(BigDecimal.class);
        add(List.class);
        add(ArrayList.class);
        add(Collection.class);
        add(Map.class);
        add(HashMap.class);
        add(LinkedHashMap.class);
        add(Object.class);
    }};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy