Class ProguardServiceImpl
java.lang.Object
cn.net.pap.example.proguard.service.impl.ProguardServiceImpl
- All Implemented Interfaces:
IProguardService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAllById
(Long proguardId) 批量执行多个SQL 实现类增加 org.springframework.transaction.annotation.Transactional 注解findAll()
getProguardByProguardId
(Long proguardId) saveAllAndFlush
(List<Proguard> proguards) 批量保存,返回值含主键saveAndFlush
(Proguard entity) org.springframework.data.domain.Page<Proguard>
searchAllByNaiveSQL
(String naiveSQL, org.springframework.data.domain.Pageable pageable) 原生SQL 分页查询org.springframework.data.domain.Page<Map>
searchAllByNaiveSQLMap
(String naiveSQL, org.springframework.data.domain.Pageable pageable) 原生SQL 分页查询 返回 MapsearchAllByProguardName
(String proguardName) searchAllByProguardNameRange
(String proguardNameRange) 范围查询 参数格式为: A-D,H 代表从 A 到 D,并且包含 H 的 数据 in (A,B,C,D,H)updateProguardByProguardId
(Proguard proguard)
-
Constructor Details
-
ProguardServiceImpl
public ProguardServiceImpl()
-
-
Method Details
-
searchAllByProguardName
- Specified by:
searchAllByProguardName
in interfaceIProguardService
-
findAll
- Specified by:
findAll
in interfaceIProguardService
-
saveAndFlush
- Specified by:
saveAndFlush
in interfaceIProguardService
-
saveAllAndFlush
Description copied from interface:IProguardService
批量保存,返回值含主键- Specified by:
saveAllAndFlush
in interfaceIProguardService
- Returns:
-
getProguardByProguardId
- Specified by:
getProguardByProguardId
in interfaceIProguardService
-
updateProguardByProguardId
- Specified by:
updateProguardByProguardId
in interfaceIProguardService
-
searchAllByProguardNameRange
Description copied from interface:IProguardService
范围查询 参数格式为: A-D,H 代表从 A 到 D,并且包含 H 的 数据 in (A,B,C,D,H)- Specified by:
searchAllByProguardNameRange
in interfaceIProguardService
- Returns:
-
searchAllByNaiveSQL
public org.springframework.data.domain.Page<Proguard> searchAllByNaiveSQL(String naiveSQL, org.springframework.data.domain.Pageable pageable) Description copied from interface:IProguardService
原生SQL 分页查询- Specified by:
searchAllByNaiveSQL
in interfaceIProguardService
- Returns:
-
searchAllByNaiveSQLMap
public org.springframework.data.domain.Page<Map> searchAllByNaiveSQLMap(String naiveSQL, org.springframework.data.domain.Pageable pageable) Description copied from interface:IProguardService
原生SQL 分页查询 返回 Map- Specified by:
searchAllByNaiveSQLMap
in interfaceIProguardService
- Returns:
-
executeNaiveSQLBatch
@Transactional public Boolean executeNaiveSQLBatch(List<String> naiveSQLList, List<List<Object>> paramsList) Description copied from interface:IProguardService
批量执行多个SQL 实现类增加 org.springframework.transaction.annotation.Transactional 注解- Specified by:
executeNaiveSQLBatch
in interfaceIProguardService
- Returns:
-
deleteAllById
- Specified by:
deleteAllById
in interfaceIProguardService
-