类 Query
- java.lang.Object
-
- org.sagacity.sqltoy.link.BaseLink
-
- org.sagacity.sqltoy.link.Query
-
- 所有已实现的接口:
Serializable
public class Query extends BaseLink
- 版本:
- v1.0,Date:2017年10月9日
- 作者:
- zhongxuchen
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.sagacity.sqltoy.link.BaseLink
dataSource, defaultDataSource, dialectFactory, sqlToyContext
-
-
构造器概要
构造器 构造器 说明 Query(SqlToyContext sqlToyContext, DataSource dataSource)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Longcount()QuerydataSource(DataSource dataSource)Queryentity(Serializable entityVO)QueryfetchSize(int fetchSize)List<?>find()Page<?>findPage(Page page)List<?>findRandom(double randomSize)List<?>findTop(double topSize)ObjectgetOne()ObjectgetValue()<T> TgetValue(Class<T> resultType)QueryhumpMapLabel(Boolean isHump)Querylock(LockMode lockMode)QuerymaxRows(int maxRows)已过时。Querynames(String... names)QueryresultType(Class<?> resultType)Queryrowhandler(RowCallbackHandler handler)已过时。Querysql(String sql)Queryvalues(Object... values)-
从类继承的方法 org.sagacity.sqltoy.link.BaseLink
getDataSource, getDialect
-
-
-
-
构造器详细资料
-
Query
public Query(SqlToyContext sqlToyContext, DataSource dataSource)
- 参数:
sqlToyContext-dataSource-
-
-
方法详细资料
-
fetchSize
public Query fetchSize(int fetchSize)
-
maxRows
@Deprecated public Query maxRows(int maxRows)
已过时。
-
rowhandler
@Deprecated public Query rowhandler(RowCallbackHandler handler)
已过时。
-
entity
public Query entity(Serializable entityVO)
- 参数:
entityVO-- 返回:
-
dataSource
public Query dataSource(DataSource dataSource)
-
getValue
public <T> T getValue(Class<T> resultType)
- 类型参数:
T-- 参数:
resultType-- 返回:
-
getValue
public Object getValue()
- 返回:
-
getOne
public Object getOne()
- 返回:
-
count
public Long count()
- 返回:
-
find
public List<?> find()
- 返回:
-
findTop
public List<?> findTop(double topSize)
- 参数:
topSize-- 返回:
-
findRandom
public List<?> findRandom(double randomSize)
- 参数:
randomSize-- 返回:
-
-