Examples of removeRelation()


Examples of org.exolab.castor.persist.ClassMolder.removeRelation()

                Identity fid = (Identity) alist.get(j);
                Object fetched = null;
                if (fid != null) {
                    fetched = tx.fetch(fieldClassMolder, fid, null);
                    if (fetched != null) {
                        fieldClassMolder.removeRelation(tx, fetched,
                                _classMolder, object);
                    }
                }
            }
        }
View Full Code Here

Examples of org.exolab.castor.persist.ClassMolder.removeRelation()

        Iterator itor = ClassMolderHelper.getIterator(_fieldMolder.getValue(
                object, tx.getClassLoader()));
        while (itor.hasNext()) {
            Object fobject = itor.next();
            if (fobject != null && tx.isPersistent(fobject)) {
                fieldClassMolder.removeRelation(tx, fobject, _classMolder,
                        object);
            }
        }
    }
   
View Full Code Here

Examples of org.exolab.castor.persist.ClassMolder.removeRelation()

                        _fieldMolder.getRelationLoader().deleteRelation(
                                tx.getConnection(oid.getMolder().getLockEngine()),
                                oid.getIdentity(), identity);

                        fieldClassMolder.removeRelation(tx, reldel, _classMolder, object);
                    }
                }
            }

            Collection added = ClassMolderHelper.getAddedValuesList(tx,
View Full Code Here

Examples of org.exolab.castor.persist.ClassMolder.removeRelation()

                            _fieldMolder.getRelationLoader().deleteRelation(
                                    tx.getConnection(oid.getMolder().getLockEngine()),
                                    oid.getIdentity(), deletedId);

                            fieldClassMolder.removeRelation(tx, toBeDeleted,
                                    this._classMolder, object);
                        }
//                    } else {
//                        // what to do if it happens?
                    }
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.RelationData.removeRelation()

        public void removeRelation(JDBCCMRFieldBridge field,
                                   Object id,
                                   JDBCCMRFieldBridge relatedField,
                                   Object relatedId) {
            RelationData local = getRelationData();
            local.removeRelation(field, id, relatedField, relatedId);
        }

        public boolean isDirty() {
            RelationData local = getRelationData();
            return local.isDirty();
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.RelationData.removeRelation()

        public void removeRelation(JDBCCMRFieldBridge field,
                                   Object id,
                                   JDBCCMRFieldBridge relatedField,
                                   Object relatedId) {
            RelationData local = getRelationData();
            local.removeRelation(field, id, relatedField, relatedId);
        }

        public boolean isDirty() {
            RelationData local = getRelationData();
            return local.isDirty();
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.RelationData.removeRelation()

        public void removeRelation(JDBCCMRFieldBridge field,
                                   Object id,
                                   JDBCCMRFieldBridge relatedField,
                                   Object relatedId) {
            RelationData local = getRelationData();
            local.removeRelation(field, id, relatedField, relatedId);
        }

        public boolean isDirty() {
            RelationData local = getRelationData();
            return local.isDirty();
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.RelationData.removeRelation()

        public void removeRelation(JDBCCMRFieldBridge field,
                                   Object id,
                                   JDBCCMRFieldBridge relatedField,
                                   Object relatedId) {
            RelationData local = getRelationData();
            local.removeRelation(field, id, relatedField, relatedId);
        }

        public boolean isDirty() {
            RelationData local = getRelationData();
            return local.isDirty();
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.RelationData.removeRelation()

        public void removeRelation(JDBCCMRFieldBridge field,
                                   Object id,
                                   JDBCCMRFieldBridge relatedField,
                                   Object relatedId) {
            RelationData local = getRelationData();
            local.removeRelation(field, id, relatedField, relatedId);
        }

        public boolean isDirty() {
            RelationData local = getRelationData();
            return local.isDirty();
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.bridge.JDBCCMRFieldBridge.removeRelation()

                log.trace("Remove relation: field=" + cmrField.getFieldName() +
                        " id=" + ctx.getPrimaryKey() +
                        " relatedId=" + relatedId);
            }

            cmrField.removeRelation(ctx, relatedId);

            return null;
        } else if (CMRMessage.SCHEDULE_FOR_CASCADE_DELETE == relationshipMessage) {
            JDBCEntityBridge entity = (JDBCEntityBridge) cmrField.getEntity();
            entity.scheduleForCascadeDelete(ctx);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.