Class SqlCacheMembership
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheMembership
- All Implemented Interfaces:
GcDbVersionable
,GcSqlAssignPrimaryKey
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
created on col in dbstatic final String
when this member was last added to this group after they werent a member beforestatic final String
internal id on col in dbstatic final String
internal id of the member of this group/liststatic final String
refers to which group and list this membership refers tostatic final String
table name for sql cache -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
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 member was last added to this group after they werent a member beforelong
internal integer idinternal id of the member of this group/listrefers to which group and list this membership refers tostore the internal id to use when the db access stores the objectvoid
setCreatedOn
(Timestamp createdOn) when this row was createdvoid
setFlattenedAddTimestamp
(Timestamp flattenedAddTimestamp) when this member was last added to this group after they werent a member beforevoid
setInternalId
(long internalId) internal integer idvoid
setMemberInternalId
(Long memberInternalId) internal id of the member of this group/listvoid
setSqlCacheGroupInternalId
(Long sqlCacheGroupInternalId) refers to which group and list this membership refers tovoid
setTempInternalIdOnDeck
(Long tempInternalIdOnDeck) store the internal id to use when the db access stores the objectvoid
toString()
-
Field Details
-
TABLE_GROUPER_SQL_CACHE_MEMBERSHIP
table name for sql cache- See Also:
-
COLUMN_CREATED_ON
created on col in db- See Also:
-
COLUMN_FLATTENED_ADD_TIMESTAMP
when this member was last added to this group after they werent a member before- See Also:
-
COLUMN_INTERNAL_ID
internal id on col in db- See Also:
-
COLUMN_MEMBER_INTERNAL_ID
internal id of the member of this group/list- See Also:
-
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 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
-
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()- Specified by:
gcSqlAssignNewPrimaryKeyForInsert
in interfaceGcSqlAssignPrimaryKey
-
getFlattenedAddTimestamp
when this member was last added to this group after they werent a member before- Returns:
-
setFlattenedAddTimestamp
when this member was last added to this group after they werent a member before- Parameters:
flattenedAddTimestamp
-
-
getMemberInternalId
internal id of the member of this group/list- Returns:
-
setMemberInternalId
internal id of the member of this group/list- Parameters:
memberInternalId
-
-
getSqlCacheGroupInternalId
refers to which group and list this membership refers to- Returns:
-
setSqlCacheGroupInternalId
refers to which group and list this membership refers to- Parameters:
sqlCacheGroupInternalId
-
-
getCreatedOn
when this row was created- Returns:
-
setCreatedOn
when this row was created- Parameters:
createdOn
-
-
getDbVersion
-
toString
-
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
-
-