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

com.zhuang.data.orm.sql.SqlBuilderFactory Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.zhuang.data.orm.sql;

import com.zhuang.data.enums.DbDialect;
import com.zhuang.data.orm.enums.PlaceHolderType;
import com.zhuang.data.orm.mapping.TableMapping;

/**
 * @author zhuang
 **/
public class SqlBuilderFactory {

    public static SqlBuilder createSqlBuilder(DbDialect dbDialect, TableMapping tableMapping, PlaceHolderType placeHolderType) {
        if (dbDialect == DbDialect.Oracle) {
            return new OracleSqlBuilder(tableMapping, placeHolderType);
        } else if (dbDialect == DbDialect.MySQL) {
            return new MySQLSqlBuilder(tableMapping, placeHolderType);
        }else if (dbDialect == DbDialect.MSSQL) {
            return new MSSQLSqlBuilder(tableMapping, placeHolderType);
        }
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy