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
-
Method Summary
Modifier and TypeMethodDescriptionclone()
deep clone the fields in this objectvoid
db versionboolean
if we need to update this objectvoid
take a snapshot of the data since this is what is in the dbboolean
equalsDeep
(Object obj) boolean
assign 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.foreign 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 void
static void
reset()
delete all data if table is herevoid
setConnectionName
(String connectionName1) connection name or null for defaultvoid
setDescription
(String description1) description of last syncvoid
setDescriptionBytes
(Long descriptionBytes) size of description/descriptionClob in bytesvoid
setDescriptionClob
(String descriptionClob) description of last sync when it's too large to store in description fieldvoid
setDescriptionToSave
(String description) set description to save.void
setGrouperSync
(GcGrouperSync gcGrouperSync) void
setGrouperSyncId
(String grouperSyncId1) foreign key to grouper_sync_group tablevoid
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)void
uuid of this record in this tablevoid
setJobTookMillis
(Integer jobTookMillis) how many millis it took to run this jobvoid
setLastUpdated
(Timestamp lastUpdated1) when this record was last updatedvoid
setRecordsChanged
(Integer recordsChanged1) how many records were changed the last time this sync ranvoid
setRecordsProcessed
(Integer recordsProcessed1) how many records were processed the last time this sync ranvoid
which server this occurred onvoid
setStatus
(GcGrouperSyncLogState gcGrouperSyncLogState) void
setStatusDb
(String status1) SUCCESS, ERROR, WARNING, CONFIG_ERRORvoid
setSyncTimestamp
(Timestamp syncTimestamp1) when the last sync endedvoid
setSyncTimestampStart
(Timestamp syncTimestampStart1) when the last sync startedvoid
prepare 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:
dbVersionReset
in interfaceGcDbVersionable
-
dbVersionDifferent
public boolean dbVersionDifferent()if we need to update this object- Specified by:
dbVersionDifferent
in interfaceGcDbVersionable
- Returns:
- if needs to update this object
-
dbVersionDelete
public void dbVersionDelete()db version- Specified by:
dbVersionDelete
in 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:GcSqlAssignPrimaryKey
assign a new primary key for insert. return true if assigned (insert) or false if not needed- Specified by:
gcSqlAssignNewPrimaryKeyForInsert
in interfaceGcSqlAssignPrimaryKey
-
storePrepare
public void storePrepare()prepare to store -
toString
-
getGrouperSync
- Returns:
- gc grouper sync
-
setGrouperSync
- Parameters:
gcGrouperSync
-
-