public class CommandImpl extends Object implements org.teasoft.bee.osql.api.cqrs.Command
| Constructor and Description |
|---|
CommandImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginSameConnection() |
<T> boolean |
createTable(Class<T> entityClass,
boolean isDropExistTable) |
<T> int |
delete(T entity) |
<T> int |
delete(T entity,
org.teasoft.bee.osql.api.Condition condition) |
int |
deleteById(Class<?> c,
Integer id) |
int |
deleteById(Class<?> c,
Long id) |
int |
deleteById(Class<?> c,
String ids) |
<T> void |
dropIndex(Class<T> entityClass,
String indexName) |
void |
endSameConnection() |
String |
getDataSourceName() |
org.teasoft.bee.osql.interccept.InterceptorChain |
getInterceptorChain() |
org.teasoft.bee.osql.api.SuidRich |
getSuidRich() |
<T> void |
indexNormal(Class<T> entityClass,
String fields,
String indexName) |
<T> int |
insert(List<T> entityList) |
<T> int |
insert(List<T> entityList,
int batchSize) |
<T> int |
insert(List<T> entityList,
int batchSize,
String excludeFields) |
<T> int |
insert(List<T> entityList,
String excludeFields) |
<T> int |
insert(T entity) |
<T> int |
insert(T[] entity) |
<T> int |
insert(T[] entity,
int batchSize) |
<T> int |
insert(T[] entity,
int batchSize,
String excludeFields) |
<T> int |
insert(T[] entity,
String excludeFields) |
<T> int |
insert(T entity,
org.teasoft.bee.osql.IncludeType includeType) |
<T> long |
insertAndReturnId(T entity) |
<T> long |
insertAndReturnId(T entity,
org.teasoft.bee.osql.IncludeType includeType) |
<T> void |
primaryKey(Class<T> entityClass,
String fields,
String keyName) |
<T> int |
save(T entity) |
void |
setDataSourceName(String dsName) |
void |
setNameTranslateOneTime(org.teasoft.bee.osql.NameTranslate nameTranslate) |
void |
setSuidRich(org.teasoft.bee.osql.api.SuidRich suidRich) |
<T> void |
unique(Class<T> entityClass,
String fields,
String indexName) |
<T> int |
update(T entity) |
<T> int |
update(T entity,
org.teasoft.bee.osql.api.Condition condition) |
<T> int |
update(T entity,
org.teasoft.bee.osql.api.Condition condition,
String... updateFields) |
<T> int |
update(T entity,
org.teasoft.bee.osql.IncludeType includeType) |
<T> int |
update(T entity,
org.teasoft.bee.osql.IncludeType includeType,
String... updateFields) |
<T> int |
update(T entity,
String... updateFields) |
<T> int |
update(T oldEntity,
T newEntity) |
<T> int |
updateBy(T entity,
org.teasoft.bee.osql.api.Condition condition,
String... whereFields) |
<T> int |
updateBy(T entity,
org.teasoft.bee.osql.IncludeType includeType,
String... whereFields) |
<T> int |
updateBy(T entity,
String... whereFields) |
<T> int |
updateById(T entity,
org.teasoft.bee.osql.api.Condition condition) |
public void setSuidRich(org.teasoft.bee.osql.api.SuidRich suidRich)
public org.teasoft.bee.osql.api.SuidRich getSuidRich()
public <T> int update(T entity)
update in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(T entity)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> long insertAndReturnId(T entity)
insertAndReturnId in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int delete(T entity)
delete in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int delete(T entity,
org.teasoft.bee.osql.api.Condition condition)
delete in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int update(T entity,
String... updateFields)
update in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int update(T entity,
org.teasoft.bee.osql.IncludeType includeType,
String... updateFields)
update in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(T[] entity)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(T[] entity,
int batchSize)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(T[] entity,
String excludeFields)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(T[] entity,
int batchSize,
String excludeFields)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(List<T> entityList)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(List<T> entityList, int batchSize)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(List<T> entityList, String excludeFields)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(List<T> entityList, int batchSize, String excludeFields)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int update(T entity,
org.teasoft.bee.osql.IncludeType includeType)
update in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int insert(T entity,
org.teasoft.bee.osql.IncludeType includeType)
insert in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> long insertAndReturnId(T entity,
org.teasoft.bee.osql.IncludeType includeType)
insertAndReturnId in interface org.teasoft.bee.osql.api.cqrs.Commandpublic int deleteById(Class<?> c, Integer id)
deleteById in interface org.teasoft.bee.osql.api.cqrs.Commandpublic int deleteById(Class<?> c, Long id)
deleteById in interface org.teasoft.bee.osql.api.cqrs.Commandpublic int deleteById(Class<?> c, String ids)
deleteById in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int updateBy(T entity,
String... whereFields)
updateBy in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int updateBy(T entity,
org.teasoft.bee.osql.IncludeType includeType,
String... whereFields)
updateBy in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int updateBy(T entity,
org.teasoft.bee.osql.api.Condition condition,
String... whereFields)
updateBy in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int updateById(T entity,
org.teasoft.bee.osql.api.Condition condition)
updateById in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int update(T entity,
org.teasoft.bee.osql.api.Condition condition,
String... updateFields)
update in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int update(T entity,
org.teasoft.bee.osql.api.Condition condition)
update in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int update(T oldEntity,
T newEntity)
update in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> int save(T entity)
save in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> boolean createTable(Class<T> entityClass, boolean isDropExistTable)
createTable in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> void indexNormal(Class<T> entityClass, String fields, String indexName)
indexNormal in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> void unique(Class<T> entityClass, String fields, String indexName)
unique in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> void primaryKey(Class<T> entityClass, String fields, String keyName)
primaryKey in interface org.teasoft.bee.osql.api.cqrs.Commandpublic <T> void dropIndex(Class<T> entityClass, String indexName)
dropIndex in interface org.teasoft.bee.osql.api.cqrs.Commandpublic void beginSameConnection()
beginSameConnection in interface org.teasoft.bee.osql.api.cqrs.Commandpublic void endSameConnection()
endSameConnection in interface org.teasoft.bee.osql.api.cqrs.Commandpublic 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.