public class QueryImpl extends Object implements org.teasoft.bee.osql.api.cqrs.Query
| Constructor and Description |
|---|
QueryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginSameConnection() |
<T> int |
count(T entity) |
<T> int |
count(T entity,
org.teasoft.bee.osql.api.Condition condition) |
void |
endSameConnection() |
<T> boolean |
exist(T entity) |
String |
getDataSourceName() |
org.teasoft.bee.osql.interccept.InterceptorChain |
getInterceptorChain() |
org.teasoft.bee.osql.api.SuidRich |
getSuidRich() |
<T> List<T> |
select(T entity) |
<T> List<T> |
select(T entity,
org.teasoft.bee.osql.api.Condition condition) |
<T> List<T> |
select(T entity,
int size) |
<T> List<T> |
select(T entity,
int start,
int size) |
<T> List<T> |
select(T entity,
int start,
int size,
String... selectFields) |
<T> List<T> |
select(T entity,
String... selectFields) |
<T> T |
selectById(Class<T> entityClass,
Integer id) |
<T> T |
selectById(Class<T> entityClazz,
Long id) |
<T> T |
selectById(Class<T> entityClass,
String id) |
<T> List<T> |
selectByIds(Class<T> entityClass,
String ids) |
<T> T |
selectFirst(T entity,
org.teasoft.bee.osql.api.Condition condition) |
<T> String |
selectJson(T entity) |
<T> String |
selectJson(T entity,
org.teasoft.bee.osql.api.Condition condition) |
<T> String |
selectJson(T entity,
int start,
int size,
String... selectFields) |
<T> String |
selectJson(T entity,
String... selectFields) |
<T> T |
selectOne(T entity) |
<T> List<T> |
selectOrderBy(T entity,
String orderFields) |
<T> List<T> |
selectOrderBy(T entity,
String orderFields,
org.teasoft.bee.osql.OrderType[] orderTypes) |
<T> List<String[]> |
selectString(T entity) |
<T> List<String[]> |
selectString(T entity,
org.teasoft.bee.osql.api.Condition condition) |
<T> List<String[]> |
selectString(T entity,
String... selectFields) |
<T> String |
selectWithFun(T entity,
org.teasoft.bee.osql.FunctionType functionType,
String fieldForFun) |
<T> String |
selectWithFun(T entity,
org.teasoft.bee.osql.FunctionType functionType,
String fieldForFun,
org.teasoft.bee.osql.api.Condition condition) |
void |
setDataSourceName(String dsName) |
void |
setNameTranslateOneTime(org.teasoft.bee.osql.NameTranslate nameTranslate) |
void |
setSuidRich(org.teasoft.bee.osql.api.SuidRich suidRich) |
public void setSuidRich(org.teasoft.bee.osql.api.SuidRich suidRich)
public org.teasoft.bee.osql.api.SuidRich getSuidRich()
public <T> List<T> select(T entity)
select in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> select(T entity, org.teasoft.bee.osql.api.Condition condition)
select in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> select(T entity, int size)
select in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> select(T entity, int start, int size)
select in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> select(T entity, String... selectFields)
select in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> select(T entity, int start, int size, String... selectFields)
select in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<String[]> selectString(T entity)
selectString in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<String[]> selectString(T entity, String... selectFields)
selectString in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<String[]> selectString(T entity, org.teasoft.bee.osql.api.Condition condition)
selectString in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> String selectJson(T entity)
selectJson in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> T selectOne(T entity)
selectOne in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> T selectFirst(T entity,
org.teasoft.bee.osql.api.Condition condition)
selectFirst in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> String selectWithFun(T entity, org.teasoft.bee.osql.FunctionType functionType, String fieldForFun)
selectWithFun in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> String selectWithFun(T entity, org.teasoft.bee.osql.FunctionType functionType, String fieldForFun, org.teasoft.bee.osql.api.Condition condition)
selectWithFun in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> int count(T entity)
count in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> int count(T entity,
org.teasoft.bee.osql.api.Condition condition)
count in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> selectOrderBy(T entity, String orderFields)
selectOrderBy in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> selectOrderBy(T entity, String orderFields, org.teasoft.bee.osql.OrderType[] orderTypes)
selectOrderBy in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> String selectJson(T entity, org.teasoft.bee.osql.api.Condition condition)
selectJson in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> String selectJson(T entity, String... selectFields)
selectJson in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> String selectJson(T entity, int start, int size, String... selectFields)
selectJson in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> T selectById(Class<T> entityClass, Integer id)
selectById in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> T selectById(Class<T> entityClazz, Long id)
selectById in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> T selectById(Class<T> entityClass, String id)
selectById in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> List<T> selectByIds(Class<T> entityClass, String ids)
selectByIds in interface org.teasoft.bee.osql.api.cqrs.Querypublic <T> boolean exist(T entity)
exist in interface org.teasoft.bee.osql.api.cqrs.Querypublic void beginSameConnection()
beginSameConnection in interface org.teasoft.bee.osql.api.cqrs.Querypublic void endSameConnection()
endSameConnection in interface org.teasoft.bee.osql.api.cqrs.Querypublic void setDataSourceName(String dsName)
setDataSourceName in interface org.teasoft.bee.osql.CommOperatepublic String getDataSourceName()
getDataSourceName in interface org.teasoft.bee.osql.CommOperatepublic org.teasoft.bee.osql.interccept.InterceptorChain getInterceptorChain()
getInterceptorChain in interface org.teasoft.bee.osql.CommOperatepublic void setNameTranslateOneTime(org.teasoft.bee.osql.NameTranslate nameTranslate)
setNameTranslateOneTime in interface org.teasoft.bee.osql.CommOperateCopyright © 2025. All rights reserved.