Examples of deleteObjectInternal()


Examples of org.datanucleus.store.ExecutionContext.deleteObjectInternal()

            {
                // N-1 with join table so no FK here so need to remove from Collection/Map first? (managed relations)
                if (dependent)
                {
                    // Mark the other object for deletion
                    ec.deleteObjectInternal(pc);
                }
                else
                {
                    // Managed Relations : remove element from collection/map
                    if (relatedMmds[0].hasCollection())
View Full Code Here

Examples of org.datanucleus.store.ExecutionContext.deleteObjectInternal()

        {
            // N-1 uni with join table
            if (dependent)
            {
                // Mark the other object for deletion
                ec.deleteObjectInternal(pc);
            }
        }
        else
        {
            // No relation so what is this field ?
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

                        objSM.flush();
                    }
                    else
                    {
                        // Element not yet marked for deletion so go through the normal process
                        om.deleteObjectInternal(element);
                    }
                }
            }
        }
        else
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

        }

        if (allowDependentField && ownerMemberMetaData.getCollection().isDependentElement())
        {
            // Delete the element since it is dependent
            om.deleteObjectInternal(element);
        }
        else if (ownerMapping.isNullable())
        {
            // Bidirectional 1-N, so nullify the owner
            PersistenceCapable pcElement = (PersistenceCapable) element;
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

            }
        }
        else
        {
            // otherwise remove the element since we can't null its FK
            om.deleteObjectInternal(element);
        }

        return true;
    }
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

                        elementSM.flush();
                    }
                    else
                    {
                        // Element not yet marked for deletion so go through the normal process
                        om.deleteObjectInternal(element);
                    }
                }
            }
        }
        else
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

        MapMetaData mapmd = ownerMemberMetaData.getMap();
        ApiAdapter api = om.getApiAdapter();
        if (mapmd.isDependentKey() && !mapmd.isEmbeddedKey() && api.isPersistable(key))
        {
            // Delete the key if it is dependent
            om.deleteObjectInternal(key);
        }

        if (mapmd.isDependentValue() && !mapmd.isEmbeddedValue() && api.isPersistable(oldValue))
        {
            if (!containsValue(sm, oldValue))
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

        if (mapmd.isDependentValue() && !mapmd.isEmbeddedValue() && api.isPersistable(oldValue))
        {
            if (!containsValue(sm, oldValue))
            {
                // Delete the value if it is dependent and is not keyed by another key
                om.deleteObjectInternal(oldValue);
            }
        }

        return oldValue;
    }
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

        CollectionMetaData collmd = ownerMemberMetaData.getCollection();
        if (allowDependentField && collmd.isDependentElement() && !collmd.isEmbeddedElement())
        {
            // TODO Could this element be stored as a duplicate in this set ?
            // Delete the element if it is dependent
            om.deleteObjectInternal(element);
        }

        return modified;
    }
View Full Code Here

Examples of org.jpox.ObjectManager.deleteObjectInternal()

            }
        }
        // otherwise just delete the item
        else
        {
            om.deleteObjectInternal(oldValue);
        }
    }

    /**
     * Method to clear the map of all values.
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.