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

gu.sql2java.parser.SqlSyntaxNormalizers Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package gu.sql2java.parser;

import java.util.Map;

import com.google.common.collect.ImmutableMap;

import gu.sql2java.Constant;
import gu.sql2java.phoenix.PhoenixNormalizer;

/**
 * @author guyadong
 * @since 3.17.0
 */
public class SqlSyntaxNormalizers implements Constant {
    /** 保存不同类型的数据库的对应的 {@link SqlSyntaxNormalizer} 对象 */
    private static Map sqlNormalizer = 
            ImmutableMap.of(
                    PRODUCT_NAME_PHOENIX,new PhoenixNormalizer());
    /**
     * 返回指定数据库引擎的{@link SqlSyntaxNormalizer},没有返回{@code null}
     * @param engine
     */
    public static SqlSyntaxNormalizer normalizerOf(String engine){
        return sqlNormalizer.get(engine);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy