Examples of ObjectDeletedException


Examples of com.jitcaforwin.basic.api.exceptions.ObjectDeletedException

    try {
      ResultObject result = this.iTunesCom.callFunction("CreatePlaylistInSource", playlistName,
          source.getDispatchObject());
      return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(source);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new ObjectLockedException(source);
    }
  }
View Full Code Here

Examples of com.jitcaforwin.basic.exceptions.ObjectDeletedException

  public long getCount() throws ObjectDeletedException{
    try{ResultObject count = this.iTunesCom.callFunction("Count");
    return count.getLong();
    } catch (ITUNES_E_OBJECTDELETED e){
      throw new ObjectDeletedException();
    }
  }
View Full Code Here

Examples of org.exolab.castor.jdo.ObjectDeletedException

                            throw new ObjectModifiedException(Messages.format(
                                    "persist.objectModified", _type, identity,
                                    enlistFieldsNotMatching.toString()));
                        }
                    }
                    throw new ObjectDeletedException(Messages.format(
                            "persist.objectDeleted", _type, identity));
                }               
            } catch (SQLException except) {
                LOG.fatal(Messages.format("jdo.storeFatal", _type,  storeStatement), except);
                throw new PersistenceException(Messages.format("persist.nested", except), except);
View Full Code Here

Examples of org.hibernate.ObjectDeletedException

        break;
      case TRANSIENT:
        entityIsTransient(event, createCache);
        break;
      default:
        throw new ObjectDeletedException(
            "deleted entity passed to persist",
            null,
            getLoggableName( event.getEntityName(), entity )
          );
    }
View Full Code Here

Examples of org.hibernate.ObjectDeletedException

            break;
          case PERSISTENT:
            entityIsPersistent(event, copyCache);
            break;
          default: //DELETED
            throw new ObjectDeletedException(
                "deleted instance passed to merge",
                null,
                getLoggableName( event.getEntityName(), entity )
              );     
        }
View Full Code Here

Examples of org.hibernate.ObjectDeletedException

    if ( requestedLockMode.greaterThan( entry.getLockMode() ) ) {
      // The user requested a "greater" (i.e. more restrictive) form of
      // pessimistic lock

      if ( entry.getStatus() != Status.MANAGED ) {
        throw new ObjectDeletedException(
            "attempted to lock a deleted instance",
            entry.getId(),
            entry.getPersister().getEntityName()
        );
      }
View Full Code Here

Examples of org.hibernate.ObjectDeletedException

    EntityEntry e = persistenceContext.getEntry(object);
    if ( e == null ) {
      throw new TransientObjectException( "Given object not associated with the session" );
    }
    if ( e.getStatus() != Status.MANAGED ) {
      throw new ObjectDeletedException(
          "The given object was deleted",
          e.getId(),
          e.getPersister().getEntityName()
        );
    }
View Full Code Here

Examples of org.hibernate.ObjectDeletedException

        MessageHelper.infoString( entityEntry.getPersister(), entityEntry.getId(), getFactory() )
      );
    }

    if ( persistenceContext.getCascadeLevel() > 0 ) {
      throw new ObjectDeletedException(
        "deleted object would be re-saved by cascade (remove deleted object from associations)",
        entityEntry.getId(),
        entityEntry.getPersister().getEntityName()
      );
    }
View Full Code Here

Examples of org.hibernate.ObjectDeletedException

        break;
      case TRANSIENT:
        entityIsTransient(event, createCache);
        break;
      default:
        throw new ObjectDeletedException(
            "deleted entity passed to persist",
            null,
            getLoggableName( event.getEntityName(), entity )
          );
    }
View Full Code Here

Examples of org.hibernate.ObjectDeletedException

            break;
          case PERSISTENT:
            entityIsPersistent(event, copyCache);
            break;
          default: //DELETED
            throw new ObjectDeletedException(
                "deleted instance passed to merge",
                null,
                getLoggableName( event.getEntityName(), entity )
              );     
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.