|
||||||||||
| 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 java.lang.String |
FIELD_DB_VERSION
constant for field name for: dbVersion |
static java.lang.String |
FIELD_GROUP_UUID
constant for field name for: groupUUID |
static java.lang.String |
FIELD_ID
constant for field name for: id |
static java.lang.String |
FIELD_TYPE_UUID
constant for field name for: typeUUID |
static java.lang.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(java.lang.String groupUUID1,
Group group1)
|
GroupTypeTuple |
clone()
deep clone the fields in this object |
GroupTypeTuple |
dbVersion()
save the state when retrieving from DB |
java.util.Set<java.lang.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(java.lang.Object other)
|
java.lang.String |
getContextId()
context id of the transaction |
java.lang.String |
getGroupUuid()
|
java.lang.String |
getId()
|
java.lang.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(java.lang.String contextId1)
context id of the transaction |
void |
setGroupUuid(java.lang.String groupUUID1)
|
void |
setId(java.lang.String id1)
|
GroupTypeTuple |
setTypeUuid(java.lang.String typeUUID1)
|
void |
store()
store this object to the DB. |
java.lang.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. name) |
boolean |
xmlDifferentUpdateProperties(GroupTypeTuple other)
see if the update cols are different (e.g. last updated) |
java.lang.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. last updated). |
void |
xmlSetId(java.lang.String theId)
set id key in db |
XmlExportGroupTypeTuple |
xmlToExportGroup(GrouperVersion grouperVersion)
convert to xml bean for export |
java.lang.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 java.lang.String TABLE_GROUPER_GROUPS_TYPES
public static final java.lang.String FIELD_DB_VERSION
public static final java.lang.String FIELD_GROUP_UUID
public static final java.lang.String FIELD_ID
public static final java.lang.String FIELD_TYPE_UUID
| Constructor Detail |
|---|
public GroupTypeTuple()
| Method Detail |
|---|
public java.lang.String getContextId()
public void setContextId(java.lang.String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public Group retrieveGroup(boolean retrieveIfNull)
retrieveIfNull - true to get from DB if null
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother -
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getGroupUuid()
public java.lang.String getId()
public java.lang.String getTypeUuid()
public void setGroupUuid(java.lang.String groupUUID1)
groupUUID1 -
public void assignGroupUuid(java.lang.String groupUUID1,
Group group1)
groupUUID1 - group1 - public void setId(java.lang.String id1)
id1 - public GroupTypeTuple setTypeUuid(java.lang.String typeUUID1)
typeUUID1 -
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete in interface HibGrouperLifecycleonPostDelete in class GrouperAPIGrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave in interface HibGrouperLifecycleonPostSave in class GrouperAPIGrouperAPI.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void delete()
public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate in interface HibGrouperLifecycleonPostUpdate in class GrouperAPIGrouperAPI.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete in interface HibGrouperLifecycleonPreDelete in class GrouperAPIGrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave in interface HibGrouperLifecycleonPreSave in class GrouperAPIGrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate in interface HibGrouperLifecycleonPreUpdate in class GrouperAPIGrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public GroupTypeTuple dbVersion()
dbVersion in class GrouperAPIpublic java.util.Set<java.lang.String> dbVersionDifferentFields()
dbVersionDifferentFields in class GrouperAPIGrouperAPI.dbVersionDifferentFields()public void dbVersionReset()
dbVersionReset in class GrouperAPIpublic GroupTypeTuple clone()
clone in interface GrouperCloneableclone in class GrouperAPIObject.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 java.lang.String xmlGetId()
XmlImportableBase
xmlGetId in interface XmlImportableBase<GroupTypeTuple>XmlImportableBase.xmlGetId()public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId in interface XmlImportableBase<GroupTypeTuple>XmlImportableBase.xmlSetId(java.lang.String)public java.lang.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 | |||||||||