Class SqlCacheMembership

java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheMembership
All Implemented Interfaces:
GcDbVersionable

public class SqlCacheMembership extends Object implements GcDbVersionable
  • Field Details

    • TABLE_GROUPER_SQL_CACHE_MEMBERSHIP

      public static final String TABLE_GROUPER_SQL_CACHE_MEMBERSHIP
      table name for sql cache
      See Also:
    • COLUMN_FLATTENED_ADD_TIMESTAMP

      public static final String COLUMN_FLATTENED_ADD_TIMESTAMP
      when this member was last added to this group after they werent a member before
      See Also:
    • COLUMN_MEMBER_INTERNAL_ID

      public static final String COLUMN_MEMBER_INTERNAL_ID
      internal id of the member of this group/list
      See Also:
    • COLUMN_SQL_CACHE_GROUP_INTERNAL_ID

      public static final String COLUMN_SQL_CACHE_GROUP_INTERNAL_ID
      refers to which group and list this membership refers to
      See Also:
  • Constructor Details

    • SqlCacheMembership

      public SqlCacheMembership()
  • 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
    • storePrepare

      public void storePrepare()
    • clone

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

      public boolean equalsDeep(Object obj)
    • getFlattenedAddTimestamp

      public Long getFlattenedAddTimestamp()
      when this member was last added to this group in microseconds after they werent a member before
      Returns:
    • setFlattenedAddTimestamp

      public void setFlattenedAddTimestamp(Long flattenedAddTimestamp)
      when this member was last added to this group in microseconds after they werent a member before
      Parameters:
      flattenedAddTimestamp -
    • getMemberInternalId

      public Long getMemberInternalId()
      internal id of the member of this group/list
      Returns:
    • setMemberInternalId

      public void setMemberInternalId(Long memberInternalId)
      internal id of the member of this group/list
      Parameters:
      memberInternalId -
    • getSqlCacheGroupInternalId

      public Long getSqlCacheGroupInternalId()
      refers to which group and list this membership refers to
      Returns:
    • setSqlCacheGroupInternalId

      public void setSqlCacheGroupInternalId(Long sqlCacheGroupInternalId)
      refers to which group and list this membership refers to
      Parameters:
      sqlCacheGroupInternalId -
    • getDbVersion

      public SqlCacheMembership getDbVersion()
    • toString

      public String toString()
      Overrides:
      toString in class Object