Class GrouperDictionary
java.lang.Object
edu.internet2.middleware.grouper.dictionary.GrouperDictionary
- All Implemented Interfaces:
GcDbVersionable,GcSqlAssignPrimaryKey
Dictionary holds strings in one place for other tables to refer to
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()deep clone the fields in this objectvoiddb versionbooleanif we need to update this objectvoidtake a snapshot of the data since this is what is in the dbbooleanequalsDeep(Object obj) booleanlonginternal integer idstore the internal id to use when the db access stores the objecttext for this dictionary itembooleanstatic voidvoidsetCreatedOn(Timestamp created) voidsetInternalId(long internalId) internal integer idvoidsetLastReferenced(Timestamp lastReferenced) voidsetOftenUsed(boolean oftenUsed) voidsetPreLoadDb(String oftenUsed) voidsetTempInternalIdOnDeck(Long tempInternalIdOnDeck) store the internal id to use when the db access stores the objectvoidsetTheText(String theText) text for this dictionary itemvoidtoString()
-
Constructor Details
-
GrouperDictionary
public GrouperDictionary()
-
-
Method Details
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Specified by:
dbVersionResetin interfaceGcDbVersionable
-
dbVersionDifferent
public boolean dbVersionDifferent()if we need to update this object- Specified by:
dbVersionDifferentin interfaceGcDbVersionable- Returns:
- if needs to update this object
-
dbVersionDelete
public void dbVersionDelete()db version- Specified by:
dbVersionDeletein interfaceGcDbVersionable
-
storePrepare
public void storePrepare() -
clone
deep clone the fields in this object -
equalsDeep
-
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-
-
getTheText
text for this dictionary item- Returns:
-
setTheText
text for this dictionary item- Parameters:
theText-
-
getCreatedOn
-
setCreatedOn
-
getLastReferenced
-
setLastReferenced
-
isPreLoad
public boolean isPreLoad() -
setOftenUsed
public void setOftenUsed(boolean oftenUsed) -
getPreLoadDb
-
setPreLoadDb
-
main
- Parameters:
args-
-
toString
-
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:
gcSqlAssignNewPrimaryKeyForInsertin interfaceGcSqlAssignPrimaryKey
-