Exemplo n.º 1
0
 public void setMailMessageRelationship(er.corebl.model.ERCMailMessage value) {
   if (_ERCMailOpen.LOG.isDebugEnabled()) {
     _ERCMailOpen.LOG.debug("updating mailMessage from " + mailMessage() + " to " + value);
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     setMailMessage(value);
   } else if (value == null) {
     er.corebl.model.ERCMailMessage oldValue = mailMessage();
     if (oldValue != null) {
       removeObjectFromBothSidesOfRelationshipWithKey(oldValue, _ERCMailOpen.MAIL_MESSAGE_KEY);
     }
   } else {
     addObjectToBothSidesOfRelationshipWithKey(value, _ERCMailOpen.MAIL_MESSAGE_KEY);
   }
 }
Exemplo n.º 2
0
 public void setUserAgentRelationship(er.corebl.model.ERCUserAgent value) {
   if (_ERCMailOpen.LOG.isDebugEnabled()) {
     _ERCMailOpen.LOG.debug("updating userAgent from " + userAgent() + " to " + value);
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     setUserAgent(value);
   } else if (value == null) {
     er.corebl.model.ERCUserAgent oldValue = userAgent();
     if (oldValue != null) {
       removeObjectFromBothSidesOfRelationshipWithKey(oldValue, _ERCMailOpen.USER_AGENT_KEY);
     }
   } else {
     addObjectToBothSidesOfRelationshipWithKey(value, _ERCMailOpen.USER_AGENT_KEY);
   }
 }
Exemplo n.º 3
0
 public void setDateOpened(NSTimestamp value) {
   if (_ERCMailOpen.LOG.isDebugEnabled()) {
     _ERCMailOpen.LOG.debug("updating dateOpened from " + dateOpened() + " to " + value);
   }
   takeStoredValueForKey(value, _ERCMailOpen.DATE_OPENED_KEY);
 }