Module org.seasar.doma.core
Package org.seasar.doma.jdbc.entity
Class OriginalStatesNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.seasar.doma.DomaException
org.seasar.doma.jdbc.JdbcException
org.seasar.doma.jdbc.entity.OriginalStatesNotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when a field annotated with
OriginalStates is not found in an entity.
This exception is typically thrown when Doma attempts to access the original states of an
entity but cannot find a field annotated with OriginalStates. The original states field
is required for optimistic concurrency control and for determining which properties have changed
since the entity was loaded.
- See Also:
-
Field Summary
Fields inherited from class org.seasar.doma.DomaException
args, messageResource -
Constructor Summary
ConstructorsConstructorDescriptionOriginalStatesNotFoundException(Throwable cause, String entityClassName, String fieldName) Constructs a new exception with the specified cause, entity class name, and field name. -
Method Summary
Methods inherited from class org.seasar.doma.jdbc.JdbcException
choiceSqlMethods inherited from class org.seasar.doma.DomaException
getArgs, getMessageResourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OriginalStatesNotFoundException
Constructs a new exception with the specified cause, entity class name, and field name.- Parameters:
cause- the cause of this exceptionentityClassName- the fully qualified name of the entity classfieldName- the name of the field that was expected to be annotated withOriginalStates
-
-
Method Details
-
getEntityClassName
-
getFieldName
-