| 限定符和类型 | 方法和说明 |
|---|---|
int |
createTable()
Create tables based on entity class data structures
|
Optional<T> |
findByFields(String... fields)
Query by the specified field.
|
Optional<T> |
findByPk()
Primary key query
|
int |
insert() |
int |
update()
Modify the current object persistence layer based on the instance primary key
Id value
For fields that you don't want to modify, try NoDB or
Behavior.fields(String...) |
int |
updateBy(String field) |
int insert()
int update()
Modify the current object persistence layer based on the instance primary key
Id value
For fields that you don't want to modify, try NoDB or
Behavior.fields(String...)
note that before performing the modification operation, please ensure that the instance data is up-to-date and complete. It is recommended that a query be executed first.
Optional<T> findByFields(String... fields)
fields - - Must be the fields that the entity class containsint updateBy(String field)
int createTable()
Copyright © 2023. All rights reserved.