edu.internet2.middleware.grouper.changeLog
Class ChangeLogConsumer

java.lang.Object
  extended by edu.internet2.middleware.grouper.GrouperAPI
      extended by edu.internet2.middleware.grouper.changeLog.ChangeLogConsumer
All Implemented Interfaces:
HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperUtil.FieldValuable, Serializable, org.hibernate.classic.Lifecycle

public class ChangeLogConsumer
extends GrouperAPI
implements Hib3GrouperVersioned

changeLog consumer

See Also:
Serialized Form

Field Summary
static String COLUMN_CREATED_ON
          column
static String COLUMN_HIBERNATE_VERSION_NUMBER
          column
static String COLUMN_ID
          column
static String COLUMN_LAST_SEQUENCE_PROCESSED
          column
static String COLUMN_LAST_UPDATED
          column
static String COLUMN_NAME
          column
static String FIELD_CREATED_ON_DB
          constant for field name for: createdOnDb
static String FIELD_ID
          constant for field name for: id
static String FIELD_LAST_SEQUENCE_PROCESSED
          constant for field name for: lastSequenceProcessed
static String FIELD_LAST_UPDATED_DB
          constant for field name for: lastUpdatedDb
static String FIELD_NAME
          constant for field name for: name
static String TABLE_GROUPER_CHANGE_LOG_CONSUMER
          name of the grouper changeLog consumer table in the db
 
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
ChangeLogConsumer()
          empty constructor
 
Method Summary
 GrouperAPI clone()
          deep clone the fields in this object
 boolean equalsDeep(ChangeLogConsumer changeLogType)
          see if one changeLog type is the same as another (not looking at last update, id, etc)
 Timestamp getCreatedOn()
          when created
 Long getCreatedOnDb()
          when created
 String getId()
          uuid of row
 Long getLastSequenceProcessed()
          what is the number of the last sequence processed
 Timestamp getLastUpdated()
          when last updated
 Long getLastUpdatedDb()
          when last updated
 String getName()
          name of this consumer
 void onPreSave(HibernateSession hibernateSession)
          before a save (insert) occurs
 void onPreUpdate(HibernateSession hibernateSession)
          before an update occurs
 void setCreatedOn(Timestamp createdOn1)
          when created
 void setCreatedOnDb(Long createdOn1)
          when created
 void setId(String id1)
          uuid of row
 void setLastSequenceProcessed(Long lastSequenceProcessed1)
          what is the number of the last sequence processed
 void setLastUpdated(Timestamp lastUpdated1)
          when last updated
 void setLastUpdatedDb(Long lastUpdated1)
          when last updated
 void setName(String name1)
          name of this consumer
 String toString()
           
 String toStringDeep()
          the string repre
 void truncate()
          make sure this object will fit in the DB
 
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COLUMN_ID

public static final String COLUMN_ID
column

See Also:
Constant Field Values

COLUMN_HIBERNATE_VERSION_NUMBER

public static final String COLUMN_HIBERNATE_VERSION_NUMBER
column

See Also:
Constant Field Values

COLUMN_LAST_SEQUENCE_PROCESSED

public static final String COLUMN_LAST_SEQUENCE_PROCESSED
column

See Also:
Constant Field Values

COLUMN_NAME

public static final String COLUMN_NAME
column

See Also:
Constant Field Values

COLUMN_CREATED_ON

public static final String COLUMN_CREATED_ON
column

See Also:
Constant Field Values

COLUMN_LAST_UPDATED

public static final String COLUMN_LAST_UPDATED
column

See Also:
Constant Field Values

FIELD_CREATED_ON_DB

public static final String FIELD_CREATED_ON_DB
constant for field name for: createdOnDb

See Also:
Constant Field Values

FIELD_ID

public static final String FIELD_ID
constant for field name for: id

See Also:
Constant Field Values

FIELD_LAST_SEQUENCE_PROCESSED

public static final String FIELD_LAST_SEQUENCE_PROCESSED
constant for field name for: lastSequenceProcessed

See Also:
Constant Field Values

FIELD_LAST_UPDATED_DB

public static final String FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb

See Also:
Constant Field Values

FIELD_NAME

public static final String FIELD_NAME
constant for field name for: name

See Also:
Constant Field Values

TABLE_GROUPER_CHANGE_LOG_CONSUMER

public static final String TABLE_GROUPER_CHANGE_LOG_CONSUMER
name of the grouper changeLog consumer table in the db

See Also:
Constant Field Values
Constructor Detail

ChangeLogConsumer

public ChangeLogConsumer()
empty constructor

Method Detail

equalsDeep

public boolean equalsDeep(ChangeLogConsumer changeLogType)
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

public String toStringDeep()
the string repre

Returns:
string

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getId

public String getId()
uuid of row

Returns:
id

setId

public void setId(String id1)
uuid of row

Parameters:
id1 -

getLastUpdated

public Timestamp getLastUpdated()
when last updated

Returns:
timestamp

getLastUpdatedDb

public Long getLastUpdatedDb()
when last updated

Returns:
timestamp

setLastUpdated

public void setLastUpdated(Timestamp lastUpdated1)
when last updated

Parameters:
lastUpdated1 -

setLastUpdatedDb

public void setLastUpdatedDb(Long lastUpdated1)
when last updated

Parameters:
lastUpdated1 -

getCreatedOn

public Timestamp getCreatedOn()
when created

Returns:
timestamp

getCreatedOnDb

public Long getCreatedOnDb()
when created

Returns:
timestamp

setCreatedOn

public void setCreatedOn(Timestamp createdOn1)
when created

Parameters:
createdOn1 -

setCreatedOnDb

public void setCreatedOnDb(Long createdOn1)
when created

Parameters:
createdOn1 -

onPreSave

public void onPreSave(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before a save (insert) occurs

Specified by:
onPreSave in interface HibGrouperLifecycle
Overrides:
onPreSave in class GrouperAPI
See Also:
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPreUpdate

public void onPreUpdate(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before an update occurs

Specified by:
onPreUpdate in interface HibGrouperLifecycle
Overrides:
onPreUpdate in class GrouperAPI
See Also:
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)

truncate

public void truncate()
make sure this object will fit in the DB


clone

public GrouperAPI clone()
Description copied from class: GrouperAPI
deep clone the fields in this object

Specified by:
clone in interface GrouperCloneable
Specified by:
clone in class GrouperAPI
Returns:
the clone of the object
See Also:
GrouperAPI.clone()

getName

public String getName()
name of this consumer

Returns:
name

setName

public void setName(String name1)
name of this consumer

Parameters:
name1 -

getLastSequenceProcessed

public Long getLastSequenceProcessed()
what is the number of the last sequence processed

Returns:
the number

setLastSequenceProcessed

public void setLastSequenceProcessed(Long lastSequenceProcessed1)
what is the number of the last sequence processed

Parameters:
lastSequenceProcessed1 -