Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.openjpa.kernel
Class PNonTransDeletedState

    java.lang.Object
      org.apache.openjpa.kernel.PCState
          org.apache.openjpa.kernel.PNonTransDeletedState

All Implemented Interfaces:
  Serializable

    public class PNonTransDeletedState

extends PCState

Lifecycle state. Represents an instance that was deleted outside a transaction.

Author:
  Steve Kim
See Also:
  Serialized Form

Field Summary

Fields inherited from class org.apache.openjpa.kernel.PCState
`ECLEAN, ECOPY, EDELETED, EDIRTY, ENONTRANS, HOLLOW, PCLEAN, PDELETED, PDELETEDFLUSHED, PDIRTY, PNEW, PNEWDELETED, PNEWFLUSHEDDELETED, PNEWFLUSHEDDELETEDFLUSHED, PNEWPROVISIONAL, PNONTRANS, PNONTRANSDELETED, PNONTRANSDIRTY, PNONTRANSNEW, TCLEAN, TDIRTY, TLOADED, TRANSIENT`

Constructor Summary
`PNonTransDeletedState()`

Method Summary
`(package private) PCState` | `beforeNontransactionalRead(StateManagerImpl context, int field)` Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read outside of an active transaction.
`(package private) PCState` | `beforeNontransactionalWrite(StateManagerImpl context, int field, boolean mutate)` Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written outside of an active transaction.
`(package private) PCState` | `beforeOptimisticRead(StateManagerImpl context, int field)` Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read in an optimistic transaction.
`(package private) PCState` | `beforeOptimisticWrite(StateManagerImpl context, int field, boolean mutate)` Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written within an optimistic transaction.
`(package private) PCState` | `beforeRead(StateManagerImpl context, int field)` Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read within an active transaction.
`(package private) PCState` | `beforeWrite(StateManagerImpl context, int field, boolean mutate)` Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written within an active transaction.
`(package private) boolean` | `isDeleted()` Return whether this is a deleted state.
`(package private) boolean` | `isDirty()` Return whether this is a dirty state.
`(package private) boolean` | `isPendingTransactional()` Return whether this is a state that will become transactional upon the begin of the next transaction.
`(package private) boolean` | `isPersistent()` Return whether this is a persistent state.
`(package private) PCState` | `persist(StateManagerImpl context)` Perform any actions necesssary and return the proper lifecycle state on a call to `Broker.persist(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)` with the given instance.
`String` | `toString()`
`(package private) PCState` | `transactional(StateManagerImpl context)` Perform any actions necesssary and return the proper lifecycle state on a call to `StoreContext.nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)` with the given instance.

Methods inherited from class org.apache.openjpa.kernel.PCState
`afterNontransactionalRefresh, afterOptimisticRefresh, afterRefresh, beforeFlush, commit, commitRetain, delete, error, evict, flush, initialize, isNew, isProvisional, isTransactional, isVersionCheckRequired, nonprovisional, nontransactional, readResolve, release, rollback, rollbackRestore`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### PNonTransDeletedState

    public PNonTransDeletedState()

Method Detail

### persist

    PCState persist(StateManagerImpl context)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state on a call to `Broker.persist(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)` with the given instance. Returns the `this` pointer by default. Note: this method is not called for embedded states, and is only called when an existing managed instance is the target of a persist call.

  Overrides:
    `persist` in class `PCState`

### transactional

    PCState transactional(StateManagerImpl context)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state on a call to `StoreContext.nontransactional(java.lang.Object, org.apache.openjpa.kernel.OpCallbacks)` with the given instance. Returns the `this` pointer by default.

  Overrides:
    `transactional` in class `PCState`

### beforeRead

    PCState beforeRead(StateManagerImpl context,
                       int field)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read within an active transaction. The given field number can be -1 if it is a general object read. Returns the `this` pointer by default.

  Overrides:
    `beforeRead` in class `PCState`

### beforeNontransactionalRead

    PCState beforeNontransactionalRead(StateManagerImpl context,
                                       int field)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read outside of an active transaction. The given field number can be -1 if it is a general object read. Returns the `this` pointer by default.

  Overrides:
    `beforeNontransactionalRead` in class `PCState`

### beforeOptimisticRead

    PCState beforeOptimisticRead(StateManagerImpl context,
                                 int field)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being read in an optimistic transaction. The given field number can be -1 if it is a general object read. Returns the `this` pointer by default.

  Overrides:
    `beforeOptimisticRead` in class `PCState`

### beforeWrite

    PCState beforeWrite(StateManagerImpl context,
                        int field,
                        boolean mutate)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written within an active transaction. The mutate parameter tells if it is a direct mutation on an SCO field. Returns the `this` pointer by default.

  Overrides:
    `beforeWrite` in class `PCState`

### beforeOptimisticWrite

    PCState beforeOptimisticWrite(StateManagerImpl context,
                                  int field,
                                  boolean mutate)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written within an optimistic transaction. The mutate parameter tells if it is a direct mutation on an SCO field. Returns the `this` pointer by default.

  Overrides:
    `beforeOptimisticWrite` in class `PCState`

### beforeNontransactionalWrite

    PCState beforeNontransactionalWrite(StateManagerImpl context,
                                        int field,
                                        boolean mutate)

  Description copied from class: `PCState`
  Perform any actions necesssary and return the proper lifecycle state prior to the state of the given instance being written outside of an active transaction. The mutate parameter tells if it is a direct mutation on an SCO field. Returns the `this` pointer by default.

  Overrides:
    `beforeNontransactionalWrite` in class `PCState`

### isPendingTransactional

    boolean isPendingTransactional()

  Description copied from class: `PCState`
  Return whether this is a state that will become transactional upon the begin of the next transaction. Returns `false` by default.

  Overrides:
    `isPendingTransactional` in class `PCState`

### isPersistent

    boolean isPersistent()

  Description copied from class: `PCState`
  Return whether this is a persistent state. Returns `false` by default.

  Overrides:
    `isPersistent` in class `PCState`

### isDeleted

    boolean isDeleted()

  Description copied from class: `PCState`
  Return whether this is a deleted state. Returns `false` by default.

  Overrides:
    `isDeleted` in class `PCState`

### isDirty

    boolean isDirty()

  Description copied from class: `PCState`
  Return whether this is a dirty state. Returns `false` by default.

  Overrides:
    `isDirty` in class `PCState`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.