Purpose
When merging or splitting item ID’s will either move from an existing group (update) or move into a new group (insert).
Applies To
Relationship Group Methods
Signature
public boolean ucRelationshipGroupSplitMergeCommon (
SesameSession session, // current session
Connection con, // Database Connection
RelationshipGroupPersist inserts, // list of ids to be
// removed from the group
RelationshipGroupPersist updates, // list of ids to be
// moved to a new group
String relationshipGroupId) // relationship group
// id of the group items are
// being moved into
Notes
This method provides the list of ID’s that are being inserted and updated to the relationship_group_item table. This method returns true on success. DO NOT COMMIT within this method. ExtraView will handle the output, based on the return value. If false is returned any transactions performed in this method will be rolled back. Returning false will also rollback the split or merge of problems in the main code
Example
public boolean ucRelationshipGroupSplitMergeCommon(
SesameSession session, // current session
Connection con, // Database Connection
RelationshipGroupPersist inserts, // list of ids to be removed from the group.
RelationshipGroupPersist updates, // list of ids to be moved to a new group.
String relationshipGroupId) { // relationship group id of the group items
// are being moved into.
return true;
}