Class SqlCacheGroupDao
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheGroupDao
dao for sql cache groups
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
delete
(SqlCacheGroup sqlCacheGroup) 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 SqlCacheGroup
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
(SqlCacheGroup sqlCacheGroup) static int
store
(Collection<SqlCacheGroup> sqlCacheGroups)
-
Constructor Details
-
SqlCacheGroupDao
public SqlCacheGroupDao()
-
-
Method Details
-
store
- Parameters:
connectionName
-- Returns:
- true if changed
-
store
- Parameters:
connectionName
-- Returns:
- number of changes
-
retrieveByInternalId
select grouper sync by id- Parameters:
theConnectionName
-id
-- Returns:
- the sync
-
delete
- Parameters:
sqlCacheMembership
-
-
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
-