Package com.databricks.jdbc.api.impl
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 ofDatabricksColumn.Use the builder to create immutable instances:
ImmutableDatabricksColumn.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDatabricksColumn.BuilderBuilds instances of typeImmutableDatabricksColumn.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTypeaccessType()static ImmutableDatabricksColumn.Builderbuilder()Creates a builder forImmutableDatabricksColumn.StringcatalogName()StringcolumnName()Name of the column in result setintcolumnType()Type of the column in result setStringcolumnTypeClassName()StringcolumnTypeText()Full data type spec, SQL/catalogString textstatic ImmutableDatabricksColumncopyOf(DatabricksColumn instance)Creates an immutable copy of aDatabricksColumnvalue.intdisplaySize()booleanequals(Object another)This 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.booleanisAutoIncrement()booleanisCaseSensitive()booleanisCurrency()booleanisDefinitelyWritable()booleanisSearchable()booleanisSigned()Nullablenullable()StringschemaName()StringtableName()StringtoString()Prints the immutable valueDatabricksColumnwith attribute values.inttypePrecision()Precision is the maximum number of significant digits that can be stored in a column.inttypeScale()ImmutableDatabricksColumnwithAccessType(AccessType value)Copy the current immutable object by setting a value for theaccessTypeattribute.ImmutableDatabricksColumnwithCatalogName(String value)Copy the current immutable object by setting a value for thecatalogNameattribute.ImmutableDatabricksColumnwithColumnName(String value)Copy the current immutable object by setting a value for thecolumnNameattribute.ImmutableDatabricksColumnwithColumnType(int value)Copy the current immutable object by setting a value for thecolumnTypeattribute.ImmutableDatabricksColumnwithColumnTypeClassName(String value)Copy the current immutable object by setting a value for thecolumnTypeClassNameattribute.ImmutableDatabricksColumnwithColumnTypeText(String value)Copy the current immutable object by setting a value for thecolumnTypeTextattribute.ImmutableDatabricksColumnwithDisplaySize(int value)Copy the current immutable object by setting a value for thedisplaySizeattribute.ImmutableDatabricksColumnwithIsAutoIncrement(boolean value)Copy the current immutable object by setting a value for theisAutoIncrementattribute.ImmutableDatabricksColumnwithIsCaseSensitive(boolean value)Copy the current immutable object by setting a value for theisCaseSensitiveattribute.ImmutableDatabricksColumnwithIsCurrency(boolean value)Copy the current immutable object by setting a value for theisCurrencyattribute.ImmutableDatabricksColumnwithIsDefinitelyWritable(boolean value)Copy the current immutable object by setting a value for theisDefinitelyWritableattribute.ImmutableDatabricksColumnwithIsSearchable(boolean value)Copy the current immutable object by setting a value for theisSearchableattribute.ImmutableDatabricksColumnwithIsSigned(boolean value)Copy the current immutable object by setting a value for theisSignedattribute.ImmutableDatabricksColumnwithNullable(Nullable value)Copy the current immutable object by setting a value for thenullableattribute.ImmutableDatabricksColumnwithSchemaName(String value)Copy the current immutable object by setting a value for theschemaNameattribute.ImmutableDatabricksColumnwithTableName(String value)Copy the current immutable object by setting a value for thetableNameattribute.ImmutableDatabricksColumnwithTypePrecision(int value)Copy the current immutable object by setting a value for thetypePrecisionattribute.ImmutableDatabricksColumnwithTypeScale(int value)Copy the current immutable object by setting a value for thetypeScaleattribute.
-
-
-
Method Detail
-
columnName
public String 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
public String 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
@Nullable public String 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
public Nullable 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
public AccessType 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
public String columnTypeClassName()
- Specified by:
columnTypeClassNamein interfaceDatabricksColumn- Returns:
- The value of the
columnTypeClassNameattribute
-
tableName
@Nullable public String tableName()
- Specified by:
tableNamein interfaceDatabricksColumn- Returns:
- The value of the
tableNameattribute
-
catalogName
public String catalogName()
- Specified by:
catalogNamein interfaceDatabricksColumn- Returns:
- The value of the
catalogNameattribute
-
withColumnName
public final ImmutableDatabricksColumn withColumnName(String value)
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
public final ImmutableDatabricksColumn withColumnType(int value)
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
public final ImmutableDatabricksColumn withColumnTypeText(String value)
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
public final ImmutableDatabricksColumn withTypePrecision(int value)
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
public final ImmutableDatabricksColumn withDisplaySize(int value)
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
public final ImmutableDatabricksColumn withIsSigned(boolean value)
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
public final ImmutableDatabricksColumn withSchemaName(@Nullable String value)
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
public final ImmutableDatabricksColumn withIsCurrency(boolean value)
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
public final ImmutableDatabricksColumn withIsAutoIncrement(boolean value)
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
public final ImmutableDatabricksColumn withIsCaseSensitive(boolean value)
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
public final ImmutableDatabricksColumn withIsSearchable(boolean value)
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
public final ImmutableDatabricksColumn withNullable(Nullable value)
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
public final ImmutableDatabricksColumn withTypeScale(int value)
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
public final ImmutableDatabricksColumn withAccessType(AccessType value)
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
public final ImmutableDatabricksColumn withIsDefinitelyWritable(boolean value)
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
public final ImmutableDatabricksColumn withColumnTypeClassName(String value)
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
public final ImmutableDatabricksColumn withTableName(@Nullable String value)
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
public final ImmutableDatabricksColumn withCatalogName(String value)
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
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableDatabricksColumnthat have equal attribute values.
-
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
public String toString()
Prints the immutable valueDatabricksColumnwith attribute values.
-
copyOf
public static ImmutableDatabricksColumn copyOf(DatabricksColumn instance)
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
public static ImmutableDatabricksColumn.Builder 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
-
-