|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.GroupTypeTuple
public class GroupTypeTuple
Basic Hibernate Group
and GroupType
tuple DTO implementation.
Field Summary | |
---|---|
static String |
FIELD_DB_VERSION
constant for field name for: dbVersion |
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_GROUPER_GROUPS_TYPES
|
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI |
---|
COLUMN_HIBERNATE_VERSION_NUMBER, 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 |
GroupTypeTuple |
dbVersion()
save the state when retrieving from DB |
Set<String> |
dbVersionDifferentFields()
note, these are massaged so that name, extension, etc look like normal fields. |
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db |
void |
delete()
delete this record |
boolean |
equals(Object other)
|
String |
getContextId()
context id of the transaction |
String |
getGroupUuid()
|
String |
getId()
|
String |
getTypeUuid()
type uuid |
int |
hashCode()
|
void |
onPostDelete(HibernateSession hibernateSession)
after a delete occurs |
void |
onPostSave(HibernateSession hibernateSession)
after a save (insert) occurs |
void |
onPostUpdate(HibernateSession hibernateSession)
after an update occurs |
void |
onPreDelete(HibernateSession hibernateSession)
before a delete (insert) occurs |
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs |
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs |
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)
|
void |
store()
store this object to the DB. |
String |
toString()
|
void |
xmlCopyBusinessPropertiesToExisting(GroupTypeTuple existingRecord)
copy business (non update) properties to an existing record |
boolean |
xmlDifferentBusinessProperties(GroupTypeTuple other)
see if the non update cols are different (e.g. |
boolean |
xmlDifferentUpdateProperties(GroupTypeTuple other)
see if the update cols are different (e.g. |
String |
xmlGetId()
set id key in db |
GroupTypeTuple |
xmlRetrieveByIdOrKey()
retrieve from db by id or key. |
GroupTypeTuple |
xmlSaveBusinessProperties(GroupTypeTuple existingRecord)
save the business properties (not update properties) |
void |
xmlSaveUpdateProperties()
save the udpate properties (e.g. |
void |
xmlSetId(String theId)
set id key in db |
XmlExportGroupTypeTuple |
xmlToExportGroup(GrouperVersion grouperVersion)
convert to xml bean for export |
String |
xmlToString()
convert to string for log |
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI |
---|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TABLE_GROUPER_GROUPS_TYPES
public static final String FIELD_DB_VERSION
public static final String FIELD_GROUP_UUID
public static final String FIELD_ID
public static final String FIELD_TYPE_UUID
Constructor Detail |
---|
public GroupTypeTuple()
Method Detail |
---|
public String getContextId()
public void setContextId(String contextId1)
setContextId
in interface GrouperHasContext
contextId1
- public Group retrieveGroup(boolean retrieveIfNull)
retrieveIfNull
- true to get from DB if null
public boolean equals(Object other)
equals
in class Object
other
-
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
public String getGroupUuid()
public String getId()
public String getTypeUuid()
public void setGroupUuid(String groupUUID1)
groupUUID1
- public void assignGroupUuid(String groupUUID1, Group group1)
groupUUID1
- group1
- public void setId(String id1)
id1
- public GroupTypeTuple setTypeUuid(String typeUUID1)
typeUUID1
-
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete
in interface HibGrouperLifecycle
onPostDelete
in class GrouperAPI
GrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave
in interface HibGrouperLifecycle
onPostSave
in class GrouperAPI
GrouperAPI.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void delete()
public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate
in interface HibGrouperLifecycle
onPostUpdate
in class GrouperAPI
GrouperAPI.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
onPreDelete
in class GrouperAPI
GrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public GroupTypeTuple dbVersion()
dbVersion
in class GrouperAPI
public Set<String> dbVersionDifferentFields()
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public GroupTypeTuple clone()
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public void store()
public void xmlCopyBusinessPropertiesToExisting(GroupTypeTuple existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<GroupTypeTuple>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(GroupTypeTuple other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<GroupTypeTuple>
other
- the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(GroupTypeTuple other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<GroupTypeTuple>
other
- the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public GroupTypeTuple xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<GroupTypeTuple>
XmlImportable.xmlRetrieveByIdOrKey()
public GroupTypeTuple xmlSaveBusinessProperties(GroupTypeTuple existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
in interface XmlImportableBase<GroupTypeTuple>
existingRecord
- null if insert, the object if exists in DB
generally just copy the hibernate version number, and last updated to the
object and store it
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<GroupTypeTuple>
XmlImportableBase.xmlSaveUpdateProperties()
public XmlExportGroupTypeTuple xmlToExportGroup(GrouperVersion grouperVersion)
grouperVersion
-
public String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<GroupTypeTuple>
XmlImportableBase.xmlGetId()
public void xmlSetId(String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<GroupTypeTuple>
XmlImportableBase.xmlSetId(java.lang.String)
public String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<GroupTypeTuple>
XmlImportableBase.xmlToString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |