org.nico.db.sql.SqlProcess Maven / Gradle / Ivy
package org.nico.db.sql;
import java.util.List;
import java.util.Map;
import org.nico.db.page.DBPage;
import org.nico.db.sql.entity.SqlEntity;
public interface SqlProcess {
/**
* save entity
* @param object you operation entity
* @return SqlEntity
* @throws Exception
*/
public SqlEntity bySave(Object object) throws Exception;
/**
* update entity
* @param object
* @return
* @throws Exception
*/
public SqlEntity byUpdate(Object object, boolean part) throws Exception;
/**
* user-defined update entity
* @param tableName user u
* @param sets u.age = 16, u.name = 'example'
* @param conditions u.id = '1'
* @return
* @throws Exception
*/
public SqlEntity byUpdate(String tableName, String sets, String conditions, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy