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 class
ColumnMetadata.Builder
Builder forColumnMetadata
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColumnMetadata.Builder
builder()
Create a new builder forColumnMetadata
boolean
equals(Object o)
String
getAdapterNotes()
Get the adapter notesString
getComment()
Get the comment associated with the columnString
getDefaultValue()
Get the default valueString
getName()
Get the column nameString
getOriginalTypeName()
Get the original name of the type as it was used in the JDBC driver of the remote data sourceDataType
getType()
Get the column's data typeboolean
hasComment()
Check if a comment is associated with the columnboolean
hasDefault()
Check if a default value is defined for the columnint
hashCode()
boolean
isIdentity()
Check if the column supports auto-incrementboolean
isNullable()
Check if the column is nullableString
toString()
-
-
-
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:
true
if the column can containNULL
-
isIdentity
public boolean isIdentity()
Check if the column supports auto-increment- Returns:
true
if the column contains an auto-incrementing ID
-
hasDefault
public boolean hasDefault()
Check if a default value is defined for the column- Returns:
true
if 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:
true
if 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
-
-