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

org.onetwo.dbm.query.DbmQuery Maven / Gradle / Ivy

The newest version!
package org.onetwo.dbm.query;

import java.util.List;
import java.util.Map;

import org.onetwo.dbm.dialet.DBDialect.LockInfo;
import org.springframework.jdbc.core.RowMapper;

public interface DbmQuery {

	DbmQuery setParameter(Integer index, Object value);

	DbmQuery setParameter(String name, Object value);

	 T getSingleResult();

	 List getResultList();

	/***
	 * 
	 * @author weishao zeng
	 * @param firstResult from 0
	 * @return
	 */
	DbmQuery setFirstResult(int firstResult);

	DbmQuery setMaxResults(int maxResults);
	
	DbmQuery setResultClass(Class resultClass);
	
	DbmQuery setParameters(Map params);
	
	DbmQuery setParameters(List params);
	
	Map getParameters();
	
	int executeUpdate();
	
	void setRowMapper(RowMapper rowMapper);
	void setQueryAttributes(Map params);
	
	void setLockInfo(LockInfo lockInfo);
	

	boolean isUseAutoLimitSqlIfPagination();

	void setUseAutoLimitSqlIfPagination(boolean useAutoLimitSqlIfPagination);
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy