public class GenericColumn extends java.lang.Object implements Column, SupportsTags
Column.ColumnImpl
DEFAULT_VALUE_NOT_SET, DEFAULT_VALUE_OF_CURRENT_TIMESTAMP
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
associateTags(java.lang.String[] tagsToAdd,
java.lang.String[] tagsToRemove)
Associate tags to the specific object.
|
boolean |
autoIncrement() |
java.lang.String |
comment() |
Type |
dataType() |
Expression |
defaultValue() |
boolean |
equals(java.lang.Object obj) |
Tag |
getTag(java.lang.String name)
Get a tag by its name for the specific object.
|
int |
hashCode() |
java.lang.String[] |
listTags()
List all the tag names for the specific object.
|
Tag[] |
listTagsInfo()
List all the tags with details for the specific object.
|
java.lang.String |
name() |
boolean |
nullable() |
SupportsTags |
supportsTags() |
public SupportsTags supportsTags()
supportsTags
in interface Column
SupportsTags
if the column supports tag operations.public java.lang.String[] listTags()
SupportsTags
listTags
in interface SupportsTags
public Tag[] listTagsInfo()
SupportsTags
listTagsInfo
in interface SupportsTags
public Tag getTag(java.lang.String name) throws NoSuchTagException
SupportsTags
getTag
in interface SupportsTags
name
- The name of the tag.NoSuchTagException
- If the tag does not associate with the object.public java.lang.String[] associateTags(java.lang.String[] tagsToAdd, java.lang.String[] tagsToRemove) throws TagAlreadyAssociatedException
SupportsTags
TagAlreadyAssociatedException
associateTags
in interface SupportsTags
tagsToAdd
- The arrays of tag name to be added to the object.tagsToRemove
- The array of tag name to be removed from the object.TagAlreadyAssociatedException
- If the tag is already associated with the object.public java.lang.String name()
public Type dataType()
public java.lang.String comment()
public boolean nullable()
public boolean autoIncrement()
autoIncrement
in interface Column
public Expression defaultValue()
defaultValue
in interface Column
Column.DEFAULT_VALUE_NOT_SET
if not specifiedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object