Class SqlCacheGroup

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

public class SqlCacheGroup extends Object implements GcSqlAssignPrimaryKey, GcDbVersionable
  • Field Details

    • attributeDefFolderExtension

      public static String attributeDefFolderExtension
      extension of folder
    • sqlCacheableHistoryDefExtension

      public static String sqlCacheableHistoryDefExtension
    • sqlCacheableHistoryGroupMembersAttributeExtension

      public static String sqlCacheableHistoryGroupMembersAttributeExtension
    • sqlCacheableHistoryGroupAdminsAttributeExtension

      public static String sqlCacheableHistoryGroupAdminsAttributeExtension
    • sqlCacheableHistoryGroupOptoutsAttributeExtension

      public static String sqlCacheableHistoryGroupOptoutsAttributeExtension
    • sqlCacheableHistoryGroupOptinsAttributeExtension

      public static String sqlCacheableHistoryGroupOptinsAttributeExtension
    • sqlCacheableHistoryGroupReadersAttributeExtension

      public static String sqlCacheableHistoryGroupReadersAttributeExtension
    • sqlCacheableHistoryGroupUpdatersAttributeExtension

      public static String sqlCacheableHistoryGroupUpdatersAttributeExtension
    • sqlCacheableHistoryGroupViewersAttributeExtension

      public static String sqlCacheableHistoryGroupViewersAttributeExtension
    • sqlCacheableHistoryGroupAttrReadersAttributeExtension

      public static String sqlCacheableHistoryGroupAttrReadersAttributeExtension
    • sqlCacheableHistoryGroupAttrUpdatersAttributeExtension

      public static String sqlCacheableHistoryGroupAttrUpdatersAttributeExtension
    • sqlCacheableHistoryAttributeDefAdminsAttributeExtension

      public static String sqlCacheableHistoryAttributeDefAdminsAttributeExtension
    • sqlCacheableHistoryAttributeDefOptoutsAttributeExtension

      public static String sqlCacheableHistoryAttributeDefOptoutsAttributeExtension
    • sqlCacheableHistoryAttributeDefOptinsAttributeExtension

      public static String sqlCacheableHistoryAttributeDefOptinsAttributeExtension
    • sqlCacheableHistoryAttributeDefReadersAttributeExtension

      public static String sqlCacheableHistoryAttributeDefReadersAttributeExtension
    • sqlCacheableHistoryAttributeDefUpdatersAttributeExtension

      public static String sqlCacheableHistoryAttributeDefUpdatersAttributeExtension
    • sqlCacheableHistoryAttributeDefViewersAttributeExtension

      public static String sqlCacheableHistoryAttributeDefViewersAttributeExtension
    • sqlCacheableHistoryAttributeDefAttrReadersAttributeExtension

      public static String sqlCacheableHistoryAttributeDefAttrReadersAttributeExtension
    • sqlCacheableHistoryAttributeDefAttrUpdatersAttributeExtension

      public static String sqlCacheableHistoryAttributeDefAttrUpdatersAttributeExtension
    • sqlCacheableHistoryStemCreatorsAttributeExtension

      public static String sqlCacheableHistoryStemCreatorsAttributeExtension
    • sqlCacheableHistoryStemAdminsAttributeExtension

      public static String sqlCacheableHistoryStemAdminsAttributeExtension
    • sqlCacheableHistoryStemViewersAttributeExtension

      public static String sqlCacheableHistoryStemViewersAttributeExtension
    • sqlCacheableHistoryStemAttrReadersAttributeExtension

      public static String sqlCacheableHistoryStemAttrReadersAttributeExtension
    • sqlCacheableHistoryStemAttrUpdatersAttributeExtension

      public static String sqlCacheableHistoryStemAttrUpdatersAttributeExtension
    • TABLE_GROUPER_SQL_CACHE_GROUP

      public static final String TABLE_GROUPER_SQL_CACHE_GROUP
      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_DISABLED_ON

      public static final String COLUMN_DISABLED_ON
      disabled on col in db
      See Also:
    • COLUMN_ENABLED_ON

      public static final String COLUMN_ENABLED_ON
      enabled on col in db
      See Also:
    • COLUMN_FIELD_INTERNAL_ID

      public static final String COLUMN_FIELD_INTERNAL_ID
      field internal id on col in db
      See Also:
    • COLUMN_GROUP_INTERNAL_ID

      public static final String COLUMN_GROUP_INTERNAL_ID
      group internal id on col in db
      See Also:
    • COLUMN_INTERNAL_ID

      public static final String COLUMN_INTERNAL_ID
      internal id on col in db
      See Also:
    • COLUMN_MEMBERSHIP_SIZE

      public static final String COLUMN_MEMBERSHIP_SIZE
      membership size on col in db
      See Also:
    • COLUMN_MEMBERSHIP_SIZE_HST

      public static final String COLUMN_MEMBERSHIP_SIZE_HST
      membership size on col in db
      See Also:
  • Constructor Details

    • SqlCacheGroup

      public SqlCacheGroup()
  • Method Details

    • attributeDefFolderName

      public static String attributeDefFolderName()
    • sqlCacheableHistoryDefName

      public static String sqlCacheableHistoryDefName()
    • sqlCacheableHistoryGroupMembersAttributeName

      public static String sqlCacheableHistoryGroupMembersAttributeName()
    • sqlCacheableHistoryGroupAdminsAttributeName

      public static String sqlCacheableHistoryGroupAdminsAttributeName()
    • sqlCacheableHistoryGroupOptoutsAttributeName

      public static String sqlCacheableHistoryGroupOptoutsAttributeName()
    • sqlCacheableHistoryGroupOptinsAttributeName

      public static String sqlCacheableHistoryGroupOptinsAttributeName()
    • sqlCacheableHistoryGroupReadersAttributeName

      public static String sqlCacheableHistoryGroupReadersAttributeName()
    • sqlCacheableHistoryGroupUpdatersAttributeName

      public static String sqlCacheableHistoryGroupUpdatersAttributeName()
    • sqlCacheableHistoryGroupViewersAttributeName

      public static String sqlCacheableHistoryGroupViewersAttributeName()
    • sqlCacheableHistoryGroupAttrReadersAttributeName

      public static String sqlCacheableHistoryGroupAttrReadersAttributeName()
    • sqlCacheableHistoryGroupAttrUpdatersAttributeName

      public static String sqlCacheableHistoryGroupAttrUpdatersAttributeName()
    • sqlCacheableHistoryAttributeDefAdminsAttributeName

      public static String sqlCacheableHistoryAttributeDefAdminsAttributeName()
    • sqlCacheableHistoryAttributeDefOptoutsAttributeName

      public static String sqlCacheableHistoryAttributeDefOptoutsAttributeName()
    • sqlCacheableHistoryAttributeDefOptinsAttributeName

      public static String sqlCacheableHistoryAttributeDefOptinsAttributeName()
    • sqlCacheableHistoryAttributeDefReadersAttributeName

      public static String sqlCacheableHistoryAttributeDefReadersAttributeName()
    • sqlCacheableHistoryAttributeDefUpdatersAttributeName

      public static String sqlCacheableHistoryAttributeDefUpdatersAttributeName()
    • sqlCacheableHistoryAttributeDefViewersAttributeName

      public static String sqlCacheableHistoryAttributeDefViewersAttributeName()
    • sqlCacheableHistoryAttributeDefAttrReadersAttributeName

      public static String sqlCacheableHistoryAttributeDefAttrReadersAttributeName()
    • sqlCacheableHistoryAttributeDefAttrUpdatersAttributeName

      public static String sqlCacheableHistoryAttributeDefAttrUpdatersAttributeName()
    • sqlCacheableHistoryStemCreatorsAttributeName

      public static String sqlCacheableHistoryStemCreatorsAttributeName()
    • sqlCacheableHistoryStemAdminsAttributeName

      public static String sqlCacheableHistoryStemAdminsAttributeName()
    • sqlCacheableHistoryStemViewersAttributeName

      public static String sqlCacheableHistoryStemViewersAttributeName()
    • sqlCacheableHistoryStemAttrReadersAttributeName

      public static String sqlCacheableHistoryStemAttrReadersAttributeName()
    • sqlCacheableHistoryStemAttrUpdatersAttributeName

      public static String sqlCacheableHistoryStemAttrUpdatersAttributeName()
    • getSqlCacheHistoryAttributeNamesToFields

      public static Map<String,Field> getSqlCacheHistoryAttributeNamesToFields()
    • getDbVersion

      public SqlCacheGroup getDbVersion()
    • 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 SqlCacheGroup 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 -
    • getGroupInternalId

      public long getGroupInternalId()
      refers to the group being cached
      Returns:
    • setGroupInternalId

      public void setGroupInternalId(long groupInternalId)
      refers to the group being cached
      Parameters:
      groupInternalId -
    • getFieldInternalId

      public long getFieldInternalId()
      refers to the field of the group being cached
      Returns:
    • setFieldInternalId

      public void setFieldInternalId(long fieldInternalId)
      refers to the field of the group being cached
      Parameters:
      fieldInternalId -
    • getMembershipSize

      public long getMembershipSize()
      number of members approximately for this list. Note: two incrementals at the same time could skew it
      Returns:
    • setMembershipSize

      public void setMembershipSize(long membershipSize)
      number of members approximately for this list. Note: two incrementals at the same time could skew it
      Parameters:
      membershipSize -
    • getMembershipSizeHst

      public long getMembershipSizeHst()
      number of records approximately for this group in the grouper hst memberships table Note: two increments at the same time could skew it
      Returns:
    • setMembershipSizeHst

      public void setMembershipSizeHst(long membershipSizeHst)
      number of records approximately for this group in the grouper hst memberships table Note: two increments at the same time could skew it
      Parameters:
      membershipSizeHst -
    • 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 -
    • gcSqlAssignNewPrimaryKeyForInsert

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

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

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

      public Timestamp getEnabledOn()
      when this row is ready to use by consumers (once the memberships are loaded)
      Returns:
    • setEnabledOn

      public void setEnabledOn(Timestamp enabledOn)
      when this row is ready to use by consumers (once the memberships are loaded)
      Parameters:
      enabledOn -
    • getDisabledOn

      public Timestamp getDisabledOn()
      when this shouldnt be used any more by consumers (before deletion)
      Returns:
    • setDisabledOn

      public void setDisabledOn(Timestamp disabledOn)
      when this shouldnt be used any more by consumers (before deletion)
      Parameters:
      disabledOn -
    • toString

      public String toString()
      Overrides:
      toString in class Object