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

PersistentNew

public class PersistentNew extends LifeCycleState

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


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

        stateType = P_NEW;
    
Methods Summary
public booleanneedsRestoreOnRollback(boolean retainValues)

        //
        // This is a special case where retores doesn't depend on
        // retainValues.
        //
        return needsRestoreOnRollback;
    
public LifeCycleStatetransitionCommit(boolean retainValues)

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

        return changeState(P_NEW_DELETED);
    
public LifeCycleStatetransitionFlushed()

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

        return changeState(TRANSIENT);