Package io.higson.runtime.dao
Class DomainCacheJdbcDao
java.lang.Object
io.higson.runtime.dao.BaseDao
io.higson.runtime.dao.DomainCacheJdbcDao
- All Implemented Interfaces:
DomainCacheDao
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.higson.runtime.core.datasource.DomainCacheDao
DomainCacheDao.DomainAttributeLoadWrapper -
Field Summary
Fields inherited from class io.higson.runtime.dao.BaseDao
connectionInterceptor, dataSource, DEFAULT_FETCH_SIZE, defaultJdbcTemplate -
Constructor Summary
ConstructorsConstructorDescriptionDomainCacheJdbcDao(DataSource dataSource, ConnectionInterceptor connectionInterceptor, VersionDao versionDao) -
Method Summary
Modifier and TypeMethodDescriptiongetCollectionId(int elementId) getDefinitionLastUpdateInProfile(String profileCode) getLastUpdateForOpenSession(String profileCode, String user) getLastUpdateForProfile(String profileCode) max modification timestamp for all domain-related tables, returns new Date(0) if all domain tables are emptygetNewParents(String profileCode, Set<Integer> userRegionVersions) getObjectsAttributesByObjectId(String profileCode, int sessionId, Set<Integer> userRegionVersions) getObjectsById(String profileCode, int sessionId, Map<String, DomainObjectTypeImpl> types, Set<Integer> userRegionVersions) getObjectsDynamicAttributesByObjectId(String profileCode, int sessionId, Set<Integer> userRegionVersions) getOpenSession(String profile, String user) getReferences(int elementId) getReferences(String profileCode, int sessionId, Set<Integer> userRegionVersions) getTypesByCode(String profileCode) getUserVersions(String profileCode, String user) Methods inherited from class io.higson.runtime.dao.BaseDao
getOne, getOne, jdbcTemplate, jdbcTemplate, setDefaultFetchSize
-
Constructor Details
-
DomainCacheJdbcDao
public DomainCacheJdbcDao(DataSource dataSource, ConnectionInterceptor connectionInterceptor, VersionDao versionDao)
-
-
Method Details
-
getDomainElementLastUpdate
- Specified by:
getDomainElementLastUpdatein interfaceDomainCacheDao
-
getRegionVersionLastUpdate
- Specified by:
getRegionVersionLastUpdatein interfaceDomainCacheDao
-
getDomainDefinitionLastUpdate
- Specified by:
getDomainDefinitionLastUpdatein interfaceDomainCacheDao
-
getMaxLastUpdate
max modification timestamp for all domain-related tables, returns new Date(0) if all domain tables are empty- Specified by:
getMaxLastUpdatein interfaceDomainCacheDao
-
getTypesByCode
- Specified by:
getTypesByCodein interfaceDomainCacheDao
-
getCollectionId
- Specified by:
getCollectionIdin interfaceDomainCacheDao
-
getObjectsById
public Map<String,DomainObjectImpl> getObjectsById(String profileCode, int sessionId, Map<String, DomainObjectTypeImpl> types, Set<Integer> userRegionVersions) - Specified by:
getObjectsByIdin interfaceDomainCacheDao
-
getNewParents
- Specified by:
getNewParentsin interfaceDomainCacheDao
-
getReferences
public Map<String,List<ReferenceDto>> getReferences(String profileCode, int sessionId, Set<Integer> userRegionVersions) - Specified by:
getReferencesin interfaceDomainCacheDao
-
getReferences
- Specified by:
getReferencesin interfaceDomainCacheDao
-
getProfileLastUpdates
- Specified by:
getProfileLastUpdatesin interfaceDomainCacheDao
-
getObjectsDynamicAttributesByObjectId
public Map<String,List<DomainCacheDao.DomainAttributeLoadWrapper>> getObjectsDynamicAttributesByObjectId(String profileCode, int sessionId, Set<Integer> userRegionVersions) - Specified by:
getObjectsDynamicAttributesByObjectIdin interfaceDomainCacheDao
-
getObjectsAttributesByObjectId
public Map<String,List<DomainCacheDao.DomainAttributeLoadWrapper>> getObjectsAttributesByObjectId(String profileCode, int sessionId, Set<Integer> userRegionVersions) - Specified by:
getObjectsAttributesByObjectIdin interfaceDomainCacheDao
-
getUserVersions
- Specified by:
getUserVersionsin interfaceDomainCacheDao
-
getOpenSession
- Specified by:
getOpenSessionin interfaceDomainCacheDao
-
getLastUpdateForProfile
- Specified by:
getLastUpdateForProfilein interfaceDomainCacheDao
-
getLastUpdateForOpenSession
- Specified by:
getLastUpdateForOpenSessionin interfaceDomainCacheDao
-
getDefinitionLastUpdateInProfile
- Specified by:
getDefinitionLastUpdateInProfilein interfaceDomainCacheDao
-