public class DynamicTypeImpl extends java.lang.Object implements DynamicType
DESCRIPTOR_PROPERTY
Constructor and Description |
---|
DynamicTypeImpl(ClassDescriptor descriptor,
DynamicType parentType)
Creation of an EntityTypeImpl for an existing Descriptor with mappings.
|
Modifier and Type | Method and Description |
---|---|
void |
checkSet(java.lang.String propertyName,
java.lang.Object value)
Ensure the value being set is supported by the mapping.
|
java.lang.Object |
clone() |
boolean |
containsProperty(java.lang.String propertyName) |
java.lang.String |
getClassName() |
ClassDescriptor |
getDescriptor() |
DynamicPropertiesManager |
getDynamicPropertiesManager() |
java.lang.Class<? extends DynamicEntity> |
getJavaClass() |
DatabaseMapping |
getMapping(java.lang.String propertyName) |
java.util.List<DatabaseMapping> |
getMappings() |
java.util.Set<DatabaseMapping> |
getMappingsRequiringInitialization() |
java.lang.String |
getName()
Return the entity type's name.
|
int |
getNumberOfProperties()
The current number of properties.
|
DynamicType |
getParentType() |
java.util.List<java.lang.String> |
getPropertiesNames()
The current names of properties.
|
int |
getPropertyIndex(java.lang.String propertyName) |
java.lang.Class<?> |
getPropertyType(int propertyIndex) |
java.lang.Class<?> |
getPropertyType(java.lang.String propertyName) |
boolean |
isInitialized() |
DynamicEntity |
newDynamicEntity() |
void |
setDescriptor(ClassDescriptor descriptor) |
void |
setDynamicPropertiesManager(DynamicPropertiesManager dpm) |
java.lang.String |
toString() |
public DynamicTypeImpl(ClassDescriptor descriptor, DynamicType parentType)
descriptor
- public java.lang.Object clone()
clone
in class java.lang.Object
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 java.util.List<DatabaseMapping> getMappings()
public java.lang.String getName()
DynamicType
ClassDescriptor.getAlias()
getName
in interface DynamicType
DynamicType.getName()
public java.lang.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 java.util.Set<DatabaseMapping> getMappingsRequiringInitialization()
public boolean isInitialized()
public boolean containsProperty(java.lang.String propertyName)
containsProperty
in interface DynamicType
public java.lang.Class<? extends DynamicEntity> getJavaClass()
getJavaClass
in interface DynamicType
public DatabaseMapping getMapping(java.lang.String propertyName)
public java.util.List<java.lang.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 java.lang.Class<?> getPropertyType(java.lang.String propertyName)
getPropertyType
in interface DynamicType
public DynamicEntity newDynamicEntity()
newDynamicEntity
in interface DynamicType
public void checkSet(java.lang.String propertyName, java.lang.Object value) throws DynamicException
DynamicException
public int getPropertyIndex(java.lang.String propertyName)
getPropertyIndex
in interface DynamicType
public java.lang.Class<?> getPropertyType(int propertyIndex)
getPropertyType
in interface DynamicType
public java.lang.String toString()
toString
in class java.lang.Object
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference