Package org.datanucleus.store.fieldmanager

Examples of org.datanucleus.store.fieldmanager.AttachFieldManager


            int[] nonPKFieldNumbers = getNonPrimaryKeyFieldNumbers();
            if (nonPKFieldNumbers != null && nonPKFieldNumbers.length > 0)
            {
                // Attach the (non-PK) fields from the transient
                detachedSM.provideFields(nonPKFieldNumbers,
                    new AttachFieldManager(this, getSecondClassMutableFields(), getNonPrimaryKeyFields(),
                        true, true, false));
            }

            // Disconnect the transient object
            replaceStateManager((PersistenceCapable) trans, null);
View Full Code Here


            int[] attachFieldNumbers = getFieldNumbersOfLoadedOrDirtyFields(loadedFields, dirtyFields);
            if (attachFieldNumbers != null)
            {
                // Only update the fields that were detached, and only update them if there are any to update
                provideFields(attachFieldNumbers,
                    new AttachFieldManager(this, getSecondClassMutableFields(), dirtyFields,
                        persistent, true, false));
            }

            // Call any "post-attach" listeners
            getCallbackHandler().postAttach(myPC, myPC);
View Full Code Here

        sm.setVersion(version);
        if (attachFieldNumbers != null)
        {
            // Attach all dirty fields, and load other loaded fields
            smDetached.provideFields(attachFieldNumbers,
                new AttachFieldManager(sm, getSecondClassMutableFields(), dirtyFields, persistent, cascade, true));
        }
    }
View Full Code Here

            int[] attachFieldNumbers = getFieldNumbersOfLoadedOrDirtyFields(loadedFields, dirtyFields);
            if (attachFieldNumbers != null)
            {
                // Only update the fields that were detached, and only update them if there are any to update
                provideFields(attachFieldNumbers,
                    new AttachFieldManager(this, getSecondClassMutableFields(), dirtyFields, persistent, true, false));
            }

            // Call any "post-attach" listeners
            getCallbackHandler().postAttach(myPC, myPC);
        }
View Full Code Here

                for (int i=0;i<dirtyFields.length;i++)
                {
                    fieldsToAttach[i] = (loadedFields[i] || dirtyFields[i]);
                }
                smDetached.provideFields(attachFieldNumbers,
                    new AttachFieldManager(sm, getSecondClassMutableFields(), fieldsToAttach, persistent,
                        cascade, true));
            }
            else
            {
                // Attach all dirty fields
                smDetached.provideFields(attachFieldNumbers,
                    new AttachFieldManager(sm, getSecondClassMutableFields(), dirtyFields, persistent,
                        cascade, true));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.datanucleus.store.fieldmanager.AttachFieldManager

Copyright © 2018 www.massapicom. 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.