| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private MetadataClass | |
| private String | |
| private Boolean | |
| private Boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ConvertMetadata(MetadataAnnotation convert, MetadataAccessor accessor)
INTERNAL: Used for annotation loading. |
| Modifier and Type | Method and Description |
|---|---|
| private void | apply(final DatabaseMapping
Database attribute mapping. mapping, final MetadataClass JPA annotated class. referenceClass, final ClassAccessor Class accessor. accessor, final boolean Is this converter for MapKey? isForMapKey)INTERNAL: Apply converter class. |
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. objectToCompare)Implements abstract org. |
| public String | |
| public MetadataClass | |
| public String | |
| public Boolean | |
| protected String | getText()
Overrides org. |
| public boolean | |
| public boolean | |
| public int | |
| public void | initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
Overrides org. |
| public boolean | |
| public void | process(final DatabaseMapping
Database attribute mapping. mapping, final MetadataClass JPA annotated class. referenceClass, final ClassAccessor Class accessor. accessor, final String Content of embeddedAttributeName)<name>
from attributeName="value.<name>".INTERNAL:
Apply convert for |
| public void | process(final DatabaseMapping
Database attribute mapping. mapping, final MetadataClass JPA annotated class. referenceClass, final ClassAccessor Class accessor. accessor, final boolean Is this converter for MapKey? isForMapKey)INTERNAL: By the time we get here, we have the mapping that needs to have the convert applied to. |
| public void | |
| public void | |
| public void | |
| public void | |
| private MetadataClass | verify(final DatabaseMapping
Database attribute mapping. mapping, final MetadataClass JPA annotated class. referenceClass, final ClassAccessor Class accessor. accessor, final String Content of embeddedAttributeName)<name>
from attributeName="value.<name>". This value shall never
be null when @ElementCollection mapping is being
processed.INTERNAL:
Verify mapping passed to register |
| m_attributeName | back to summary |
|---|---|
| private String m_attributeName | |
| m_converterClass | back to summary |
|---|---|
| private MetadataClass m_converterClass | |
| m_converterClassName | back to summary |
|---|---|
| private String m_converterClassName | |
| m_disableConversion | back to summary |
|---|---|
| private Boolean m_disableConversion | |
| m_isForMapKey | back to summary |
|---|---|
| private Boolean m_isForMapKey | |
| m_text | back to summary |
|---|---|
| private String m_text | |
| ConvertMetadata | back to summary |
|---|---|
| public ConvertMetadata() INTERNAL: Used for XML loading. | |
| ConvertMetadata | back to summary |
|---|---|
| public ConvertMetadata(MetadataAnnotation convert, MetadataAccessor accessor) INTERNAL: Used for annotation loading. | |
| apply | back to summary |
|---|---|
| private void apply(final DatabaseMapping mapping, final MetadataClass referenceClass, final ClassAccessor accessor, final boolean isForMapKey) INTERNAL: Apply converter class.
| |
| disableConversion | back to summary |
|---|---|
| public boolean disableConversion() INTERNAL: Return true if any auto apply converter should be disabled. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object objectToCompare) Implements abstract org. INTERNAL:
| |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() INTERNAL: Used for OX mapping. | |
| getConverterClass | back to summary |
|---|---|
| public MetadataClass getConverterClass() INTERNAL: | |
| getConverterClassName | back to summary |
|---|---|
| public String getConverterClassName() INTERNAL: Used for OX mapping. | |
| getDisableConversion | back to summary |
|---|---|
| public Boolean getDisableConversion() INTERNAL: Used for OX mapping. | |
| getText | back to summary |
|---|---|
| protected String getText() Overrides org. INTERNAL: Used for OX mapping. Any ORMetadata that supported mixed types, that is, text or other metadata should override this method.
| |
| hasAttributeName | back to summary |
|---|---|
| public boolean hasAttributeName() INTERNAL: | |
| hasConverterClass | back to summary |
|---|---|
| public boolean hasConverterClass() INTERNAL: | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initXMLObject | back to summary |
|---|---|
| public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) Overrides org. INTERNAL:
| |
| isForMapKey | back to summary |
|---|---|
| public boolean isForMapKey() INTERNAL: Return true if this convert metadata is for a map key. Way to tell is if there is an attribute name that begins with "key". Calling this method will also update the attribute name on the first call to it. This call is made when sorting convert annotations. Unlike XML, where the user can sort through <convert> and <map-key-convert> elements, there is only a single Convert annotation that uses a "key" prefix on the attribute name to signify a map key convert. An unforunate decision by the JPA spec committee, but we can make it work of course. | |
| process | back to summary |
|---|---|
| public void process(final DatabaseMapping mapping, final MetadataClass referenceClass, final ClassAccessor accessor, final String embeddedAttributeName) INTERNAL:
Apply convert for
| |
| process | back to summary |
|---|---|
| public void process(final DatabaseMapping mapping, final MetadataClass referenceClass, final ClassAccessor accessor, final boolean isForMapKey) INTERNAL: By the time we get here, we have the mapping that needs to have the convert applied to. Do some validation checks along with some embedded mapping traversing if need be and apply the converter. Will look an auto-apply converter as well if one is not specified directly.
| |
| setAttributeName | back to summary |
|---|---|
| public void setAttributeName(String attributeName) INTERNAL: Used for OX mapping. | |
| setConverterClassName | back to summary |
|---|---|
| public void setConverterClassName(String converterClassName) INTERNAL: Used for OX mapping. | |
| setDisableConversion | back to summary |
|---|---|
| public void setDisableConversion(Boolean disableConversion) INTERNAL: Used for OX mapping. | |
| setText | back to summary |
|---|---|
| public void setText(String text) INTERNAL: Used for OX mapping. | |
| verify | back to summary |
|---|---|
| private MetadataClass verify(final DatabaseMapping mapping, final MetadataClass referenceClass, final ClassAccessor accessor, final String embeddedAttributeName) throws ValidationException INTERNAL:
Verify mapping passed to register
| |