Class GcGrouperSyncLog
java.lang.Object
edu.internet2.middleware.grouperClient.jdbc.tableSync.GcGrouperSyncLog
- All Implemented Interfaces:
GcDbVersionable,GcSqlAssignPrimaryKey
last log for this sync that affected this group/member/membership/job
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()deep clone the fields in this objectvoiddb versionbooleanif we need to update this objectvoidtake a snapshot of the data since this is what is in the dbbooleanequalsDeep(Object obj) booleanassign a new primary key for insert.connection name or null for defaultdescription of last syncsize of description/descriptionClob in bytesdescription of last sync when it's too large to store in description fieldretrieve description. based on the size, it will be retrieved from description or descriptionClobforeign key to grouper_sync_group tableeither the grouper_sync_member_id or the grouper_sync_group_id or grouper_sync_job_id (if log for job wide)getId()uuid of this record in this tablehow many millis it took to run this jobwhen this record was last updatedhow many records were changed the last time this sync ranhow many records were processed the last time this sync ranwhich server this occurred onSUCCESS, ERROR, WARNING, CONFIG_ERRORwhen the last sync endedwhen the last sync startedstatic voidstatic voidreset()delete all data if table is herevoidsetConnectionName(String connectionName1) connection name or null for defaultvoidsetDescription(String description1) description of last syncvoidsetDescriptionBytes(Long descriptionBytes) size of description/descriptionClob in bytesvoidsetDescriptionClob(String descriptionClob) description of last sync when it's too large to store in description fieldvoidsetDescriptionToSave(String description) set description to save. based on the size, it will be saved in description or descriptionClobvoidsetGrouperSync(GcGrouperSync gcGrouperSync) voidsetGrouperSyncId(String grouperSyncId1) foreign key to grouper_sync_group tablevoidsetGrouperSyncOwnerId(String grouperSyncOwnerId1) either the grouper_sync_member_id or the grouper_sync_group_id or grouper_sync_job_id (if log for job wide)voiduuid of this record in this tablevoidsetJobTookMillis(Integer jobTookMillis) how many millis it took to run this jobvoidsetLastUpdated(Timestamp lastUpdated1) when this record was last updatedvoidsetRecordsChanged(Integer recordsChanged1) how many records were changed the last time this sync ranvoidsetRecordsProcessed(Integer recordsProcessed1) how many records were processed the last time this sync ranvoidwhich server this occurred onvoidsetStatus(GcGrouperSyncLogState gcGrouperSyncLogState) voidsetStatusDb(String status1) SUCCESS, ERROR, WARNING, CONFIG_ERRORvoidsetSyncTimestamp(Timestamp syncTimestamp1) when the last sync endedvoidsetSyncTimestampStart(Timestamp syncTimestampStart1) when the last sync startedvoidprepare to storetoString()
-
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:
dbVersionResetin interfaceGcDbVersionable
-
dbVersionDifferent
public boolean dbVersionDifferent()if we need to update this object- Specified by:
dbVersionDifferentin interfaceGcDbVersionable- Returns:
- if needs to update this object
-
dbVersionDelete
public void dbVersionDelete()db version- Specified by:
dbVersionDeletein interfaceGcDbVersionable
-
clone
deep clone the fields in this object -
equalsDeep
-
reset
public static void reset()delete all data if table is here -
main
- Parameters:
args-
-
getLastUpdated
when this record was last updated- Returns:
- when last updated
-
setLastUpdated
when this record was last updated- Parameters:
lastUpdated1-
-
getId
uuid of this record in this table- Returns:
- id
-
setId
uuid of this record in this table- Parameters:
id1-
-
getGrouperSyncId
foreign key to grouper_sync_group table- Returns:
- group id
-
setGrouperSyncId
foreign key to grouper_sync_group table- Parameters:
grouperSyncId1-
-
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
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
SUCCESS, ERROR, WARNING, CONFIG_ERROR- Returns:
- status
-
setStatusDb
SUCCESS, ERROR, WARNING, CONFIG_ERROR- Parameters:
status1-
-
getStatus
- Returns:
- the state or null if not there
-
setStatus
- Parameters:
gcGrouperSyncLogState-
-
getSyncTimestampStart
when the last sync started- Returns:
-
setSyncTimestampStart
when the last sync started- Parameters:
syncTimestampStart1-
-
getSyncTimestamp
when the last sync ended- Returns:
- timestamp
-
setSyncTimestamp
when the last sync ended- Parameters:
syncTimestamp1-
-
getDescription
description of last sync- Returns:
- description
-
setDescription
description of last sync- Parameters:
description1-
-
getDescriptionClob
description of last sync when it's too large to store in description field- Returns:
- descriptionClob
-
setDescriptionClob
description of last sync when it's too large to store in description field- Parameters:
descriptionClob-
-
getDescriptionBytes
size of description/descriptionClob in bytes- Returns:
- descriptionBytes
-
setDescriptionBytes
size of description/descriptionClob in bytes- Parameters:
descriptionBytes-
-
getDescriptionOrDescriptionClob
retrieve description. based on the size, it will be retrieved from description or descriptionClob- Returns:
-
setDescriptionToSave
set description to save. based on the size, it will be saved in description or descriptionClob- Parameters:
description-
-
getRecordsProcessed
how many records were processed the last time this sync ran- Returns:
- records processed
-
setRecordsProcessed
how many records were processed the last time this sync ran- Parameters:
recordsProcessed1-
-
getRecordsChanged
how many records were changed the last time this sync ran- Returns:
- records changed
-
setRecordsChanged
how many records were changed the last time this sync ran- Parameters:
recordsChanged1-
-
getJobTookMillis
how many millis it took to run this job- Returns:
- job millis
-
setJobTookMillis
how many millis it took to run this job- Parameters:
jobTookMillis-
-
getServer
which server this occurred on- Returns:
- server
-
setServer
which server this occurred on- Parameters:
server1-
-
getConnectionName
connection name or null for default- Returns:
- connection name
-
setConnectionName
connection name or null for default- Parameters:
connectionName1-
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()Description copied from interface:GcSqlAssignPrimaryKeyassign a new primary key for insert. return true if assigned (insert) or false if not needed- Specified by:
gcSqlAssignNewPrimaryKeyForInsertin interfaceGcSqlAssignPrimaryKey
-
storePrepare
public void storePrepare()prepare to store -
toString
-
getGrouperSync
- Returns:
- gc grouper sync
-
setGrouperSync
- Parameters:
gcGrouperSync-
-