Class SqlCacheMembership

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

public class SqlCacheMembership extends Object implements GcSqlAssignPrimaryKey, 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_CREATED_ON

      public static final String COLUMN_CREATED_ON
      created on col in db
      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_INTERNAL_ID

      public static final String COLUMN_INTERNAL_ID
      internal id on col in db
      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)
    • getInternalId

      public long getInternalId()
      internal integer id
      Returns:
    • setInternalId

      public void setInternalId(long internalId)
      internal integer id
      Parameters:
      internalId -
    • gcSqlAssignNewPrimaryKeyForInsert

      public boolean gcSqlAssignNewPrimaryKeyForInsert()
      Specified by:
      gcSqlAssignNewPrimaryKeyForInsert in interface GcSqlAssignPrimaryKey
    • getFlattenedAddTimestamp

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

      public void setFlattenedAddTimestamp(Timestamp flattenedAddTimestamp)
      when this member was last added to this group 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 -
    • getCreatedOn

      public Timestamp getCreatedOn()
      when this row was created
      Returns:
    • setCreatedOn

      public void setCreatedOn(Timestamp createdOn)
      when this row was created
      Parameters:
      createdOn -
    • getDbVersion

      public SqlCacheMembership getDbVersion()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTempInternalIdOnDeck

      public Long getTempInternalIdOnDeck()
      store the internal id to use when the db access stores the object
      Returns:
    • setTempInternalIdOnDeck

      public void setTempInternalIdOnDeck(Long tempInternalIdOnDeck)
      store the internal id to use when the db access stores the object
      Parameters:
      tempInternalIdOnDeck -