Class GcGrouperSyncJobDao

java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncJobDao

public class GcGrouperSyncJobDao extends Object
dao for jobs
  • Constructor Details

    • GcGrouperSyncJobDao

      public GcGrouperSyncJobDao()
  • Method Details

    • jobCreateBySyncType

      public GcGrouperSyncJob jobCreateBySyncType(String syncType)
      select grouper sync jobs by job id
      Parameters:
      connectionName -
      syncType -
      Returns:
      the job
    • jobDelete

      public int jobDelete(Collection<GcGrouperSyncJob> gcGrouperSyncJobs, boolean deleteLogs)
      delete batch
      Parameters:
      gcGrouperSyncJobs -
      deleteLogs - true if should delete logs
      Returns:
      rows deleted (jobs and logs)
    • jobDelete

      public int jobDelete(GcGrouperSyncJob gcGrouperSyncJob, boolean deleteLogs)
      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

      public List<GcGrouperSyncJob> jobRetrieveAll()
      select grouper sync job by sync id and sync type
      Parameters:
      grouperSyncId -
      provisionerName -
      Returns:
      the syncs
    • jobRetrieveBySyncType

      public GcGrouperSyncJob jobRetrieveBySyncType(String syncType)
      select grouper sync job by sync type
      Parameters:
      connectionName -
      syncType -
      Returns:
      the job
    • jobRetrieveById

      public GcGrouperSyncJob jobRetrieveById(String gcGrouperSyncJobId)
      select grouper sync job by job id
      Parameters:
      gcGrouperSyncJobId -
      Returns:
      the job
    • jobRetrieveByIds

      public Map<String,GcGrouperSyncJob> jobRetrieveByIds(Collection<String> gcGrouperSyncJobIds)
      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

      public GcGrouperSyncJob jobRetrieveOrCreateBySyncType(String syncType)
      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

      public GcGrouperSyncLog jobCreateLog(GcGrouperSyncJob gcGrouperSyncJob)
      Parameters:
      gcGrouperSyncJob -
      Returns:
      log
    • internal_jobCacheDelete

      public void internal_jobCacheDelete(GcGrouperSyncJob gcGrouperSyncJob)
      Parameters:
      gcGrouperSyncJob -
    • internal_jobRetrieveFromDbAll

      public List<GcGrouperSyncJob> internal_jobRetrieveFromDbAll()
      select grouper sync group by sync id and group id
      Parameters:
      grouperSyncId -
      provisionerName -
      Returns:
      the syncs
    • internal_jobRetrieveFromDbBySyncType

      public GcGrouperSyncJob internal_jobRetrieveFromDbBySyncType(String syncType)
      select grouper sync job by sync type
      Parameters:
      connectionName -
      syncType -
      Returns:
      the group
    • internal_jobRetrieveFromDbById

      public GcGrouperSyncJob internal_jobRetrieveFromDbById(String gcGrouperSyncJobId)
      select grouper sync job by gcGrouperSyncJobId id
      Parameters:
      gcGrouperSyncJobId -
      Returns:
      the gcGrouperSyncJob
    • getGcGrouperSync

      public GcGrouperSync getGcGrouperSync()
      Returns:
    • setGcGrouperSync

      public void setGcGrouperSync(GcGrouperSync gcGrouperSync)
      Parameters:
      gcGrouperSync -
    • internal_jobStoreAll

      public int internal_jobStoreAll()
      Returns:
      number of groups stored
    • internal_jobStore

      public int internal_jobStore(Collection<GcGrouperSyncJob> gcGrouperSyncJobs)
      store batch, generally call this from store all objects from GcGrouperSync
      Parameters:
      gcGrouperSyncJobs -
      Returns:
      number of changes
    • internal_jobStore

      public void internal_jobStore(GcGrouperSyncJob gcGrouperSyncJob)
      store batch, generally call this from store all objects from GcGrouperSync
      Parameters:
      gcGrouperSyncJobs -