| Modifier and Type | Method and Description |
|---|---|
<T> String |
count(MongoSqlStruct struct,
Class<T> entityClass) |
<T> int |
count(T entity,
Condition condition) |
<T> boolean |
createTable(Class<T> entityClass,
boolean isDropExistTable) |
<T> int |
delete(T entity)
According to entity object delete record.
|
<T> int |
delete(T entity,
Condition condition)
Delete the records according to entity and condition.
|
int |
deleteById(Class c,
Object id) |
<T> int |
insert(T entity)
According to entity object insert record.
|
<T> int |
insert(T[] entity,
int batchSize,
String excludeFields) |
<T> long |
insertAndReturnId(T entity,
IncludeType includeType)
According to entity object insert record and return id value.
|
int |
modify(String commandStr) |
<T> List<T> |
select(MongoSqlStruct struct,
Class<T> entityClass) |
<T> List<T> |
select(String commandStr,
Class<T> returnTypeClass) |
<T> List<T> |
select(T entity)
According to entity object select records from database.
|
<T> List<T> |
select(T entity,
Condition condition)
Select the records according to entity and condition.
|
<T> List<T> |
selectById(Class<T> entityClass,
Object id) |
<T> String |
selectJson(MongoSqlStruct struct,
Class<T> entityClass) |
String |
selectJson(String commandStr) |
<T> String |
selectJson(T entity,
Condition condition) |
List<Map<String,Object>> |
selectMapList(String commandStr) |
<T> List<T> |
selectOrderBy(T entity,
String orderFields,
OrderType[] orderTypes) |
<T> List<String[]> |
selectString(MongoSqlStruct struct,
Class<T> entityClass) |
<T> List<String[]> |
selectString(T entity,
Condition condition) |
<T> String |
selectWithFun(MongoSqlStruct struct,
Class<T> entityClass) |
<T> String |
selectWithFun(T entity,
FunctionType functionType,
String fieldForFun,
Condition condition) |
<T> int |
update(T entity)
According to entity object update record.This method just has id field to SQL where expression.
|
<T> int |
update(T entity,
Condition condition,
String... setFields) |
<T> int |
update(T oldEntity,
T newEntity) |
<T> int |
updateBy(T entity,
Condition condition,
String... whereFields) |
<T> int |
updateOrDelete(MongoSqlStruct struct) |
deleteFile, getFileById, getFileByName, renameFile, selectFiles, uploadFile, uploadFile<T> List<T> select(T entity)
entity - table's entity(do not allow null).<T> int update(T entity)
SuidRich.update(Object,java.lang.String...)<T> int insert(T entity)
entity - table's entity(do not allow null).<T> long insertAndReturnId(T entity,
IncludeType includeType)
entity - table's entity(do not allow null).includeType - <T> int delete(T entity)
entity - table's entity(do not allow null).<T> List<T> select(T entity, Condition condition)
entity - table's entity(do not allow null).condition - If the field of entity is not null or empty, it will be translate to field=value.Other can define with condition.<T> int delete(T entity,
Condition condition)
entity - table's entity(do not allow null).condition - If the field of entity is not null or empty, it will be translate to field=value.Other can define with condition.<T> int update(T oldEntity,
T newEntity)
<T> int insert(T[] entity,
int batchSize,
String excludeFields)
<T> int count(T entity,
Condition condition)
<T> String selectWithFun(T entity, FunctionType functionType, String fieldForFun, Condition condition)
<T> List<T> select(MongoSqlStruct struct, Class<T> entityClass)
<T> List<String[]> selectString(MongoSqlStruct struct, Class<T> entityClass)
<T> String selectJson(MongoSqlStruct struct, Class<T> entityClass)
<T> String selectWithFun(MongoSqlStruct struct, Class<T> entityClass)
<T> String count(MongoSqlStruct struct, Class<T> entityClass)
<T> int updateOrDelete(MongoSqlStruct struct)
<T> boolean createTable(Class<T> entityClass, boolean isDropExistTable)
int modify(String commandStr)
Copyright © 2025. All rights reserved.