org.eclipse.persistence.dynamic
Class DynamicTypeBuilder

The EntityTypeBuilder is a factory class for creating and extending dynamic
entity types. After being constructed in either usage the application can
then use the provided API to customize mapping information of the type.

Author:

dclarke, mnorman

Since:

EclipseLink 1.2

Field Summary

protected org.eclipse.persistence.internal.dynamic.DynamicTypeImpl

entityType
The type being configured for dynamic use or being created/extended

loadDynamicProject(java.io.InputStream resourceStream,
DatabaseLogin login,
DynamicClassLoader dynamicClassLoader)
Load a dynamic project from deployment XML creating dynamic types for all
descriptors where the provided class name does not exist.

DynamicTypeBuilder

Create an EntityType for a new dynamic type. The contained EntityType and
its wrapped descriptor are not automatically added to any session. This
must be done by the application after the type's is fully configured.

addDirectMapping

Allows DirectToFieldMapping (@Basic) mapping to be added to a
dynamic type through API. This method can be used on a new
DynamicTypeImpl that has yet to be added to a session and have
its descriptor initialized, or it can be called on an active
(initialized) descriptor.

addOneToOneMapping

Allows OneToOneMapping (@OneToOne and @ManyToOne) mappings to be
added to a dynamic type through API. This method can be used on a new
DynamicTypeImpl that has yet to be added to a session and have
its descriptor initialized, or it can be called on an active
(initialized) descriptor.