Class SqlCacheGroup
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheGroup
- All Implemented Interfaces:
GcDbVersionable
,GcSqlAssignPrimaryKey
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
extension of folderstatic final String
created on col in dbstatic final String
disabled on col in dbstatic final String
enabled on col in dbstatic final String
field internal id on col in dbstatic final String
group internal id on col in dbstatic final String
internal id on col in dbstatic final String
membership size on col in dbstatic final String
membership size on col in dbstatic String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static final String
table name for sql cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
clone()
deep clone the fields in this objectvoid
db versionboolean
if we need to update this objectvoid
take a snapshot of the data since this is what is in the dbboolean
equalsDeep
(Object obj) boolean
when this row was createdwhen this shouldnt be used any more by consumers (before deletion)when this row is ready to use by consumers (once the memberships are loaded)long
refers to the field of the group being cachedlong
refers to the group being cachedlong
internal integer idlong
number of members approximately for this list.long
number of records approximately for this group in the grouper hst memberships table Note: two increments at the same time could skew itstore the internal id to use when the db access stores the objectvoid
setCreatedOn
(Timestamp createdOn) when this row was createdvoid
setDisabledOn
(Timestamp disabledOn) when this shouldnt be used any more by consumers (before deletion)void
setEnabledOn
(Timestamp enabledOn) when this row is ready to use by consumers (once the memberships are loaded)void
setFieldInternalId
(long fieldInternalId) refers to the field of the group being cachedvoid
setGroupInternalId
(long groupInternalId) refers to the group being cachedvoid
setInternalId
(long internalId) internal integer idvoid
setMembershipSize
(long membershipSize) number of members approximately for this list.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 itvoid
setTempInternalIdOnDeck
(Long tempInternalIdOnDeck) store the internal id to use when the db access stores the objectstatic String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
void
toString()
-
Field Details
-
attributeDefFolderExtension
extension of folder -
sqlCacheableHistoryDefExtension
-
sqlCacheableHistoryGroupMembersAttributeExtension
-
sqlCacheableHistoryGroupAdminsAttributeExtension
-
sqlCacheableHistoryGroupOptoutsAttributeExtension
-
sqlCacheableHistoryGroupOptinsAttributeExtension
-
sqlCacheableHistoryGroupReadersAttributeExtension
-
sqlCacheableHistoryGroupUpdatersAttributeExtension
-
sqlCacheableHistoryGroupViewersAttributeExtension
-
sqlCacheableHistoryGroupAttrReadersAttributeExtension
-
sqlCacheableHistoryGroupAttrUpdatersAttributeExtension
-
sqlCacheableHistoryAttributeDefAdminsAttributeExtension
-
sqlCacheableHistoryAttributeDefOptoutsAttributeExtension
-
sqlCacheableHistoryAttributeDefOptinsAttributeExtension
-
sqlCacheableHistoryAttributeDefReadersAttributeExtension
-
sqlCacheableHistoryAttributeDefUpdatersAttributeExtension
-
sqlCacheableHistoryAttributeDefViewersAttributeExtension
-
sqlCacheableHistoryAttributeDefAttrReadersAttributeExtension
-
sqlCacheableHistoryAttributeDefAttrUpdatersAttributeExtension
-
sqlCacheableHistoryStemCreatorsAttributeExtension
-
sqlCacheableHistoryStemAdminsAttributeExtension
-
sqlCacheableHistoryStemViewersAttributeExtension
-
sqlCacheableHistoryStemAttrReadersAttributeExtension
-
sqlCacheableHistoryStemAttrUpdatersAttributeExtension
-
TABLE_GROUPER_SQL_CACHE_GROUP
table name for sql cache- See Also:
-
COLUMN_CREATED_ON
created on col in db- See Also:
-
COLUMN_DISABLED_ON
disabled on col in db- See Also:
-
COLUMN_ENABLED_ON
enabled on col in db- See Also:
-
COLUMN_FIELD_INTERNAL_ID
field internal id on col in db- See Also:
-
COLUMN_GROUP_INTERNAL_ID
group internal id on col in db- See Also:
-
COLUMN_INTERNAL_ID
internal id on col in db- See Also:
-
COLUMN_MEMBERSHIP_SIZE
membership size on col in db- See Also:
-
COLUMN_MEMBERSHIP_SIZE_HST
membership size on col in db- See Also:
-
-
Constructor Details
-
SqlCacheGroup
public SqlCacheGroup()
-
-
Method Details
-
attributeDefFolderName
-
sqlCacheableHistoryDefName
-
sqlCacheableHistoryGroupMembersAttributeName
-
sqlCacheableHistoryGroupAdminsAttributeName
-
sqlCacheableHistoryGroupOptoutsAttributeName
-
sqlCacheableHistoryGroupOptinsAttributeName
-
sqlCacheableHistoryGroupReadersAttributeName
-
sqlCacheableHistoryGroupUpdatersAttributeName
-
sqlCacheableHistoryGroupViewersAttributeName
-
sqlCacheableHistoryGroupAttrReadersAttributeName
-
sqlCacheableHistoryGroupAttrUpdatersAttributeName
-
sqlCacheableHistoryAttributeDefAdminsAttributeName
-
sqlCacheableHistoryAttributeDefOptoutsAttributeName
-
sqlCacheableHistoryAttributeDefOptinsAttributeName
-
sqlCacheableHistoryAttributeDefReadersAttributeName
-
sqlCacheableHistoryAttributeDefUpdatersAttributeName
-
sqlCacheableHistoryAttributeDefViewersAttributeName
-
sqlCacheableHistoryAttributeDefAttrReadersAttributeName
-
sqlCacheableHistoryAttributeDefAttrUpdatersAttributeName
-
sqlCacheableHistoryStemCreatorsAttributeName
-
sqlCacheableHistoryStemAdminsAttributeName
-
sqlCacheableHistoryStemViewersAttributeName
-
sqlCacheableHistoryStemAttrReadersAttributeName
-
sqlCacheableHistoryStemAttrUpdatersAttributeName
-
getSqlCacheHistoryAttributeNamesToFields
-
getDbVersion
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Specified by:
dbVersionReset
in interfaceGcDbVersionable
-
dbVersionDifferent
public boolean dbVersionDifferent()if we need to update this object- Specified by:
dbVersionDifferent
in interfaceGcDbVersionable
- Returns:
- if needs to update this object
-
dbVersionDelete
public void dbVersionDelete()db version- Specified by:
dbVersionDelete
in interfaceGcDbVersionable
-
storePrepare
public void storePrepare() -
clone
deep clone the fields in this object -
equalsDeep
-
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
store the internal id to use when the db access stores the object- Returns:
-
setTempInternalIdOnDeck
store the internal id to use when the db access stores the object- Parameters:
tempInternalIdOnDeck
-
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()- Specified by:
gcSqlAssignNewPrimaryKeyForInsert
in interfaceGcSqlAssignPrimaryKey
-
getCreatedOn
when this row was created- Returns:
-
setCreatedOn
when this row was created- Parameters:
createdOn
-
-
getEnabledOn
when this row is ready to use by consumers (once the memberships are loaded)- Returns:
-
setEnabledOn
when this row is ready to use by consumers (once the memberships are loaded)- Parameters:
enabledOn
-
-
getDisabledOn
when this shouldnt be used any more by consumers (before deletion)- Returns:
-
setDisabledOn
when this shouldnt be used any more by consumers (before deletion)- Parameters:
disabledOn
-
-
toString
-