1 package org.apache.ojb.odmg.link; 2 3 17 18 import org.apache.ojb.broker.PersistenceBroker; 19 import org.apache.ojb.broker.metadata.CollectionDescriptor; 20 21 25 public final class LinkEntryMtoN extends LinkEntry 26 { 27 public LinkEntryMtoN(Object source, CollectionDescriptor ord, Object referenceToLink, boolean unlink) 28 { 29 super(source, ord, referenceToLink, unlink); 30 } 31 32 public void execute(PersistenceBroker broker) 33 { 34 if(isUnlink) 35 { 36 broker.serviceBrokerHelper().unlink(source, (CollectionDescriptor) ord, referenceToLink); 37 } 38 else 39 { 40 broker.serviceBrokerHelper().link(source, (CollectionDescriptor) ord, referenceToLink); 41 } 42 } 43 } 44 | Popular Tags |