public class DynamicTypeImpl extends Object implements DynamicType
DESCRIPTOR_PROPERTY
Constructor and Description |
---|
DynamicTypeImpl(ClassDescriptor descriptor,
DynamicType parentType)
Creation of an EntityTypeImpl for an existing Descriptor with mappings.
|
public DynamicTypeImpl(ClassDescriptor descriptor, DynamicType parentType)
descriptor
- public ClassDescriptor getDescriptor()
getDescriptor
in interface DynamicType
ClassDescriptor
for the mapped typepublic void setDescriptor(ClassDescriptor descriptor)
public DynamicPropertiesManager getDynamicPropertiesManager()
public void setDynamicPropertiesManager(DynamicPropertiesManager dpm)
public DynamicType getParentType()
getParentType
in interface DynamicType
public List<DatabaseMapping> getMappings()
public String getName()
DynamicType
ClassDescriptor.getAlias()
getName
in interface DynamicType
DynamicType.getName()
public String getClassName()
getClassName
in interface DynamicType
public int getNumberOfProperties()
DynamicType
Note: Some implementations support adding mapped attributes at runtime so it is best to avoid caching the result.
getNumberOfProperties
in interface DynamicType
public Set<DatabaseMapping> getMappingsRequiringInitialization()
public boolean isInitialized()
public boolean containsProperty(String propertyName)
containsProperty
in interface DynamicType
public Class<? extends DynamicEntity> getJavaClass()
getJavaClass
in interface DynamicType
public DatabaseMapping getMapping(String propertyName)
public List<String> getPropertiesNames()
DynamicType
Note: Some implementations support adding mapped attributes at runtime so it is best to avoid caching the result.
getPropertiesNames
in interface DynamicType
public Class<?> getPropertyType(String propertyName)
getPropertyType
in interface DynamicType
public DynamicEntity newDynamicEntity()
newDynamicEntity
in interface DynamicType
public void checkSet(String propertyName, Object value) throws DynamicException
DynamicException
public int getPropertyIndex(String propertyName)
getPropertyIndex
in interface DynamicType
public Class<?> getPropertyType(int propertyIndex)
getPropertyType
in interface DynamicType
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference