edu.internet2.middleware.grouper
Class GroupTypeTuple

java.lang.Object
  extended by edu.internet2.middleware.grouper.GrouperAPI
      extended by edu.internet2.middleware.grouper.GroupTypeTuple
All Implemented Interfaces:
HibGrouperLifecycle, GrouperCloneable, GrouperUtil.FieldValuable, Serializable, org.hibernate.classic.Lifecycle

public class GroupTypeTuple
extends GrouperAPI

Basic Hibernate Group and GroupType tuple DTO implementation.

Since:
@HEAD@
Version:
$Id: GroupTypeTuple.java,v 1.12 2009-09-24 18:07:16 shilen Exp $
Author:
blair christensen.
See Also:
Serialized Form

Field Summary
static String FIELD_GROUP_UUID
          constant for field name for: groupUUID
static String FIELD_ID
          constant for field name for: id
static String FIELD_TYPE_UUID
          constant for field name for: typeUUID
static String TABLE_OLD_GROUPER_GROUPS_TYPES
           
 
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
GroupTypeTuple()
           
 
Method Summary
 void assignGroupUuid(String groupUUID1, Group group1)
           
 GroupTypeTuple clone()
          deep clone the fields in this object
 boolean equals(Object other)
           
 String getContextId()
          context id of the transaction
 String getGroupUuid()
           
 String getId()
           
 String getTypeUuid()
          type uuid
 int hashCode()
           
static GroupTypeTuple internal_getGroupTypeTuple(AttributeAssign assignment, boolean exceptionIfNotLegacyGroupTypeTuple)
           
 Group 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 transaction
 void setGroupUuid(String groupUUID1)
           
 void setId(String id1)
           
 GroupTypeTuple setTypeUuid(String typeUUID1)
           
 String 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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TABLE_OLD_GROUPER_GROUPS_TYPES

public static final String TABLE_OLD_GROUPER_GROUPS_TYPES
See Also:
Constant Field Values

FIELD_GROUP_UUID

public static final String FIELD_GROUP_UUID
constant for field name for: groupUUID

See Also:
Constant Field Values

FIELD_ID

public static final String FIELD_ID
constant for field name for: id

See Also:
Constant Field Values

FIELD_TYPE_UUID

public static final String FIELD_TYPE_UUID
constant for field name for: typeUUID

See Also:
Constant Field Values
Constructor Detail

GroupTypeTuple

public GroupTypeTuple()
Method Detail

getContextId

public String getContextId()
context id of the transaction

Returns:
context id

setContextId

public void setContextId(String contextId1)
context id of the transaction

Parameters:
contextId1 -

retrieveGroup

public Group retrieveGroup(boolean retrieveIfNull)
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

public boolean equals(Object other)
Overrides:
equals in class Object
Parameters:
other -
Returns:
if equals
Since:
@HEAD@

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getGroupUuid

public String getGroupUuid()
Returns:
uuid

getId

public String getId()
Returns:
id

getTypeUuid

public String getTypeUuid()
type uuid

Returns:
uuid

setGroupUuid

public void setGroupUuid(String groupUUID1)
Parameters:
groupUUID1 -

assignGroupUuid

public void assignGroupUuid(String groupUUID1,
                            Group group1)
Parameters:
groupUUID1 -
group1 -

setId

public void setId(String id1)
Parameters:
id1 -

setTypeUuid

public GroupTypeTuple setTypeUuid(String typeUUID1)
Parameters:
typeUUID1 -
Returns:
tuple

clone

public GroupTypeTuple clone()
deep clone the fields in this object

Specified by:
clone in interface GrouperCloneable
Specified by:
clone in class GrouperAPI
Returns:
the clone of the object
See Also:
Object.clone()

internal_getGroupTypeTuple

public static GroupTypeTuple internal_getGroupTypeTuple(AttributeAssign assignment,
                                                        boolean exceptionIfNotLegacyGroupTypeTuple)
Parameters:
assignment -
exceptionIfNotLegacyGroupTypeTuple -
Returns:
groupType