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

cn.tenmg.sqltool.sql.getter.AbstractResultGetter Maven / Gradle / Ivy

Go to download

一个提供动态结构化查询语言(DSQL)解析和执行的通用ORM框架(连接池在分布式环境适用),支持包括MySQL、PostgreSQL、Oracle、SQLServer在内的多种数据库。

The newest version!
package cn.tenmg.sqltool.sql.getter;

import java.lang.reflect.ParameterizedType;

import cn.tenmg.sqltool.sql.ResultGetter;

/**
 * 结果获取器虚基类
 * 
 * @author June [email protected]
 *
 * @param 
 *            结果类型
 * 
 * @since 1.5.0
 */
public abstract class AbstractResultGetter implements ResultGetter {

	protected Class type;

	@SuppressWarnings("unchecked")
	protected AbstractResultGetter() {
		type = (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
	}

	@Override
	public Class getType() {
		return type;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy