Class GcGrouperSyncJobDao
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncJobDao
dao for jobs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
internal_jobCacheDelete
(GcGrouperSyncJob gcGrouperSyncJob) select grouper sync group by sync id and group idinternal_jobRetrieveFromDbById
(String gcGrouperSyncJobId) select grouper sync job by gcGrouperSyncJobId idinternal_jobRetrieveFromDbByIds
(Collection<String> gcGrouperSyncJobIds) select grouper sync job by jobIdsinternal_jobRetrieveFromDbBySyncType
(String syncType) select grouper sync job by sync typevoid
internal_jobStore
(GcGrouperSyncJob gcGrouperSyncJob) store batch, generally call this from store all objects from GcGrouperSyncint
internal_jobStore
(Collection<GcGrouperSyncJob> gcGrouperSyncJobs) store batch, generally call this from store all objects from GcGrouperSyncint
jobCreateBySyncType
(String syncType) select grouper sync jobs by job idjobCreateLog
(GcGrouperSyncJob gcGrouperSyncJob) int
jobDelete
(GcGrouperSyncJob gcGrouperSyncJob, boolean deleteLogs) delete sync jobint
jobDelete
(Collection<GcGrouperSyncJob> gcGrouperSyncJobs, boolean deleteLogs) delete batchint
jobDeleteAll
(boolean deleteLogs) delete all jobx for a syncselect grouper sync job by sync id and sync typejobRetrieveById
(String gcGrouperSyncJobId) select grouper sync job by job idjobRetrieveByIds
(Collection<String> gcGrouperSyncJobIds) select grouper sync job by job idsjobRetrieveBySyncType
(String syncType) select grouper sync job by sync typejobRetrieveOrCreateBySyncType
(String syncType) select grouper sync group by group id.void
setGcGrouperSync
(GcGrouperSync gcGrouperSync)
-
Constructor Details
-
GcGrouperSyncJobDao
public GcGrouperSyncJobDao()
-
-
Method Details
-
jobCreateBySyncType
select grouper sync jobs by job id- Parameters:
connectionName
-syncType
-- Returns:
- the job
-
jobDelete
delete batch- Parameters:
gcGrouperSyncJobs
-deleteLogs
- true if should delete logs- Returns:
- rows deleted (jobs and logs)
-
jobDelete
delete sync job- Parameters:
gcGrouperSyncJob
-- Returns:
- rows deleted (jobs and logs)
-
jobDeleteAll
public int jobDeleteAll(boolean deleteLogs) delete all jobx for a sync- Parameters:
deleteLogs
- true if should delete logs associated with this job- Returns:
- the syncs
-
jobRetrieveAll
select grouper sync job by sync id and sync type- Parameters:
grouperSyncId
-provisionerName
-- Returns:
- the syncs
-
jobRetrieveBySyncType
select grouper sync job by sync type- Parameters:
connectionName
-syncType
-- Returns:
- the job
-
jobRetrieveById
select grouper sync job by job id- Parameters:
gcGrouperSyncJobId
-- Returns:
- the job
-
jobRetrieveByIds
select grouper sync job by job ids- Parameters:
gcGrouperSyncJobId
-- Returns:
- map of jobIds to gcGrouperSyncJobs
-
internal_jobRetrieveFromDbByIds
public Map<String,GcGrouperSyncJob> internal_jobRetrieveFromDbByIds(Collection<String> gcGrouperSyncJobIds) select grouper sync job by jobIds- Parameters:
gcGrouperSyncJobIds
-- Returns:
- the jobId to syncGroup map
-
jobRetrieveOrCreateBySyncType
select grouper sync group by group id. Note: this doesnt store to db yet, you do that at the end- Parameters:
connectionName
-syncType
-- Returns:
- the group
-
jobCreateLog
- Parameters:
gcGrouperSyncJob
-- Returns:
- log
-
internal_jobCacheDelete
- Parameters:
gcGrouperSyncJob
-
-
internal_jobRetrieveFromDbAll
select grouper sync group by sync id and group id- Parameters:
grouperSyncId
-provisionerName
-- Returns:
- the syncs
-
internal_jobRetrieveFromDbBySyncType
select grouper sync job by sync type- Parameters:
connectionName
-syncType
-- Returns:
- the group
-
internal_jobRetrieveFromDbById
select grouper sync job by gcGrouperSyncJobId id- Parameters:
gcGrouperSyncJobId
-- Returns:
- the gcGrouperSyncJob
-
getGcGrouperSync
- Returns:
-
setGcGrouperSync
- Parameters:
gcGrouperSync
-
-
internal_jobStoreAll
public int internal_jobStoreAll()- Returns:
- number of groups stored
-
internal_jobStore
store batch, generally call this from store all objects from GcGrouperSync- Parameters:
gcGrouperSyncJobs
-- Returns:
- number of changes
-
internal_jobStore
store batch, generally call this from store all objects from GcGrouperSync- Parameters:
gcGrouperSyncJobs
-
-