public class ObjSQL extends Object implements org.teasoft.bee.osql.Suid
| Constructor and Description |
|---|
ObjSQL() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginSameConnection() |
int |
delete(Object entity) |
<T> int |
delete(T entity,
org.teasoft.bee.osql.Condition condition) |
void |
endSameConnection() |
org.teasoft.bee.osql.BeeSql |
getBeeSql() |
String |
getDataSourceName() |
org.teasoft.bee.osql.interccept.InterceptorChain |
getInterceptorChain() |
org.teasoft.bee.osql.ObjToSQL |
getObjToSQL() |
<T> int |
insert(T entity) |
<T> long |
insertAndReturnId(T entity) |
<T> List<T> |
select(T entity) |
<T> List<T> |
select(T entity,
org.teasoft.bee.osql.Condition condition) |
void |
setBeeSql(org.teasoft.bee.osql.BeeSql beeSql) |
void |
setDataSourceName(String dsName) |
org.teasoft.bee.osql.Suid |
setDynamicParameter(String para,
String value) |
void |
setInterceptorChain(org.teasoft.bee.osql.interccept.InterceptorChain interceptorChain)
全局的可以使用InterceptorChainRegistry配置;只是某个对象要使用,再使用对象配置
|
void |
setNameTranslate(org.teasoft.bee.osql.NameTranslate nameTranslate) |
void |
setObjToSQL(org.teasoft.bee.osql.ObjToSQL objToSQL) |
<T> int |
update(T entity) |
public org.teasoft.bee.osql.BeeSql getBeeSql()
public void setBeeSql(org.teasoft.bee.osql.BeeSql beeSql)
public org.teasoft.bee.osql.ObjToSQL getObjToSQL()
public void setObjToSQL(org.teasoft.bee.osql.ObjToSQL objToSQL)
public org.teasoft.bee.osql.interccept.InterceptorChain getInterceptorChain()
getInterceptorChain in interface org.teasoft.bee.osql.CommOperatepublic void setInterceptorChain(org.teasoft.bee.osql.interccept.InterceptorChain interceptorChain)
interceptorChain - public void setNameTranslate(org.teasoft.bee.osql.NameTranslate nameTranslate)
setNameTranslate in interface org.teasoft.bee.osql.CommOperatepublic void setDataSourceName(String dsName)
setDataSourceName in interface org.teasoft.bee.osql.CommOperatepublic String getDataSourceName()
getDataSourceName in interface org.teasoft.bee.osql.CommOperatepublic <T> List<T> select(T entity)
select in interface org.teasoft.bee.osql.Suidpublic <T> int update(T entity)
update in interface org.teasoft.bee.osql.Suidpublic <T> int insert(T entity)
insert in interface org.teasoft.bee.osql.Suidpublic <T> long insertAndReturnId(T entity)
insertAndReturnId in interface org.teasoft.bee.osql.Suidpublic int delete(Object entity)
delete in interface org.teasoft.bee.osql.Suidpublic <T> List<T> select(T entity, org.teasoft.bee.osql.Condition condition)
select in interface org.teasoft.bee.osql.Suidpublic <T> int delete(T entity,
org.teasoft.bee.osql.Condition condition)
delete in interface org.teasoft.bee.osql.Suidpublic org.teasoft.bee.osql.Suid setDynamicParameter(String para, String value)
setDynamicParameter in interface org.teasoft.bee.osql.Suidpublic void beginSameConnection()
beginSameConnection in interface org.teasoft.bee.osql.Suidpublic void endSameConnection()
endSameConnection in interface org.teasoft.bee.osql.SuidCopyright © 2022. All rights reserved.