Package org.jpox.exceptions

Examples of org.jpox.exceptions.JPOXUserException


     * @param sm StateManager.
     * @return new LifeCycle state.
     */
    public LifeCycleState transitionMakeNontransactional(StateManager sm)
    {
        throw new JPOXUserException(LOCALISER.msg("027011"), sm.getInternalObjectId());
    }
View Full Code Here


    {
        if (detachAllOnCommit)
        {
            return changeState(sm, TRANSIENT);
        }
        throw new JPOXUserException(LOCALISER.msg("027012"),sm.getInternalObjectId());
    }
View Full Code Here

     * @param sm StateManager.
     * @return new LifeCycle state.
     */
    public LifeCycleState transitionMakeNontransactional(StateManager sm)
    {
        throw new JPOXUserException(LOCALISER.msg("027007"),sm.getInternalObjectId());
    }
View Full Code Here

     * @param useFetchPlan to make transient the fields in the fetch plan
     * @return new LifeCycle state.
     */
    public LifeCycleState transitionMakeTransient(StateManager sm, boolean useFetchPlan, boolean detachAllOnCommit)
    {
        throw new JPOXUserException(LOCALISER.msg("027008"),sm.getInternalObjectId());
    }
View Full Code Here

     * @param sm StateManager.
     * @return new LifeCycle state.
     **/
    public LifeCycleState transitionWriteField(StateManager sm)
    {
        throw new JPOXUserException(LOCALISER.msg("027010"),sm.getInternalObjectId());
    }
View Full Code Here

     * @param sm StateManager.
     * @return new LifeCycle state.
     */
    public LifeCycleState transitionMakeNontransactional(StateManager sm)
    {
        throw new JPOXUserException(LOCALISER.msg("027013"), sm.getInternalObjectId());
    }
View Full Code Here

    {
        if (detachAllOnCommit)
        {
            return changeState(sm, TRANSIENT);
        }
        throw new JPOXUserException(LOCALISER.msg("027014"), sm.getInternalObjectId());
    }
View Full Code Here

    public LifeCycleState transitionReadField(StateManager sm, boolean isLoaded)
    {
        Transaction tx = sm.getObjectManager().getTransaction();
    if (!tx.isActive() && !tx.getNontransactionalRead())
    {
          throw new JPOXUserException(LOCALISER.msg("027002"),sm.getInternalObjectId());
    }

        if (tx.isActive() && ! tx.getOptimistic())
        {
            // Save the fields for rollback.
View Full Code Here

    public LifeCycleState transitionWriteField(StateManager sm)
    {
        Transaction tx = sm.getObjectManager().getTransaction();
        if (!tx.isActive() && !tx.getNontransactionalWrite())
        {
            throw new JPOXUserException(LOCALISER.msg("027001"), sm.getInternalObjectId());
        }
        if (tx.isActive())
        {
            // Save the fields for rollback.
            sm.saveFields();
View Full Code Here

    public LifeCycleState transitionReadField(StateManager sm, boolean isLoaded)
    {
        Transaction tx = sm.getObjectManager().getTransaction();
        if (!tx.isActive() && !tx.getNontransactionalRead())
        {
            throw new JPOXUserException(LOCALISER.msg("027001"), sm.getInternalObjectId());
        }

        if (!tx.getOptimistic() && tx.isActive())
        {
            return changeState(sm, P_CLEAN);
View Full Code Here

TOP

Related Classes of org.jpox.exceptions.JPOXUserException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.