Class SqlCacheDependencyDao

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

public class SqlCacheDependencyDao extends Object
dao for sql cache dependencies
  • Constructor Details

    • SqlCacheDependencyDao

      public SqlCacheDependencyDao()
  • Method Details

    • store

      public static boolean store(SqlCacheDependency sqlCacheDependency)
      Returns:
      true if changed
    • store

      public static int store(Collection<SqlCacheDependency> sqlCacheDependencies, Connection connection, boolean isInsert, boolean retryBatchStoreFailures, boolean ignoreRetriedBatchStoreFailures)
      Returns:
      number of changes
    • retrieveByInternalId

      public static SqlCacheDependency retrieveByInternalId(Long id)
      select grouper sync by id
      Parameters:
      id -
      Returns:
      the sql cache dependency
    • retrieveAllByDependentId

      public static List<SqlCacheDependency> retrieveAllByDependentId(Long dependentInternalId)
      select all the dependencies that this thing depends on
      Parameters:
      dependentInternalId -
      Returns:
      the sql cache dependency
    • retrieveByDepTypeInternalIdOwnerInternalIdDependentInternalId

      public static SqlCacheDependency retrieveByDepTypeInternalIdOwnerInternalIdDependentInternalId(Long depTypeInternalId, Long ownerInternalId, Long dependentInternalId)
      select cache dependency by dependency type, owner, and dependent
      Parameters:
      depTypeInternalId -
      ownerInternalId -
      dependentInternalId -
      Returns:
      the sql cache dependency
    • retrieveByDepTypeInternalIdAndOwnerInternalIdsDependentInternalIds

      public static Map<MultiKey,SqlCacheDependency> retrieveByDepTypeInternalIdAndOwnerInternalIdsDependentInternalIds(Long depTypeInternalId, Collection<MultiKey> ownerInternalIdsDependentInternalIds)
      select cache dependencies by dependency type and multi key of owner and dependent internal ids
      Parameters:
      depTypeInternalId -
      ownerInternalIdsDependentInternalIds -
      Returns:
      cache dependencies
    • retrieveByDependencyTypeInternalId

      public static List<SqlCacheDependency> retrieveByDependencyTypeInternalId(Long dependencyTypeInternalId)
      select by dependency type internal id
      Parameters:
      dependencyTypeInternalId -
      Returns:
      the sql cache dependencies
    • delete

      public static void delete(SqlCacheDependency sqlCacheDependency)
      Parameters:
      sqlCacheDependency -
    • retrieveByDepTypeInternalIdAndOwnerCacheInternalIds

      public static Map<Long,Set<Long>> retrieveByDepTypeInternalIdAndOwnerCacheInternalIds(Long depTypeInternalId, Collection<Long> ownerGroupCacheInternalIds)
      owner is the group mentioned in the abac script. dependant is the overall scripted group. select dependant groups by dependency type and owner internal ids
      Parameters:
      depTypeInternalId -
      ownerGroupCacheInternalIds -
      Returns:
      a map of the owners, to the internal ids of the things dependent on the owner (e.g. groups that have the scripts)
    • retrieveByDepTypeInternalIdAndDependentCacheInternalIds

      public static List<SqlCacheDependency> retrieveByDepTypeInternalIdAndDependentCacheInternalIds(Long depTypeInternalId, Collection<Long> dependentGroupCacheInternalIds)
      owner is the group mentioned in the abac script. dependant is the overall scripted group. select dependant groups by dependency type and owner internal ids
      Parameters:
      depTypeInternalId -
      dependentGroupCacheInternalIds -
      Returns:
      a map of the owners, to the internal ids of the things dependent on the owner (e.g. groups that have the scripts)