Class ModelRepositoryImpl
- java.lang.Object
-
- org.flowable.ui.modeler.repository.ModelRepositoryImpl
-
- All Implemented Interfaces:
ModelRepository
@Component public class ModelRepositoryImpl extends Object implements ModelRepository
-
-
Field Summary
Fields Modifier and Type Field Description protected UuidIdGeneratoridGeneratorprotected org.mybatis.spring.SqlSessionTemplatesqlSessionTemplateprotected TenantProvidertenantProvider
-
Constructor Summary
Constructors Constructor Description ModelRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongcountByModelTypeAndCreatedBy(int modelType, String createdBy)voiddelete(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)Modelget(String id)voidsave(Model model)
-
-
-
Field Detail
-
sqlSessionTemplate
@Autowired @Qualifier("flowableModeler") protected org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate
-
idGenerator
@Autowired protected UuidIdGenerator idGenerator
-
tenantProvider
@Autowired protected TenantProvider tenantProvider
-
-
Method Detail
-
get
public Model get(String id)
- Specified by:
getin interfaceModelRepository
-
findByModelType
public List<Model> findByModelType(Integer modelType, String sort)
- Specified by:
findByModelTypein interfaceModelRepository
-
findByModelTypeAndFilter
public List<Model> findByModelTypeAndFilter(Integer modelType, String filter, String sort)
- Specified by:
findByModelTypeAndFilterin interfaceModelRepository
-
findByKeyAndType
public List<Model> findByKeyAndType(String key, Integer modelType)
- Specified by:
findByKeyAndTypein interfaceModelRepository
-
findByParentModelId
public List<Model> findByParentModelId(String parentModelId)
- Specified by:
findByParentModelIdin interfaceModelRepository
-
countByModelTypeAndCreatedBy
public Long countByModelTypeAndCreatedBy(int modelType, String createdBy)
- Specified by:
countByModelTypeAndCreatedByin interfaceModelRepository
-
findModelsByParameters
protected List<Model> findModelsByParameters(Map<String,Object> parameters)
-
save
public void save(Model model)
- Specified by:
savein interfaceModelRepository
-
delete
public void delete(Model model)
- Specified by:
deletein interfaceModelRepository
-
-