Class PersistentNew


  • class PersistentNew
    extends org.datanucleus.state.LifeCycleState
    Class representing the life cycle state of PersistentNew.
    • Field Summary

      • Fields inherited from class org.datanucleus.state.LifeCycleState

        DETACHED_CLEAN, DETACHED_DIRTY, HOLLOW, ILLEGAL_STATE, isDeleted, isDirty, isNew, isPersistent, isTransactional, P_CLEAN, P_DELETED, P_DIRTY, P_NEW, P_NEW_DELETED, P_NONTRANS, P_NONTRANS_DIRTY, stateType, T_CLEAN, T_DIRTY, TOTAL, TRANSIENT
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PersistentNew()
      Protected Constructor to prevent external instantiation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Method to return a string version of this object.
      org.datanucleus.state.LifeCycleState transitionCommit​(org.datanucleus.state.DNStateManager sm, org.datanucleus.transaction.Transaction tx)  
      org.datanucleus.state.LifeCycleState transitionDeletePersistent​(org.datanucleus.state.DNStateManager sm)  
      org.datanucleus.state.LifeCycleState transitionDetach​(org.datanucleus.state.DNStateManager sm)  
      org.datanucleus.state.LifeCycleState transitionMakeNontransactional​(org.datanucleus.state.DNStateManager sm)  
      org.datanucleus.state.LifeCycleState transitionMakeTransient​(org.datanucleus.state.DNStateManager sm, boolean useFetchPlan, boolean detachAllOnCommit)  
      org.datanucleus.state.LifeCycleState transitionRollback​(org.datanucleus.state.DNStateManager sm, org.datanucleus.transaction.Transaction tx)  
      • Methods inherited from class org.datanucleus.state.LifeCycleState

        changeState, changeTransientState, isDeleted, isDirty, isNew, isPersistent, isTransactional, stateType, transitionAttach, transitionBegin, transitionEvict, transitionMakePersistent, transitionMakeTransactional, transitionReadField, transitionRefresh, transitionRetrieve, transitionRetrieve, transitionSerialize, transitionWriteField
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PersistentNew

        protected PersistentNew()
        Protected Constructor to prevent external instantiation.
    • Method Detail

      • transitionDeletePersistent

        public org.datanucleus.state.LifeCycleState transitionDeletePersistent​(org.datanucleus.state.DNStateManager sm)
        Overrides:
        transitionDeletePersistent in class org.datanucleus.state.LifeCycleState
      • transitionMakeNontransactional

        public org.datanucleus.state.LifeCycleState transitionMakeNontransactional​(org.datanucleus.state.DNStateManager sm)
        Overrides:
        transitionMakeNontransactional in class org.datanucleus.state.LifeCycleState
      • transitionMakeTransient

        public org.datanucleus.state.LifeCycleState transitionMakeTransient​(org.datanucleus.state.DNStateManager sm,
                                                                            boolean useFetchPlan,
                                                                            boolean detachAllOnCommit)
        Overrides:
        transitionMakeTransient in class org.datanucleus.state.LifeCycleState
      • transitionCommit

        public org.datanucleus.state.LifeCycleState transitionCommit​(org.datanucleus.state.DNStateManager sm,
                                                                     org.datanucleus.transaction.Transaction tx)
        Overrides:
        transitionCommit in class org.datanucleus.state.LifeCycleState
      • transitionRollback

        public org.datanucleus.state.LifeCycleState transitionRollback​(org.datanucleus.state.DNStateManager sm,
                                                                       org.datanucleus.transaction.Transaction tx)
        Overrides:
        transitionRollback in class org.datanucleus.state.LifeCycleState
      • transitionDetach

        public org.datanucleus.state.LifeCycleState transitionDetach​(org.datanucleus.state.DNStateManager sm)
        Overrides:
        transitionDetach in class org.datanucleus.state.LifeCycleState
      • toString

        public java.lang.String toString()
        Method to return a string version of this object.
        Specified by:
        toString in class org.datanucleus.state.LifeCycleState
        Returns:
        The string "P_NEW".