Class ImmutableBatchCommand
java.lang.Object
com.databricks.jdbc.api.impl.batch.ImmutableBatchCommand
- All Implemented Interfaces:
BatchCommand
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableBatchCommand
extends Object
implements BatchCommand
Immutable implementation of
BatchCommand.
Use the builder to create immutable instances:
ImmutableBatchCommand.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableBatchCommand. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableBatchCommand.static ImmutableBatchCommandcopyOf(BatchCommand instance) Creates an immutable copy of aBatchCommandvalue.booleanThis instance is equal to all instances ofImmutableBatchCommandthat have equal attribute values.getSql()Returns the SQL command string.inthashCode()Computes a hash code from attributes:sql.toString()Prints the immutable valueBatchCommandwith attribute values.final ImmutableBatchCommandCopy the current immutable object by setting a value for thesqlattribute.
-
Method Details
-
getSql
Returns the SQL command string.- Specified by:
getSqlin interfaceBatchCommand
-
withSql
Copy the current immutable object by setting a value for thesqlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sql- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aBatchCommandvalue. 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 BatchCommand instance
-
builder
Creates a builder forImmutableBatchCommand.ImmutableBatchCommand.builder() .sql(String) // requiredsql.build();- Returns:
- A new ImmutableBatchCommand builder
-