Examples of LifeCycleState


Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

        // Need to mark the key fields as present
        markKeyFieldsPresent();

        clearMask(SET_MASK);

        LifeCycleState oldState = state;
        state = state.transitionReload(persistenceManager.isActiveTransaction());

        if (!retrieveFromVersionConsistencyCache(additionalField)) {
            // Retrieve the instance from the data store, if this class
            // is not version consistent, or not found in the cache.
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

            if (state.needsReload(optimistic, nontransactionalRead, xactActive)) {
                reload(fieldDesc);
            }

            LifeCycleState oldstate = state;
            state = state.transitionReadField(optimistic, nontransactionalRead, xactActive);

            registerInstance(false, null, oldstate);

            // Only allow dynamic navigation if we are not in the state that allows it.
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

        }

        // State transition.
        // The state transition prevends field updates on deleted instances
        // and must always be executed. See PersistentDeleted.transitionWriteField().
        LifeCycleState oldstate = state;
        state = state.transitionWriteField(xactActive);
        registerInstance(false, newlyRegisteredSMs, oldstate);

        if (state == oldstate && getSetMaskBit(fieldDesc.absoluteID) &&
                getPresenceMaskBit(fieldDesc.absoluteID)) {
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

            }

            reload(null);
        }

        LifeCycleState oldstate = state;
        state = state.transitionWriteField(xactActive);
        registerInstance(false, null, oldstate);

        if (getSetMaskBit(fieldDesc.absoluteID)) {
            // Note: The set mask is set for all fields on make persistent.
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

        Object rc = null;
        Object oid = ff.createObjectId(this, updatedField, value);

        if (oid != null) {
            rc = persistenceManager.getObjectById(oid);
            LifeCycleState rcState = ((SQLStateManager)
                    ((PersistenceCapable) rc).jdoGetStateManager()).state;

            if (forNavigation && (rcState instanceof Hollow)) {
                rc = null;
            }
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

                if (state.needsReload(optimistic, nontransactionalRead, xactActive)) {
                    reload(null);
                }

                LifeCycleState oldstate = state;
                state = state.transitionReadField(optimistic, nontransactionalRead, xactActive);
                persistenceManager.setFlags(persistentObject, READ_OK);
                registerInstance(false, null, oldstate);
            } catch (JDOException e) {
                // restore the jdoFlags.
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

    public synchronized void initialize(boolean persistentInDB) {
        boolean xactActive = persistenceManager.isActiveTransaction();
        boolean optimistic = persistenceManager.isOptimisticTransaction();
        boolean nontransactionalRead = persistenceManager.isNontransactionalRead();
        LifeCycleState oldstate = state;

        if (state == null) {
            if (persistentInDB == false) {
                // Hollow object aquired by PM.getObjectByOid() does not require
                // to be persistent in DB
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

                    return;
                }

                deleteRelationships();

                LifeCycleState oldstate = state;
                state = state.transitionDeletePersistent();
                persistenceManager.setFlags(persistentObject, LOAD_REQUIRED);
                registerInstance(false, null, oldstate);
            } finally {
                releaseLock();
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

            persistenceConfig.getPersistenceCapableClass().getName());
        }

        // Only refresh if the state allows it.
        if (state.isRefreshable()) {
            LifeCycleState oldstate = state;
            state = state.transitionRefreshPersistent();
            reload(null);
            registerInstance(false, null, oldstate);
        }
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

        // Need to mark the key fields as present
        markKeyFieldsPresent();

        clearMask(SET_MASK);

        LifeCycleState oldState = state;
        state = state.transitionReload(persistenceManager.isActiveTransaction());

        if (!retrieveFromVersionConsistencyCache(additionalField)) {
            // Retrieve the instance from the data store, if this class
            // is not version consistent, or not found in the cache.
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.