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
Modifier and TypeMethodDescriptionvoid
xmlCopyBusinessPropertiesToExisting
(T existingRecord) copy business (non update) properties to an existing recordboolean
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.xmlGetId()
set id key in dbxmlSaveBusinessProperties
(T existingRecord) save the business properties (not update properties)void
save the udpate properties (e.g.void
set id key in dbconvert to string for log
-
Method Details
-
xmlToString
String xmlToString()convert to string for log- Returns:
- the string value for log
-
xmlDifferentUpdateProperties
see if the update cols are different (e.g. last updated)- Parameters:
other
- the one to compare with- Returns:
- true if so
-
xmlDifferentBusinessProperties
see if the non update cols are different (e.g. name)- Parameters:
other
- the one to compare with- Returns:
- true if so
-
xmlSaveBusinessProperties
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
copy business (non update) properties to an existing record- Parameters:
existingRecord
-
-
xmlGetId
String xmlGetId()set id key in db- Returns:
- id
-
xmlSetId
set id key in db- Parameters:
theId
-
-