java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncLog
All Implemented Interfaces:
GcDbVersionable, GcSqlAssignPrimaryKey

public class GcGrouperSyncLog extends Object implements GcSqlAssignPrimaryKey, GcDbVersionable
last log for this sync that affected this group/member/membership/job
  • Constructor Details

    • GcGrouperSyncLog

      public GcGrouperSyncLog()
  • Method Details

    • dbVersionReset

      public void dbVersionReset()
      take a snapshot of the data since this is what is in the db
      Specified by:
      dbVersionReset in interface GcDbVersionable
    • dbVersionDifferent

      public boolean dbVersionDifferent()
      if we need to update this object
      Specified by:
      dbVersionDifferent in interface GcDbVersionable
      Returns:
      if needs to update this object
    • dbVersionDelete

      public void dbVersionDelete()
      db version
      Specified by:
      dbVersionDelete in interface GcDbVersionable
    • clone

      public GcGrouperSyncLog clone()
      deep clone the fields in this object
      Overrides:
      clone in class Object
    • equalsDeep

      public boolean equalsDeep(Object obj)
    • reset

      public static void reset()
      delete all data if table is here
    • main

      public static void main(String[] args)
      Parameters:
      args -
    • getLastUpdated

      public Timestamp getLastUpdated()
      when this record was last updated
      Returns:
      when last updated
    • setLastUpdated

      public void setLastUpdated(Timestamp lastUpdated1)
      when this record was last updated
      Parameters:
      lastUpdated1 -
    • getId

      public String getId()
      uuid of this record in this table
      Returns:
      id
    • setId

      public void setId(String id1)
      uuid of this record in this table
      Parameters:
      id1 -
    • getGrouperSyncId

      public String getGrouperSyncId()
      foreign key to grouper_sync_group table
      Returns:
      group id
    • setGrouperSyncId

      public void setGrouperSyncId(String grouperSyncId1)
      foreign key to grouper_sync_group table
      Parameters:
      grouperSyncId1 -
    • getGrouperSyncOwnerId

      public String getGrouperSyncOwnerId()
      either the grouper_sync_member_id or the grouper_sync_group_id or grouper_sync_job_id (if log for job wide)
      Returns:
      owner id
    • setGrouperSyncOwnerId

      public void setGrouperSyncOwnerId(String grouperSyncOwnerId1)
      either the grouper_sync_member_id or the grouper_sync_group_id or grouper_sync_job_id (if log for job wide)
      Parameters:
      grouperSyncOwnerId1 -
    • getStatusDb

      public String getStatusDb()
      SUCCESS, ERROR, WARNING, CONFIG_ERROR
      Returns:
      status
    • setStatusDb

      public void setStatusDb(String status1)
      SUCCESS, ERROR, WARNING, CONFIG_ERROR
      Parameters:
      status1 -
    • getStatus

      public GcGrouperSyncLogState getStatus()
      Returns:
      the state or null if not there
    • setStatus

      public void setStatus(GcGrouperSyncLogState gcGrouperSyncLogState)
      Parameters:
      gcGrouperSyncLogState -
    • getSyncTimestampStart

      public Timestamp getSyncTimestampStart()
      when the last sync started
      Returns:
    • setSyncTimestampStart

      public void setSyncTimestampStart(Timestamp syncTimestampStart1)
      when the last sync started
      Parameters:
      syncTimestampStart1 -
    • getSyncTimestamp

      public Timestamp getSyncTimestamp()
      when the last sync ended
      Returns:
      timestamp
    • setSyncTimestamp

      public void setSyncTimestamp(Timestamp syncTimestamp1)
      when the last sync ended
      Parameters:
      syncTimestamp1 -
    • getDescription

      public String getDescription()
      description of last sync
      Returns:
      description
    • setDescription

      public void setDescription(String description1)
      description of last sync
      Parameters:
      description1 -
    • getDescriptionClob

      public String getDescriptionClob()
      description of last sync when it's too large to store in description field
      Returns:
      descriptionClob
    • setDescriptionClob

      public void setDescriptionClob(String descriptionClob)
      description of last sync when it's too large to store in description field
      Parameters:
      descriptionClob -
    • getDescriptionBytes

      public Long getDescriptionBytes()
      size of description/descriptionClob in bytes
      Returns:
      descriptionBytes
    • setDescriptionBytes

      public void setDescriptionBytes(Long descriptionBytes)
      size of description/descriptionClob in bytes
      Parameters:
      descriptionBytes -
    • getDescriptionOrDescriptionClob

      public String getDescriptionOrDescriptionClob()
      retrieve description. based on the size, it will be retrieved from description or descriptionClob
      Returns:
    • setDescriptionToSave

      public void setDescriptionToSave(String description)
      set description to save. based on the size, it will be saved in description or descriptionClob
      Parameters:
      description -
    • getRecordsProcessed

      public Integer getRecordsProcessed()
      how many records were processed the last time this sync ran
      Returns:
      records processed
    • setRecordsProcessed

      public void setRecordsProcessed(Integer recordsProcessed1)
      how many records were processed the last time this sync ran
      Parameters:
      recordsProcessed1 -
    • getRecordsChanged

      public Integer getRecordsChanged()
      how many records were changed the last time this sync ran
      Returns:
      records changed
    • setRecordsChanged

      public void setRecordsChanged(Integer recordsChanged1)
      how many records were changed the last time this sync ran
      Parameters:
      recordsChanged1 -
    • getJobTookMillis

      public Integer getJobTookMillis()
      how many millis it took to run this job
      Returns:
      job millis
    • setJobTookMillis

      public void setJobTookMillis(Integer jobTookMillis)
      how many millis it took to run this job
      Parameters:
      jobTookMillis -
    • getServer

      public String getServer()
      which server this occurred on
      Returns:
      server
    • setServer

      public void setServer(String server1)
      which server this occurred on
      Parameters:
      server1 -
    • getConnectionName

      public String getConnectionName()
      connection name or null for default
      Returns:
      connection name
    • setConnectionName

      public void setConnectionName(String connectionName1)
      connection name or null for default
      Parameters:
      connectionName1 -
    • gcSqlAssignNewPrimaryKeyForInsert

      public boolean gcSqlAssignNewPrimaryKeyForInsert()
      Description copied from interface: GcSqlAssignPrimaryKey
      assign a new primary key for insert. return true if assigned (insert) or false if not needed
      Specified by:
      gcSqlAssignNewPrimaryKeyForInsert in interface GcSqlAssignPrimaryKey
    • storePrepare

      public void storePrepare()
      prepare to store
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getGrouperSync

      public GcGrouperSync getGrouperSync()
      Returns:
      gc grouper sync
    • setGrouperSync

      public void setGrouperSync(GcGrouperSync gcGrouperSync)
      Parameters:
      gcGrouperSync -