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

PersistentDeleted

public class PersistentDeleted extends LifeCycleState

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


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

        // The following flag does not allow merge
        needMerge = false;

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

        return changeState(TRANSIENT);
    
public LifeCycleStatetransitionFlushed()

        return changeState(P_DELETED_FLUSHED);
    
public LifeCycleStatetransitionReadField(boolean optimisitic, boolean nontransactionalRead, boolean transactionActive)

        // Cannot read a deleted object
        throw new JDOUserException(I18NHelper.getMessage(messages,
                "jdo.lifecycle.deleted.accessField")); // NOI18N
    
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);
        }
    
public LifeCycleStatetransitionWriteField(boolean transactionActive)

        // Cannot update a deleted object
        throw new JDOUserException(I18NHelper.getMessage(messages,
                "jdo.lifecycle.deleted.accessField")); // NOI18N