/** * The key has been touched. * * @param Notification * msg - The notification message. */ protected void touchKeyShapeAdapter(Notification msg) { if (msg == null) return; ContainerManagedEntity cmp = (ContainerManagedEntity) getTarget(); JavaClass primaryKeyClass = cmp.getPrimaryKey(); //Synch the two lists. synchCMPandKeyAttributes(cmp, primaryKeyClass); } // touchKeyShapeAdapter
/** * The ejb class has been flushed. * * @param Notification * msg - The notification message. */ protected void touchBeanAdapter(Notification msg) { if (msg == null) return; ContainerManagedEntity cmp = (ContainerManagedEntity) getTarget(); List cmpAttributes = cmp.getPersistentAttributes(); if (cmpAttributes != null || !cmpAttributes.isEmpty()) { boolean modFlag = getCurrentModificationFlag(); try { for (int i = 0; i < cmpAttributes.size(); i++) { CMPAttribute cmpAttr = (CMPAttribute) cmpAttributes.get(i); if (cmpAttr != null && !cmpAttr.isDerived()) { cmpAttr.setEType(null); } } } finally { setModificationFlag(modFlag); } } synchCMPandKeyAttributes(cmp, cmp.getPrimaryKey()); }