Class ChangeLogConsumer
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.changeLog.ChangeLogConsumer
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
changeLog consumer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
constant for field name for: createdOnDbstatic final String
constant for field name for: idstatic final String
constant for field name for: lastSequenceProcessedstatic final String
constant for field name for: lastUpdatedDbstatic final String
constant for field name for: namestatic final String
name of the grouper changeLog consumer table in the dbFields inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
deep clone the fields in this objectboolean
equalsDeep
(ChangeLogConsumer changeLogType) see if one changeLog type is the same as another (not looking at last update, id, etc)when createdwhen createdgetId()
uuid of rowwhat is the number of the last sequence processedwhen last updatedwhen last updatedgetName()
name of this consumervoid
onPreSave
(HibernateSession hibernateSession) before a save (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursvoid
setCreatedOn
(Timestamp createdOn1) when createdvoid
setCreatedOnDb
(Long createdOn1) when createdvoid
uuid of rowvoid
setLastSequenceProcessed
(Long lastSequenceProcessed1) what is the number of the last sequence processedvoid
setLastUpdated
(Timestamp lastUpdated1) when last updatedvoid
setLastUpdatedDb
(Long lastUpdated1) when last updatedvoid
name of this consumertoString()
the string reprevoid
truncate()
make sure this object will fit in the DBMethods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
COLUMN_ID
column- See Also:
-
COLUMN_HIBERNATE_VERSION_NUMBER
column- See Also:
-
COLUMN_LAST_SEQUENCE_PROCESSED
column- See Also:
-
COLUMN_NAME
column- See Also:
-
COLUMN_CREATED_ON
column- See Also:
-
COLUMN_LAST_UPDATED
column- See Also:
-
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_LAST_SEQUENCE_PROCESSED
constant for field name for: lastSequenceProcessed- See Also:
-
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb- See Also:
-
FIELD_NAME
constant for field name for: name- See Also:
-
TABLE_GROUPER_CHANGE_LOG_CONSUMER
name of the grouper changeLog consumer table in the db- See Also:
-
-
Constructor Details
-
ChangeLogConsumer
public ChangeLogConsumer()empty constructor
-
-
Method Details
-
equalsDeep
see if one changeLog type is the same as another (not looking at last update, id, etc)- Parameters:
changeLogType
-- Returns:
- true if equals, false if not
-
toStringDeep
the string repre- Returns:
- string
-
toString
-
getId
uuid of row- Returns:
- id
-
setId
uuid of row- Parameters:
id1
-
-
getLastUpdated
when last updated- Returns:
- timestamp
-
getLastUpdatedDb
when last updated- Returns:
- timestamp
-
setLastUpdated
when last updated- Parameters:
lastUpdated1
-
-
setLastUpdatedDb
when last updated- Parameters:
lastUpdated1
-
-
getCreatedOn
when created- Returns:
- timestamp
-
getCreatedOnDb
when created- Returns:
- timestamp
-
setCreatedOn
when created- Parameters:
createdOn1
-
-
setCreatedOnDb
when created- Parameters:
createdOn1
-
-
onPreSave
Description copied from interface:HibGrouperLifecycle
before a save (insert) occurs- Specified by:
onPreSave
in interfaceHibGrouperLifecycle
- Overrides:
onPreSave
in classGrouperAPI
- See Also:
-
onPreUpdate
Description copied from interface:HibGrouperLifecycle
before an update occurs- Specified by:
onPreUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPreUpdate
in classGrouperAPI
- See Also:
-
truncate
public void truncate()make sure this object will fit in the DB -
clone
Description copied from class:GrouperAPI
deep clone the fields in this object- Specified by:
clone
in interfaceGrouperCloneable
- Specified by:
clone
in classGrouperAPI
- Returns:
- the clone of the object
- See Also:
-
getName
name of this consumer- Returns:
- name
-
setName
name of this consumer- Parameters:
name1
-
-
getLastSequenceProcessed
what is the number of the last sequence processed- Returns:
- the number
-
setLastSequenceProcessed
what is the number of the last sequence processed- Parameters:
lastSequenceProcessed1
-
-