Class SqlCacheDependencyDao
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheDependencyDao
dao for sql cache dependencies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcountGroupUsageInOtherAbacs(Group group) static voiddelete(SqlCacheDependency sqlCacheDependency) static List<SqlCacheDependency>retrieveAllByDependentId(Long dependentInternalId) select all the dependencies that this thing depends onstatic List<SqlCacheDependency>retrieveByDependencyTypeInternalId(Long dependencyTypeInternalId) select by dependency type internal idstatic List<SqlCacheDependency>retrieveByDepTypeInternalIdAndDependentCacheInternalIds(Long depTypeInternalId, Collection<Long> dependentGroupCacheInternalIds) owner is the group mentioned in the abac script.retrieveByDepTypeInternalIdAndOwnerCacheInternalIds(Long depTypeInternalId, Collection<Long> ownerGroupCacheInternalIds) owner is the group mentioned in the abac script.static Map<MultiKey,SqlCacheDependency> retrieveByDepTypeInternalIdAndOwnerInternalIdsDependentInternalIds(Long depTypeInternalId, Collection<MultiKey> ownerInternalIdsDependentInternalIds) select cache dependencies by dependency type and multi key of owner and dependent internal idsstatic SqlCacheDependencyretrieveByDepTypeInternalIdOwnerInternalIdDependentInternalId(Long depTypeInternalId, Long ownerInternalId, Long dependentInternalId) select cache dependency by dependency type, owner, and dependentstatic SqlCacheDependencyselect grouper sync by idstatic booleanstore(SqlCacheDependency sqlCacheDependency) static intstore(Collection<SqlCacheDependency> sqlCacheDependencies, Connection connection, boolean isInsert, boolean retryBatchStoreFailures, boolean ignoreRetriedBatchStoreFailures)
-
Constructor Details
-
SqlCacheDependencyDao
public SqlCacheDependencyDao()
-
-
Method Details
-
countGroupUsageInOtherAbacs
-
retrieveGroupIdsForDependentGroupUsage
-
store
- 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
select grouper sync by id- Parameters:
id-- Returns:
- the sql cache dependency
-
retrieveAllByDependentId
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
- 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)
-