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
    • attributeDefNameExtensionListName

      public static String attributeDefNameExtensionListName
      extension of folder
    • attributeDefMarkerExtension

      public static String attributeDefMarkerExtension
      marker extension of attribute def
    • attributeDefExtension

      public static String attributeDefExtension
      extension of attribute def
    • attributeDefNameMarkerExtension

      public static String attributeDefNameMarkerExtension
      extension of marker attribute
    • 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()
    • attributeDefNameNameListName

      public static String attributeDefNameNameListName()
    • attributeDefMarkerName

      public static String attributeDefMarkerName()
    • attributeDefName

      public static String attributeDefName()
    • attributeDefNameMarkerName

      public static String attributeDefNameMarkerName()
    • 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