Package com.exasol.adapter.metadata
Class ColumnMetadata
- java.lang.Object
-
- com.exasol.adapter.metadata.ColumnMetadata
-
public final class ColumnMetadata extends java.lang.ObjectRepresents the metadata of an EXASOL table column.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColumnMetadata.BuilderBuilder forColumnMetadata
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColumnMetadata.Builderbuilder()Create a new builder forColumnMetadatabooleanequals(java.lang.Object o)java.lang.StringgetAdapterNotes()Get the adapter notesjava.lang.StringgetComment()Get the comment associated with the columnjava.lang.StringgetDefaultValue()Get the default valuejava.lang.StringgetName()Get the column namejava.lang.StringgetOriginalTypeName()Get the original name of the type as it was used in the JDBC driver of the remote data sourceDataTypegetType()Get the column's data typebooleanhasComment()Check if a comment is associated with the columnbooleanhasDefault()Check if a default value is defined for the columninthashCode()booleanisIdentity()Check if the column supports auto-incrementbooleanisNullable()Check if the column is nullablejava.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the column name- Returns:
- column name
-
getAdapterNotes
public java.lang.String getAdapterNotes()
Get the adapter notes- Returns:
- adapter notes
-
getType
public DataType getType()
Get the column's data type- Returns:
- data type
-
isNullable
public boolean isNullable()
Check if the column is nullable- Returns:
trueif the column can containNULL
-
isIdentity
public boolean isIdentity()
Check if the column supports auto-increment- Returns:
trueif the column contains an auto-incrementing ID
-
hasDefault
public boolean hasDefault()
Check if a default value is defined for the column- Returns:
trueif a default value is defined for the column
-
getDefaultValue
public java.lang.String getDefaultValue()
Get the default value- Returns:
- default value
-
hasComment
public boolean hasComment()
Check if a comment is associated with the column- Returns:
trueif the column has a comment
-
getComment
public java.lang.String getComment()
Get the comment associated with the column- Returns:
- comment associated with the column
-
getOriginalTypeName
public java.lang.String getOriginalTypeName()
Get the original name of the type as it was used in the JDBC driver of the remote data source- Returns:
- original type name
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
builder
public static ColumnMetadata.Builder builder()
Create a new builder forColumnMetadata- Returns:
- builder instance
-
-