Class SqlCacheDependencyDao
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheDependencyDao
dao for sql cache dependencies
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
delete
(SqlCacheDependency sqlCacheDependency) static SqlCacheDependency
select grouper sync by idstatic Map<MultiKey,
SqlCacheGroup> retrieveByOwnerIdsDependentIdsTypeIds
(Set<MultiKey> ownerIdsDependentIdsTypeIds) static SqlCacheDependency
retrieveOrCreateBySqlCacheDependency
(SqlCacheDependency sqlCacheDependency) retrieve cache group by group name field name or createdstatic Map<MultiKey,
SqlCacheDependency> retrieveOrCreateBySqlCacheDependency
(Collection<SqlCacheDependency> sqlCacheDependencies) retrieve cache group by type id, dependency id, and owner idstatic boolean
store
(SqlCacheDependency sqlCacheDependency) static int
store
(Collection<SqlCacheDependency> sqlCacheDependencies)
-
Constructor Details
-
SqlCacheDependencyDao
public SqlCacheDependencyDao()
-
-
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:
sqlCacheDependency
-
-
retrieveOrCreateBySqlCacheDependency
public static SqlCacheDependency retrieveOrCreateBySqlCacheDependency(SqlCacheDependency sqlCacheDependency) retrieve cache group by group name field name or created- Parameters:
sqlCacheGroups
-
-
retrieveOrCreateBySqlCacheDependency
public static Map<MultiKey,SqlCacheDependency> retrieveOrCreateBySqlCacheDependency(Collection<SqlCacheDependency> sqlCacheDependencies) retrieve cache group by type id, dependency id, and owner id- Parameters:
sqlCacheDependencies
-- Returns:
- owner id, dependent id, type id, and to sql cache dependency
-
retrieveByOwnerIdsDependentIdsTypeIds
public static Map<MultiKey,SqlCacheGroup> retrieveByOwnerIdsDependentIdsTypeIds(Set<MultiKey> ownerIdsDependentIdsTypeIds)
-