Package edu.internet2.middleware.grouper
Class GroupTypeTuple
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.GroupTypeTuple
- All Implemented Interfaces:
HibGrouperLifecycle
,GrouperCloneable
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
Basic Hibernate
Group
and GroupType
tuple DTO implementation.- Since:
- Version:
- $Id: GroupTypeTuple.java,v 1.12 2009-09-24 18:07:16 shilen Exp $
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
constant for field name for: groupUUIDstatic final String
constant for field name for: idstatic final String
constant for field name for: typeUUIDstatic final String
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignGroupUuid
(String groupUUID1, Group group1) clone()
deep clone the fields in this objectboolean
context id of the transactiongetId()
type uuidint
hashCode()
static GroupTypeTuple
internal_getGroupTypeTuple
(AttributeAssign assignment, boolean exceptionIfNotLegacyGroupTypeTuple) retrieveGroup
(boolean retrieveIfNull) try to get the current group if it is available (if this object is cloned, then it might be null)void
setContextId
(String contextId1) context id of the transactionvoid
setGroupUuid
(String groupUUID1) void
setTypeUuid
(String typeUUID1) toString()
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
TABLE_OLD_GROUPER_GROUPS_TYPES
- See Also:
-
FIELD_GROUP_UUID
constant for field name for: groupUUID- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_TYPE_UUID
constant for field name for: typeUUID- See Also:
-
-
Constructor Details
-
GroupTypeTuple
public GroupTypeTuple()
-
-
Method Details
-
getContextId
context id of the transaction- Returns:
- context id
-
setContextId
context id of the transaction- Parameters:
contextId1
-
-
retrieveGroup
try to get the current group if it is available (if this object is cloned, then it might be null)- Parameters:
retrieveIfNull
- true to get from DB if null- Returns:
- the current group
-
equals
-
hashCode
public int hashCode() -
toString
-
getGroupUuid
- Returns:
- uuid
-
getId
- Returns:
- id
-
getTypeUuid
type uuid- Returns:
- uuid
-
setGroupUuid
- Parameters:
groupUUID1
-
-
assignGroupUuid
- Parameters:
groupUUID1
-group1
-
-
setId
- Parameters:
id1
-
-
setTypeUuid
- Parameters:
typeUUID1
-- Returns:
- tuple
-
clone
deep clone the fields in this object- Specified by:
clone
in interfaceGrouperCloneable
- Specified by:
clone
in classGrouperAPI
- Returns:
- the clone of the object
- See Also:
-
internal_getGroupTypeTuple
public static GroupTypeTuple internal_getGroupTypeTuple(AttributeAssign assignment, boolean exceptionIfNotLegacyGroupTypeTuple) - Parameters:
assignment
-exceptionIfNotLegacyGroupTypeTuple
-- Returns:
- groupType
-