@Component public class ModelRepositoryImpl extends Object implements ModelRepository
| Modifier and Type | Field and Description |
|---|---|
protected UuidIdGenerator |
idGenerator |
protected org.mybatis.spring.SqlSessionTemplate |
sqlSessionTemplate |
protected TenantProvider |
tenantProvider |
| Constructor and Description |
|---|
ModelRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
countByModelTypeAndCreatedBy(int modelType,
String createdBy) |
void |
delete(Model model) |
List<Model> |
findByKeyAndType(String key,
Integer modelType) |
List<Model> |
findByModelType(Integer modelType,
String sort) |
List<Model> |
findByModelTypeAndFilter(Integer modelType,
String filter,
String sort) |
List<Model> |
findByParentModelId(String parentModelId) |
protected List<Model> |
findModelsByParameters(Map<String,Object> parameters) |
Model |
get(String id) |
void |
save(Model model) |
@Autowired protected org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate
@Autowired protected UuidIdGenerator idGenerator
@Autowired protected TenantProvider tenantProvider
public Model get(String id)
get in interface ModelRepositorypublic List<Model> findByModelType(Integer modelType, String sort)
findByModelType in interface ModelRepositorypublic List<Model> findByModelTypeAndFilter(Integer modelType, String filter, String sort)
findByModelTypeAndFilter in interface ModelRepositorypublic List<Model> findByKeyAndType(String key, Integer modelType)
findByKeyAndType in interface ModelRepositorypublic List<Model> findByParentModelId(String parentModelId)
findByParentModelId in interface ModelRepositorypublic Long countByModelTypeAndCreatedBy(int modelType, String createdBy)
countByModelTypeAndCreatedBy in interface ModelRepositorypublic void save(Model model)
save in interface ModelRepositorypublic void delete(Model model)
delete in interface ModelRepositoryCopyright © 2018 Flowable. All rights reserved.