edu.internet2.middleware.grouper.xml.export
Interface XmlImportableBase<T>

Type Parameters:
T - is the type of the object
All Known Subinterfaces:
XmlImportable<T>, XmlImportableMultiple<T>
All Known Implementing Classes:
AttributeAssign, AttributeAssignAction, AttributeAssignActionSet, AttributeAssignValue, AttributeDef, AttributeDefName, AttributeDefNameSet, AttributeDefScope, AuditEntry, AuditType, Composite, Field, Group, Member, Membership, RoleSet, Stem

public interface XmlImportableBase<T>

Hibernated object which can be imported into


Method Summary
 void xmlCopyBusinessPropertiesToExisting(T existingRecord)
          copy business (non update) properties to an existing record
 boolean xmlDifferentBusinessProperties(T other)
          see if the non update cols are different (e.g.
 boolean xmlDifferentUpdateProperties(T other)
          see if the update cols are different (e.g.
 String xmlGetId()
          set id key in db
 T xmlSaveBusinessProperties(T 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
 String xmlToString()
          convert to string for log
 

Method Detail

xmlToString

String xmlToString()
convert to string for log

Returns:
the string value for log

xmlDifferentUpdateProperties

boolean xmlDifferentUpdateProperties(T other)
see if the update cols are different (e.g. last updated)

Parameters:
other - the one to compare with
Returns:
true if so

xmlDifferentBusinessProperties

boolean xmlDifferentBusinessProperties(T other)
see if the non update cols are different (e.g. name)

Parameters:
other - the one to compare with
Returns:
true if so

xmlSaveBusinessProperties

T xmlSaveBusinessProperties(T existingRecord)
save the business properties (not update properties)

Parameters:
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
Returns:
the new object or existing

xmlSaveUpdateProperties

void xmlSaveUpdateProperties()
save the udpate properties (e.g. last updated). Note, this is done with a sql update statement, not with hibernate


xmlCopyBusinessPropertiesToExisting

void xmlCopyBusinessPropertiesToExisting(T existingRecord)
copy business (non update) properties to an existing record

Parameters:
existingRecord -

xmlGetId

String xmlGetId()
set id key in db

Returns:
id

xmlSetId

void xmlSetId(String theId)
set id key in db

Parameters:
theId -