public class DynamicException extends EclipseLinkException
Modifier and Type | Field and Description |
---|---|
static int |
DYNAMIC_ENTITY_HAS_NULL_TYPE |
static int |
DYNAMIC_ENTITY_NOT_FOUND |
static int |
ILLEGAL_DYNAMIC_CLASSWRITER |
static int |
ILLEGAL_PARENT_CLASSNAME |
static int |
INCOMPATIBLE_DYNAMIC_CLASSWRITERS |
static int |
INVALID_PROPERTY_GET_WRONG_TYPE |
static int |
INVALID_PROPERTY_INDEX |
static int |
INVALID_PROPERTY_NAME |
static int |
INVALID_PROPERTY_SET_WRONG_TYPE |
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
Modifier | Constructor and Description |
---|---|
protected |
DynamicException(java.lang.String message) |
protected |
DynamicException(java.lang.String message,
java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
static DynamicException |
entityHasNullType(DynamicEntity entity)
The
DynamicEntity has a null type indicating an illegal state
of the entity. |
static DynamicException |
entityNotFoundException(java.lang.String message)
A
DynamicEntity could not be found |
static DynamicException |
illegalDynamicClassWriter(DynamicClassLoader loader,
java.lang.String parentClassName)
A
DynamicClassWriter was attempted to be instantiated with a null
loader or invalid parentClassName. |
static DynamicException |
illegalParentClassName(java.lang.String parentClassName)
A null or empty string was provided as the parent class for a dynamic
class being registered for creation.
|
static DynamicException |
incompatibleDuplicateWriters(java.lang.String className,
EclipseLinkClassWriter existingWriter,
EclipseLinkClassWriter writer)
A call to
DynamicClassLoader.addClass(String, org.eclipse.persistence.dynamic.EclipseLinkClassWriter)
or
DynamicClassLoader.createDynamicClass(String, DynamicClassWriter)
was invoked with a className that already had a
DynamicClassWriter that is not compatible with the provided
writer. |
static DynamicException |
invalidGetPropertyType(DatabaseMapping mapping,
java.lang.ClassCastException cce)
A request to get a persistent value from a DynamicEntity was made
providing a propertyName that does exist but the provided return type
failed when casting.
|
static DynamicException |
invalidPropertyIndex(DynamicType type,
int propertyIndex)
Exception throw when attempting to access a dynamic property by index
which does not have an associated mapping.
|
static DynamicException |
invalidPropertyName(DynamicType type,
java.lang.String propertyName)
A request to get a persistent value from a DynamicEntity was made
providing a propertyName that does not correspond to any mappings in the
underlying descriptor.
|
static DynamicException |
invalidSetPropertyType(DatabaseMapping mapping,
java.lang.Object value)
Invalid value attempted to be set into a
DynamicEntity 's
property. |
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
public static final int INVALID_PROPERTY_NAME
public static final int INVALID_PROPERTY_GET_WRONG_TYPE
public static final int INVALID_PROPERTY_SET_WRONG_TYPE
public static final int INVALID_PROPERTY_INDEX
public static final int ILLEGAL_DYNAMIC_CLASSWRITER
public static final int DYNAMIC_ENTITY_NOT_FOUND
public static final int DYNAMIC_ENTITY_HAS_NULL_TYPE
public static final int ILLEGAL_PARENT_CLASSNAME
public static final int INCOMPATIBLE_DYNAMIC_CLASSWRITERS
protected DynamicException(java.lang.String message)
protected DynamicException(java.lang.String message, java.lang.Throwable throwable)
public static DynamicException invalidPropertyName(DynamicType type, java.lang.String propertyName)
DynamicEntity.get(String)
public static DynamicException invalidGetPropertyType(DatabaseMapping mapping, java.lang.ClassCastException cce)
DynamicEntity.get(String)
public static DynamicException invalidSetPropertyType(DatabaseMapping mapping, java.lang.Object value)
DynamicEntity
's
property. This could be caused by:
mapping
- value
- public static DynamicException invalidPropertyIndex(DynamicType type, int propertyIndex)
DynamicType.getNumberOfProperties()
.DynamicTypeImpl.getMapping(String)
public static DynamicException illegalDynamicClassWriter(DynamicClassLoader loader, java.lang.String parentClassName)
DynamicClassWriter
was attempted to be instantiated with a null
loader or invalid parentClassName. The parentClassName must not be null
or an empty string.public static DynamicException entityNotFoundException(java.lang.String message)
DynamicEntity
could not be foundpublic static DynamicException entityHasNullType(DynamicEntity entity)
DynamicEntity
has a null type indicating an illegal state
of the entity.DynamicEntityImpl.getType()
public static DynamicException illegalParentClassName(java.lang.String parentClassName)
DynamicClassWriter
public static DynamicException incompatibleDuplicateWriters(java.lang.String className, EclipseLinkClassWriter existingWriter, EclipseLinkClassWriter writer)
DynamicClassLoader.addClass(String, org.eclipse.persistence.dynamic.EclipseLinkClassWriter)
or
DynamicClassLoader.createDynamicClass(String, DynamicClassWriter)
was invoked with a className that already had a
DynamicClassWriter
that is not compatible with the provided
writer.