Package com.exasol.adapter.metadata
Class ColumnMetadata
- java.lang.Object
-
- com.exasol.adapter.metadata.ColumnMetadata
-
public final class ColumnMetadata extends Object
Represents 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(Object o)StringgetAdapterNotes()Get the adapter notesStringgetComment()Get the comment associated with the columnStringgetDefaultValue()Get the default valueStringgetName()Get the column nameStringgetOriginalTypeName()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 nullableStringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Get the column name- Returns:
- column name
-
getAdapterNotes
public 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 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 String getComment()
Get the comment associated with the column- Returns:
- comment associated with the column
-
getOriginalTypeName
public 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
-
builder
public static ColumnMetadata.Builder builder()
Create a new builder forColumnMetadata- Returns:
- builder instance
-
-