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

com.obatis.orm.provider.handle.ProviderBuilder Maven / Gradle / Ivy

The newest version!
package com.obatis.orm.provider.handle;

import com.obatis.orm.provider.DeleteProvider;
import com.obatis.orm.provider.QueryProvider;
import com.obatis.orm.provider.UpdateProvider;

public class ProviderBuilder {

    /**
     * 创建查询代理
     * @return
     */
    public static QueryProvider query() {
        return query(null);
    }

    /**
     * 创建查询代理,主要用于连接查询
     * @param tableName
     * @return
     */
    public static QueryProvider query(String tableName) {
        return new QueryProviderHandle(tableName);
    }

    /**
     * 创建更新代理
     * @return
     */
    public static UpdateProvider update() {
        return new UpdateProviderHandle();
    }

    /**
     * 创建删除代理
     * @return
     */
    public static DeleteProvider delete() {
        return new DeleteProviderHandle();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy