public class MybatisPlusService<Entity extends BaseEntity<ID>,ID,Writer extends WriteMapper<Entity>,Reader extends ReadMapper<Entity>> extends Object implements DataAccessService<Entity,ID>
| Modifier and Type | Field and Description |
|---|---|
protected Reader |
reader |
protected Writer |
writer |
| Constructor and Description |
|---|
MybatisPlusService() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll() |
long |
count() |
void |
deleteAll(Entity... entities) |
void |
deleteById(ID id) |
boolean |
existsById(ID id) |
List<Entity> |
find(Condition where) |
List<Entity> |
findAll() |
org.springframework.data.domain.Page<Entity> |
findAll(org.springframework.data.domain.Pageable pageable) |
List<Entity> |
findAllById(ID... ids) |
Optional<Entity> |
findById(ID id) |
Entity |
insert(Entity entity) |
void |
insertAll(Entity... entities) |
Entity |
update(Entity entity) |
void |
updateAll(Entity... entities) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteSql@Autowired protected Writer extends WriteMapper<Entity> writer
@Autowired protected Reader extends ReadMapper<Entity> reader
public List<Entity> findAllById(ID... ids)
findAllById in interface IRead<Entity extends BaseEntity<ID>,ID>public org.springframework.data.domain.Page<Entity> findAll(org.springframework.data.domain.Pageable pageable)
public boolean existsById(ID id)
existsById in interface IRead<Entity extends BaseEntity<ID>,ID>public void updateAll(Entity... entities)
public void deleteById(ID id)
deleteById in interface IWrite<Entity extends BaseEntity<ID>,ID>public void deleteAll(Entity... entities)
public void clearAll()
Copyright © 2022. All rights reserved.