@PermitAll public class JpaModelManagementDao extends com.whitestein.lsps.common.jpa.AbstractJpaEntityDao<Module> implements ModelManagementDao
| Constructor and Description |
|---|
JpaModelManagementDao()
Creates new instance.
|
JpaModelManagementDao(javax.persistence.EntityManager em)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addModule(Module module)
Adds a module.
|
void |
addProcess(Process process)
Adds a process.
|
void |
addProcessElement(ProcessElement processElement)
Adds a process element.
|
void |
addProcessRelationship(ProcessRelationship processRelationship)
Adds a process relationship.
|
List<Module> |
findImportingModules(long moduleId)
Returns all modules which import the given module.
|
Module |
findModuleByHash(String hash)
Returns module with the given hash.
|
Module |
findModuleById(long id)
Returns module for given id or null if module with given id does not exist.
|
protected javax.persistence.EntityManager |
getEntityManager() |
Module |
getLatestModule(String name)
Returns the latest module with a given name.
|
List<Module> |
getLatestModules(boolean ignoreVersion)
Returns the latest modules.
|
List<Module> |
getLatestModulesWithName(boolean ignoreVersion,
String name)
Returns the latest modules with the name.
|
long |
getModuleCount(ModuleCriteria criteria)
Returns a count of module according to a given criteria.
|
ModuleEntry |
getModuleEntry(Long entryId)
Returns module entry for given id.
|
QueryResult<Module> |
getModules(ModuleCriteria criteria)
Returns all models according to given criteria
|
ModuleEntry |
getResourceContent(long moduleId,
String filename)
Returns module entry content given
moduleId and filename. |
Long |
getResourceContentId(long moduleId,
String filename)
Returns resource content id for the given module id and filename.
|
List<Long> |
getUnloadedModuleIds()
Returns ids of unloaded modules.
|
void |
remove(ProcessRelationship rel) |
void |
setCompatibilityVersion(Collection<Long> moduleIds,
String version)
Updates compatibility version.
|
clear, contains, findById, findById, flush, getColName, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic JpaModelManagementDao()
public JpaModelManagementDao(javax.persistence.EntityManager em)
em - public Module findModuleByHash(String hash)
ModelManagementDaofindModuleByHash in interface ModelManagementDaoModule or null if not foundpublic void addModule(Module module)
ModelManagementDaoaddModule in interface ModelManagementDaopublic void addProcess(Process process)
ModelManagementDaoaddProcess in interface ModelManagementDaopublic void addProcessElement(ProcessElement processElement)
ModelManagementDaoaddProcessElement in interface ModelManagementDaopublic void addProcessRelationship(ProcessRelationship processRelationship)
ModelManagementDaoaddProcessRelationship in interface ModelManagementDaopublic void remove(ProcessRelationship rel)
remove in interface ModelManagementDaopublic Module findModuleById(long id)
ModelManagementDaofindModuleById in interface ModelManagementDaoid - module idpublic Long getResourceContentId(long moduleId, String filename)
ModelManagementDaogetResourceContentId in interface ModelManagementDaopublic ModuleEntry getResourceContent(long moduleId, String filename)
ModelManagementDaomoduleId and filename.getResourceContent in interface ModelManagementDaomoduleId and filenamepublic ModuleEntry getModuleEntry(Long entryId)
ModelManagementDaogetModuleEntry in interface ModelManagementDaopublic QueryResult<Module> getModules(ModuleCriteria criteria)
ModelManagementDaogetModules in interface ModelManagementDaoModulepublic long getModuleCount(ModuleCriteria criteria)
ModelManagementDaogetModuleCount in interface ModelManagementDaopublic List<Module> findImportingModules(long moduleId)
ModelManagementDaofindImportingModules in interface ModelManagementDaopublic List<Module> getLatestModules(boolean ignoreVersion)
ModelManagementDaogetLatestModules in interface ModelManagementDaopublic List<Module> getLatestModulesWithName(boolean ignoreVersion, String name)
ModelManagementDaogetLatestModulesWithName in interface ModelManagementDaoprotected javax.persistence.EntityManager getEntityManager()
public List<Long> getUnloadedModuleIds()
ModelManagementDaogetUnloadedModuleIds in interface ModelManagementDaopublic void setCompatibilityVersion(Collection<Long> moduleIds, String version)
ModelManagementDaosetCompatibilityVersion in interface ModelManagementDaopublic Module getLatestModule(String name)
ModelManagementDaogetLatestModule in interface ModelManagementDaonullCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.