Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate
Class WrongClassException  view WrongClassException download WrongClassException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.hibernate.exception.NestableRuntimeException
                  extended byorg.hibernate.HibernateException
                      extended byorg.hibernate.WrongClassException
All Implemented Interfaces:
org.hibernate.exception.Nestable, java.io.Serializable

public class WrongClassException
extends HibernateException

Thrown when Session.load() selects a row with the given primary key (identifier value) but the row's discriminator value specifies a subclass that is not assignable to the class requested by the user.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.String entityName
           
private  java.io.Serializable identifier
           
 
Fields inherited from class org.hibernate.exception.NestableRuntimeException
delegate
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
WrongClassException(java.lang.String msg, java.io.Serializable identifier, java.lang.String clazz)
           
 
Method Summary
 java.lang.String getEntityName()
           
 java.io.Serializable getIdentifier()
           
 java.lang.String getMessage()
          Returns the detail message string of this throwable.
 
Methods inherited from class org.hibernate.exception.NestableRuntimeException
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

identifier

private final java.io.Serializable identifier

entityName

private final java.lang.String entityName
Constructor Detail

WrongClassException

public WrongClassException(java.lang.String msg,
                           java.io.Serializable identifier,
                           java.lang.String clazz)
Method Detail

getIdentifier

public java.io.Serializable getIdentifier()

getMessage

public java.lang.String getMessage()
Description copied from class: org.hibernate.exception.NestableRuntimeException
Returns the detail message string of this throwable. If it was created with a null message, returns the following: ( cause==null ? null : cause.toString( ).


getEntityName

public java.lang.String getEntityName()