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

PersistentClean

public class PersistentClean extends LifeCycleState

Fields Summary
private static final ResourceBundle
messages
I18N message handler
Constructors Summary
public PersistentClean()


      
        // 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 = false;
        isNew = false;
        isDeleted = false;
        isNavigable = true;
        isRefreshable = true;
        isBeforeImageUpdatable = false;
        needsRegister = true;
        needsReload = false;
        needsRestoreOnRollback = false;
        updateAction = ActionDesc.LOG_NOOP;

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

        if (retainValues) {
            return changeState(P_NON_TX);
        } else {
            return changeState(HOLLOW);
        }
    
public LifeCycleStatetransitionDeletePersistent()
Operations that cause life cycle state transitions

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

        if (retainValues) {
            return changeState(P_NON_TX);
        } else {
            return changeState(HOLLOW);
        }
    
public LifeCycleStatetransitionWriteField(boolean transactionActive)

        assertTransaction(transactionActive);
        return changeState(P_DIRTY);