Class SqlCacheMembershipHstDao
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheMembershipHstDao
dao for sql cache mship hst
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
insertSqlCacheMembershipHstsIfCacheable
(Collection<MultiKey> membershipsAddedAndDeleted, Connection connection) things to add to sql cache membership history.static int
store
(Collection<SqlCacheMembershipHst> sqlCacheMembershipHsts, Connection connection, boolean isInsert, boolean retryBatchStoreFailures, boolean ignoreRetriedBatchStoreFailures)
-
Constructor Details
-
SqlCacheMembershipHstDao
public SqlCacheMembershipHstDao()
-
-
Method Details
-
store
public static int store(Collection<SqlCacheMembershipHst> sqlCacheMembershipHsts, Connection connection, boolean isInsert, boolean retryBatchStoreFailures, boolean ignoreRetriedBatchStoreFailures) - Parameters:
sqlCacheGroups
-connection
- optionally pass connection to useisInsert
-- Returns:
- number of changes
-
insertSqlCacheMembershipHstsIfCacheable
public static int insertSqlCacheMembershipHstsIfCacheable(Collection<MultiKey> membershipsAddedAndDeleted, Connection connection) things to add to sql cache membership history. 6 fields in multikey: ownerId, fieldName, sourceId, subjectId, startedMicros, endedMicros- Parameters:
membershipsAddedAndDeleted
-connection
- optionally pass connection to use- Returns:
- number of cache membership history inserts
-