Class SqlCacheDependencyType
java.lang.Object
edu.internet2.middleware.grouper.sqlCache.SqlCacheDependencyType
- All Implemented Interfaces:
GcDbVersionable
,GcSqlAssignPrimaryKey
public class SqlCacheDependencyType
extends Object
implements GcSqlAssignPrimaryKey, GcDbVersionable
-
Constructor Summary
Constructors -
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
category of this dependency typedescribe the dependency and columnsgetName()
alphaNumeric name of this dependency typestore the internal id to use when the db access stores the objectvoid
setDependencyCategory
(String dependencyCategory) category of this dependency typevoid
setDescription
(String description) describe the dependency and columnsvoid
setInternalId
(long internalId) internal id for foreign keysvoid
alphaNumeric name of this dependency typevoid
setTempInternalIdOnDeck
(Long tempInternalIdOnDeck) store the internal id to use when the db access stores the objectvoid
toString()
-
Constructor Details
-
SqlCacheDependencyType
public SqlCacheDependencyType()
-
-
Method Details
-
getDependencyCategory
category of this dependency type- Returns:
-
setDependencyCategory
category of this dependency type- Parameters:
dependencyCategory
-
-
getName
alphaNumeric name of this dependency type- Returns:
-
setName
alphaNumeric name of this dependency type- Parameters:
name
-
-
getDescription
describe the dependency and columns- Returns:
-
setDescription
describe the dependency and columns- Parameters:
description
-
-
clone
deep clone the fields in this object -
dbVersionDelete
public void dbVersionDelete()db version- Specified by:
dbVersionDelete
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
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Specified by:
dbVersionReset
in interfaceGcDbVersionable
-
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
-
-
setInternalId
public void setInternalId(long internalId) internal id for foreign keys- Parameters:
internalId
-
-
equalsDeep
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()- Specified by:
gcSqlAssignNewPrimaryKeyForInsert
in interfaceGcSqlAssignPrimaryKey
-
storePrepare
public void storePrepare() -
toString
-
getInternalId
- Returns:
- internalId
-