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

AutoPersistentNew

public class AutoPersistentNew extends LifeCycleState

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


      
        // 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;
        isAutoPersistent = true;
        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 = AP_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)

        return changeState(TRANSIENT);
    
public LifeCycleStatetransitionDeletePersistent()

        return changeState(AP_NEW_DELETED);
    
public LifeCycleStatetransitionFlushed()

        return changeState(AP_NEW_FLUSHED);
    
public LifeCycleStatetransitionMakePending()

        return changeState(AP_NEW_PENDING);
    
public LifeCycleStatetransitionMakePersistent()

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

        return changeState(TRANSIENT);