public abstract class AttributeTag extends Object
| Constructor and Description |
|---|
AttributeTag() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map<String,Object> |
getCustomMetadataForAttribute(String attributeName,
AttributeValueType attributeValueType)
Attribute tags are recorded in the
TableMetadata
object as custom metadata objects with a string key and a flexible value type. |
protected abstract boolean |
isKeyAttribute()
Returns a boolean that indicates whether this attribute tag qualifies the attribute that has been tagged with
it as a 'key attribute'.
|
protected abstract Map<String,Object> getCustomMetadataForAttribute(String attributeName, AttributeValueType attributeValueType)
TableMetadata
object as custom metadata objects with a string key and a flexible value type. This method will be called
whenever this object is used to tag an attribute in a StaticTableSchema.attributeName - The name of the attribute this tag has been applied to.attributeValueType - The type of the attribute this tag has been applied to. This can be used for
validation, for instance if you have an attribute tag that should only be associated
with a string.TableMetadata object for the table being mapped.
Your extension should know what to do with these custom metadata entries.protected abstract boolean isKeyAttribute()
Copyright © 2019. All rights reserved.