com.obatis.orm.provider.handle.ProviderBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of obatis-orm Show documentation
Show all versions of obatis-orm Show documentation
obatis-orm, apply database project
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