Class ImmutableDatabricksColumn
java.lang.Object
com.databricks.jdbc.api.impl.ImmutableDatabricksColumn
- All Implemented Interfaces:
DatabricksColumn
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDatabricksColumn
extends Object
implements DatabricksColumn
Immutable implementation of
DatabricksColumn.
Use the builder to create immutable instances:
ImmutableDatabricksColumn.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDatabricksColumn. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDatabricksColumn.Name of the column in result setintType of the column in result setFull data type spec, SQL/catalogString textstatic ImmutableDatabricksColumncopyOf(DatabricksColumn instance) Creates an immutable copy of aDatabricksColumnvalue.intbooleanThis instance is equal to all instances ofImmutableDatabricksColumnthat have equal attribute values.inthashCode()Computes a hash code from attributes:columnName,columnType,columnTypeText,typePrecision,displaySize,isSigned,schemaName,isCurrency,isAutoIncrement,isCaseSensitive,isSearchable,nullable,typeScale,accessType,isDefinitelyWritable,columnTypeClassName,tableName,catalogName.booleanbooleanbooleanbooleanbooleanbooleanisSigned()nullable()toString()Prints the immutable valueDatabricksColumnwith attribute values.intPrecision is the maximum number of significant digits that can be stored in a column.intwithAccessType(AccessType value) Copy the current immutable object by setting a value for theaccessTypeattribute.withCatalogName(String value) Copy the current immutable object by setting a value for thecatalogNameattribute.withColumnName(String value) Copy the current immutable object by setting a value for thecolumnNameattribute.withColumnType(int value) Copy the current immutable object by setting a value for thecolumnTypeattribute.withColumnTypeClassName(String value) Copy the current immutable object by setting a value for thecolumnTypeClassNameattribute.withColumnTypeText(String value) Copy the current immutable object by setting a value for thecolumnTypeTextattribute.withDisplaySize(int value) Copy the current immutable object by setting a value for thedisplaySizeattribute.withIsAutoIncrement(boolean value) Copy the current immutable object by setting a value for theisAutoIncrementattribute.withIsCaseSensitive(boolean value) Copy the current immutable object by setting a value for theisCaseSensitiveattribute.withIsCurrency(boolean value) Copy the current immutable object by setting a value for theisCurrencyattribute.withIsDefinitelyWritable(boolean value) Copy the current immutable object by setting a value for theisDefinitelyWritableattribute.withIsSearchable(boolean value) Copy the current immutable object by setting a value for theisSearchableattribute.withIsSigned(boolean value) Copy the current immutable object by setting a value for theisSignedattribute.withNullable(Nullable value) Copy the current immutable object by setting a value for thenullableattribute.withSchemaName(String value) Copy the current immutable object by setting a value for theschemaNameattribute.withTableName(String value) Copy the current immutable object by setting a value for thetableNameattribute.withTypePrecision(int value) Copy the current immutable object by setting a value for thetypePrecisionattribute.withTypeScale(int value) Copy the current immutable object by setting a value for thetypeScaleattribute.
-
Method Details
-
columnName
Name of the column in result set- Specified by:
columnNamein interfaceDatabricksColumn
-
columnType
public int columnType()Type of the column in result set- Specified by:
columnTypein interfaceDatabricksColumn
-
columnTypeText
Full data type spec, SQL/catalogString text- Specified by:
columnTypeTextin interfaceDatabricksColumn
-
typePrecision
public int typePrecision()Precision is the maximum number of significant digits that can be stored in a column. For string, it's 255.- Specified by:
typePrecisionin interfaceDatabricksColumn
-
displaySize
public int displaySize()- Specified by:
displaySizein interfaceDatabricksColumn- Returns:
- The value of the
displaySizeattribute
-
isSigned
public boolean isSigned()- Specified by:
isSignedin interfaceDatabricksColumn- Returns:
- The value of the
isSignedattribute
-
schemaName
- Specified by:
schemaNamein interfaceDatabricksColumn- Returns:
- The value of the
schemaNameattribute
-
isCurrency
public boolean isCurrency()- Specified by:
isCurrencyin interfaceDatabricksColumn- Returns:
- The value of the
isCurrencyattribute
-
isAutoIncrement
public boolean isAutoIncrement()- Specified by:
isAutoIncrementin interfaceDatabricksColumn- Returns:
- The value of the
isAutoIncrementattribute
-
isCaseSensitive
public boolean isCaseSensitive()- Specified by:
isCaseSensitivein interfaceDatabricksColumn- Returns:
- The value of the
isCaseSensitiveattribute
-
isSearchable
public boolean isSearchable()- Specified by:
isSearchablein interfaceDatabricksColumn- Returns:
- The value of the
isSearchableattribute
-
nullable
- Specified by:
nullablein interfaceDatabricksColumn- Returns:
- The value of the
nullableattribute
-
typeScale
public int typeScale()- Specified by:
typeScalein interfaceDatabricksColumn- Returns:
- The value of the
typeScaleattribute
-
accessType
- Specified by:
accessTypein interfaceDatabricksColumn- Returns:
- The value of the
accessTypeattribute
-
isDefinitelyWritable
public boolean isDefinitelyWritable()- Specified by:
isDefinitelyWritablein interfaceDatabricksColumn- Returns:
- The value of the
isDefinitelyWritableattribute
-
columnTypeClassName
- Specified by:
columnTypeClassNamein interfaceDatabricksColumn- Returns:
- The value of the
columnTypeClassNameattribute
-
tableName
- Specified by:
tableNamein interfaceDatabricksColumn- Returns:
- The value of the
tableNameattribute
-
catalogName
- Specified by:
catalogNamein interfaceDatabricksColumn- Returns:
- The value of the
catalogNameattribute
-
withColumnName
Copy the current immutable object by setting a value for thecolumnNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for columnName- Returns:
- A modified copy of the
thisobject
-
withColumnType
Copy the current immutable object by setting a value for thecolumnTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for columnType- Returns:
- A modified copy of the
thisobject
-
withColumnTypeText
Copy the current immutable object by setting a value for thecolumnTypeTextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for columnTypeText- Returns:
- A modified copy of the
thisobject
-
withTypePrecision
Copy the current immutable object by setting a value for thetypePrecisionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typePrecision- Returns:
- A modified copy of the
thisobject
-
withDisplaySize
Copy the current immutable object by setting a value for thedisplaySizeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for displaySize- Returns:
- A modified copy of the
thisobject
-
withIsSigned
Copy the current immutable object by setting a value for theisSignedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isSigned- Returns:
- A modified copy of the
thisobject
-
withSchemaName
Copy the current immutable object by setting a value for theschemaNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for schemaName (can benull)- Returns:
- A modified copy of the
thisobject
-
withIsCurrency
Copy the current immutable object by setting a value for theisCurrencyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isCurrency- Returns:
- A modified copy of the
thisobject
-
withIsAutoIncrement
Copy the current immutable object by setting a value for theisAutoIncrementattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isAutoIncrement- Returns:
- A modified copy of the
thisobject
-
withIsCaseSensitive
Copy the current immutable object by setting a value for theisCaseSensitiveattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isCaseSensitive- Returns:
- A modified copy of the
thisobject
-
withIsSearchable
Copy the current immutable object by setting a value for theisSearchableattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isSearchable- Returns:
- A modified copy of the
thisobject
-
withNullable
Copy the current immutable object by setting a value for thenullableattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nullable- Returns:
- A modified copy of the
thisobject
-
withTypeScale
Copy the current immutable object by setting a value for thetypeScaleattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typeScale- Returns:
- A modified copy of the
thisobject
-
withAccessType
Copy the current immutable object by setting a value for theaccessTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for accessType- Returns:
- A modified copy of the
thisobject
-
withIsDefinitelyWritable
Copy the current immutable object by setting a value for theisDefinitelyWritableattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isDefinitelyWritable- Returns:
- A modified copy of the
thisobject
-
withColumnTypeClassName
Copy the current immutable object by setting a value for thecolumnTypeClassNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for columnTypeClassName- Returns:
- A modified copy of the
thisobject
-
withTableName
Copy the current immutable object by setting a value for thetableNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tableName (can benull)- Returns:
- A modified copy of the
thisobject
-
withCatalogName
Copy the current immutable object by setting a value for thecatalogNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for catalogName- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
public int hashCode()Computes a hash code from attributes:columnName,columnType,columnTypeText,typePrecision,displaySize,isSigned,schemaName,isCurrency,isAutoIncrement,isCaseSensitive,isSearchable,nullable,typeScale,accessType,isDefinitelyWritable,columnTypeClassName,tableName,catalogName. -
toString
-
copyOf
Creates an immutable copy of aDatabricksColumnvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable DatabricksColumn instance
-
builder
Creates a builder forImmutableDatabricksColumn.ImmutableDatabricksColumn.builder() .columnName(String) // requiredcolumnName.columnType(int) // requiredcolumnType.columnTypeText(String) // requiredcolumnTypeText.typePrecision(int) // requiredtypePrecision.displaySize(int) // requireddisplaySize.isSigned(boolean) // requiredisSigned.schemaName(String | null) // nullableschemaName.isCurrency(boolean) // requiredisCurrency.isAutoIncrement(boolean) // requiredisAutoIncrement.isCaseSensitive(boolean) // requiredisCaseSensitive.isSearchable(boolean) // requiredisSearchable.nullable(com.databricks.jdbc.common.Nullable) // requirednullable.typeScale(int) // requiredtypeScale.accessType(com.databricks.jdbc.common.AccessType) // requiredaccessType.isDefinitelyWritable(boolean) // requiredisDefinitelyWritable.columnTypeClassName(String) // requiredcolumnTypeClassName.tableName(String | null) // nullabletableName.catalogName(String) // requiredcatalogName.build();- Returns:
- A new ImmutableDatabricksColumn builder
-