public interface Suid extends CommOperate
| Modifier and Type | Method and Description |
|---|---|
void |
beginSameConnection()
declare begin Same Connection for some ORM operation.
|
<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.
|
void |
endSameConnection()
declare end Same Connection for some ORM operation.
|
<T> int |
insert(T entity)
According to entity object insert record.
|
<T> long |
insertAndReturnId(T entity)
According to entity object insert record and return id value.
|
<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.
|
Suid |
setDynamicParameter(String param,
String value)
set dynamic parameter for dynamic table & entity name
This method is called earlier than the select, update, insert, delete methods. |
<T> int |
update(T entity)
According to entity object update record.This method just has id field to SQL where expression.
|
getDataSourceName, getInterceptorChain, setDataSourceName, setNameTranslateOneTime<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)
entity - table's entity(do not allow null).<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.Suid setDynamicParameter(String param, String value)
param - parameter namevalue - parameter valuevoid beginSameConnection()
void endSameConnection()
Copyright © 2025. All rights reserved.