FileDocCategorySizeDatePackage
PersistentDirty.javaAPI DocGlassfish v2 API3643Fri May 04 22:35:16 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.state

PersistentDirty

public class PersistentDirty extends LifeCycleState

Fields Summary
Constructors Summary
public PersistentDirty()

        // these flags are set only in the constructor
        // and shouldn't be changed afterwards
        // (cannot make them final since they are declared in superclass
        // but their values are specific to subclasses)
        isPersistent = true;
        isPersistentInDataStore = true;
        isTransactional = true;
        isDirty = true;
        isNew = false;
        isDeleted = false;
        isNavigable = true;
        isRefreshable = true;
        isBeforeImageUpdatable = true;
        needsRegister = true;
        needsReload = false;
        needsRestoreOnRollback = false;
        updateAction = ActionDesc.LOG_UPDATE;

        stateType = P_DIRTY;
    
Methods Summary
public LifeCycleStatetransitionCommit(boolean retainValues)

        if (retainValues) {
            return changeState(P_NON_TX);
        } else {
            return changeState(HOLLOW);
        }
    
public LifeCycleStatetransitionDeletePersistent()

        return changeState(P_DELETED);
    
public LifeCycleStatetransitionRefresh()

        return changeState(P_CLEAN);
    
public LifeCycleStatetransitionRefreshPersistent()

        return changeState(P_CLEAN);
    
public LifeCycleStatetransitionRollback(boolean retainValues)

        if (retainValues) {
            return changeState(P_NON_TX);
        } else {
            return changeState(HOLLOW);
        }