Class SqlCacheDependencyTypeDao
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheDependencyTypeDao
dao for sql cache dependency types
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
delete
(SqlCacheDependencyType sqlCacheDependencyType) static Map<MultiKey,
SqlCacheGroup> retrieveByGroupInternalIdsFieldInternalIds
(Collection<MultiKey> groupInternalIdsFieldInternalIds) select caches by group internal ids and field internal idsstatic Map<MultiKey,
SqlCacheGroup> retrieveByGroupNamesFieldNames
(Collection<MultiKey> groupNamesFieldNames) select caches by group names and field namesretrieveByGroupNamesFieldNamesToInternalId
(Collection<MultiKey> groupNamesFieldNames) select caches by group names and field namesstatic SqlCacheDependencyType
select grouper sync by idretrieveExistingAttributeAssignments
(Collection<String> attributeAssignIds) find existing sql cache assignments by attribute assign id (of the assignment on assignment)retrieveNonexistingAttributeAssignments
(Collection<String> attributeAssignIds, long minimumEventMicros) find existing sql cache assignments by attribute assign id (of the assignment on assignment)static SqlCacheGroup
retrieveOrCreateBySqlGroupCache
(SqlCacheGroup sqlCacheGroup) retrieve cache group by group name field name or createdstatic Map<MultiKey,
SqlCacheGroup> retrieveOrCreateBySqlGroupCache
(Collection<SqlCacheGroup> sqlCacheGroups) retrieve cache group by group name field name or createdstatic boolean
store
(SqlCacheDependencyType sqlCacheDependencyType)
-
Constructor Details
-
SqlCacheDependencyTypeDao
public SqlCacheDependencyTypeDao()
-
-
Method Details
-
store
- Parameters:
connectionName
-- Returns:
- true if changed
-
retrieveByInternalId
select grouper sync by id- Parameters:
theConnectionName
-id
-- Returns:
- the sync
-
delete
- Parameters:
sqlCacheDependencyType
-
-
retrieveByGroupNamesFieldNames
public static Map<MultiKey,SqlCacheGroup> retrieveByGroupNamesFieldNames(Collection<MultiKey> groupNamesFieldNames) select caches by group names and field names- Parameters:
groupNamesFieldNames
-- Returns:
- the caches if they exist by groupName and fieldName
-
retrieveByGroupNamesFieldNamesToInternalId
public static Map<MultiKey,Long> retrieveByGroupNamesFieldNamesToInternalId(Collection<MultiKey> groupNamesFieldNames) select caches by group names and field names- Parameters:
groupNamesFieldNames
-- Returns:
- the caches if they exist by groupName and fieldName
-
retrieveByGroupInternalIdsFieldInternalIds
public static Map<MultiKey,SqlCacheGroup> retrieveByGroupInternalIdsFieldInternalIds(Collection<MultiKey> groupInternalIdsFieldInternalIds) select caches by group internal ids and field internal ids- Parameters:
groupInternalIdsFieldInternalIds
-- Returns:
- the caches if they exist
-
retrieveExistingAttributeAssignments
public static Map<String,MultiKey> retrieveExistingAttributeAssignments(Collection<String> attributeAssignIds) find existing sql cache assignments by attribute assign id (of the assignment on assignment)- Parameters:
attributeAssignIds
-- Returns:
- the map of attributeAssignmentId to groupName and fieldName
-
retrieveNonexistingAttributeAssignments
public static Map<String,Set<MultiKey>> retrieveNonexistingAttributeAssignments(Collection<String> attributeAssignIds, long minimumEventMicros) find existing sql cache assignments by attribute assign id (of the assignment on assignment)- Parameters:
attributeAssignIds
-- Returns:
- the map of attributeAssignmentId to groupName and fieldName (could be multiple)
-
retrieveOrCreateBySqlGroupCache
retrieve cache group by group name field name or created- Parameters:
sqlCacheGroups
-
-
retrieveOrCreateBySqlGroupCache
public static Map<MultiKey,SqlCacheGroup> retrieveOrCreateBySqlGroupCache(Collection<SqlCacheGroup> sqlCacheGroups) retrieve cache group by group name field name or created- Parameters:
sqlCacheGroups
-- Returns:
- groupInternalId / fieldInternalId to sql cache group
-