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

org.nutz.dao.impl.jdbc.sqlserver2000.Sqlserver2000JdbcExpert Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.dao.impl.jdbc.sqlserver2000;

import java.sql.ResultSet;

import org.nutz.dao.impl.jdbc.sqlserver2005.Sqlserver2005JdbcExpert;
import org.nutz.dao.jdbc.JdbcExpertConfigFile;
import org.nutz.dao.sql.Pojo;
import org.nutz.dao.sql.Sql;

public class Sqlserver2000JdbcExpert extends Sqlserver2005JdbcExpert {

	public Sqlserver2000JdbcExpert(JdbcExpertConfigFile conf) {
		super(conf);
	}

	public void formatQuery(Pojo pojo) {
		// 这个指令,可以让 Dao 的语句执行器采用 JDBC 滚动游标的方式来进行分页
		pojo.getContext().setResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE);
	}

	public void formatQuery(Sql sql) {
		// 这个指令,可以让 Dao 的语句执行器采用 JDBC 滚动游标的方式来进行分页
		sql.getContext().setResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy