Class BwEventProxy

All Implemented Interfaces:
Serializable, Comparable<BwEvent>, Comparator<BwEvent>, AlarmsEntity, AttachmentsEntity, AttendeesEntity, CategorisedEntity, ChangeFlag, CommentedEntity, ConceptEntity, ContactedEntity, DescriptionEntity<BwLongString>, EventEntity, OwnedEntity, RecurrenceEntity, ResourcedEntity, ShareableEntity, StartEndComponent, SummaryEntity, XpropsEntity, org.bedework.util.logging.Logged

public class BwEventProxy extends BwEvent implements ChangeFlag

DO NOT EDIT THE GENERATED JAVA.

The proxy java source is generated based on annotations in the event file. To change the proxy, either make changes to the annotations processing or change the annotations in the event class.

An event proxy in Bedework.If an event is an alias or reference to another event, this class holds links to both. The referring event will hold user changes, which override the values in the target.

For any collection we need to copy the entire collection into the referring event if a change is made. We need a flag to indicate such changes.

We cannot just look at the values in the two objects becuase we have to call the getXXX method to allow the persistance engine to retrieve the collection.

We could also remove the current mode, that of creating an empty collection in the get methods when none exists.

XXX Incomplete. Some fields we can handle easily (String mostly). Problems still arise with fields like locations and recurrence stuff.

Version:
1.0
Author:
Mike Douglass
See Also: