javax.ejb

Class NoSuchEntityException

Implemented Interfaces:
Serializable

public class NoSuchEntityException
extends EJBException

The main ejb context.
See Also:
Serialized Form

Constructor Summary

NoSuchEntityException()
NoSuchEntityException(String msg)
NoSuchEntityException(String msg, Exception e)

Method Summary

Methods inherited from class javax.ejb.EJBException

getCausedByException

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

NoSuchEntityException

public NoSuchEntityException()
Usages and Demos :

View More Examples of NoSuchEntityException()
   1:                 if(results == 0){
   2:                      throw new NoSuchEntityException();
   3:                 }
   4:           }catch(SQLException sqlx){
   5:                 throw new EJBException("caught SQLX:  " + sqlx);

View Full Code Here
   1:                 
   2:                     throw new org.openejb.InvalidateReferenceException(new javax.ejb.NoSuchEntityException());
   3:                 }else if(callContext.getCurrentOperation() == Operations.OP_REMOVE){
   4:                     wrapper.disassociate();   
   5:                 }

View Full Code Here

NoSuchEntityException

public NoSuchEntityException(String msg)
Usages and Demos :

View More Examples of NoSuchEntityException(String msg)
   1:       if (!resultSet.next()) {
   2:         throw new NoSuchEntityException("ejbLoad() : Account not found: " + _name);
   3:       }
   4:       _balance = resultSet.getFloat(1);
   5:     } catch (SQLException e) {

View Full Code Here
   1:                if (rs.next() == false)
   2:                   throw new NoSuchEntityException("Instance " + pk.getKey() +
   3:                                                   " not found in database.");
   4: 
   5:                accountNumber = rs.getString(1);

View Full Code Here

NoSuchEntityException

public NoSuchEntityException(String msg,
                             Exception e)