Class SqlCacheGroupDao

java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheGroupDao

public class SqlCacheGroupDao extends Object
dao for sql cache groups
  • Constructor Details

    • SqlCacheGroupDao

      public SqlCacheGroupDao()
  • Method Details

    • store

      public static boolean store(SqlCacheGroup sqlCacheGroup)
      Parameters:
      connectionName -
      Returns:
      true if changed
    • store

      public static int store(Collection<SqlCacheGroup> sqlCacheGroups)
      Parameters:
      connectionName -
      Returns:
      number of changes
    • retrieveByInternalId

      public static SqlCacheGroup retrieveByInternalId(Long id)
      select grouper sync by id
      Parameters:
      theConnectionName -
      id -
      Returns:
      the sync
    • delete

      public static void delete(SqlCacheGroup sqlCacheGroup)
      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

      public static SqlCacheGroup retrieveOrCreateBySqlGroupCache(SqlCacheGroup sqlCacheGroup)
      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