javax.ejb

Class ObjectNotFoundException

Implemented Interfaces:
Serializable

public class ObjectNotFoundException
extends FinderException

The main ejb context.
See Also:
Serialized Form

Constructor Summary

ObjectNotFoundException()
ObjectNotFoundException(String message)

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ObjectNotFoundException

public ObjectNotFoundException()
Usages and Demos :

View More Examples of ObjectNotFoundException()
   1:          {
   2:             throw new ObjectNotFoundException();
   3:          }
   4:          if(retVal.size() > 1)
   5:          {

View Full Code Here
   1:          {
   2:             throw new ObjectNotFoundException();
   3:          }
   4:       }
   5:       catch(Exception e)

View Full Code Here
   1:         else
   2:             throw new javax.ejb.ObjectNotFoundException();
   3:         
   4:         
   5:     }

View Full Code Here
   1:         if(found) return primaryKey;
   2:         else      throw new javax.ejb.ObjectNotFoundException();
   3:     }
   4: 
   5:     public Integer ejbCreate(String name)

View Full Code Here

ObjectNotFoundException

public ObjectNotFoundException(String message)
Usages and Demos :

View More Examples of ObjectNotFoundException(String message)
   1:       {
   2:          throw new ObjectNotFoundException(NO_SUCH_ENTITY);
   3:       }
   4:       else if(result.size() == 1)
   5:       {

View Full Code Here
   1:       
   2:       return new ObjectNotFoundException(rootCause.getMessage());
   3:     }
   4:     else
   5:       return new FinderExceptionWrapper(rootCause);

View Full Code Here
   1:         else
   2:             throw new ObjectNotFoundException(failureMessage);
   3:     }
   4: 
   5:     public Integer ejbCreate(Integer orderId, String customerId) {

View Full Code Here
   1:         catch (ObjectNotFoundException onfe) {
   2:             throw new javax.ejb.ObjectNotFoundException( onfe.getMessage() );
   3:         }
   4:         catch (Exception e) {
   5:             log.error("Exception in ejbFindByPrimaryKey", e);

View Full Code Here
   1:             } else {
   2:                 throw new ObjectNotFoundException("UsuarioBean - ejbFindByPrimaryKey(): Objeto " + pk.userid + " nao existe!");
   3:             }
   4:         } catch (LojaException e) {
   5:             throw new EJBException("ClienteBean: Falha na comunicacao com o banco - ejbFindByPrimaryKey(): " + e);

View Full Code Here