Class ColumnDefinitionApiSupport
java.lang.Object
com.datastax.astra.client.tables.definition.columns.ColumnDefinitionApiSupport
Represents the API support configuration for a column definition.
This class defines the permissions and CQL (Cassandra Query Language) configuration related to a specific column in a database schema. It includes options for creating tables, inserting data, reading data, and the column's CQL definition.
This class is annotated with @Data
and @NoArgsConstructor
from Lombok,
which automatically generate getters, setters, and a no-argument constructor.
Fields:
createTable
- Specifies whether the column is included in table creation.insert
- Indicates if the column supports insert operations.read
- Indicates if the column supports read operations.cqlDefinition
- Defines the CQL expression associated with the column.
Example usage:
ColumnDefinitionApiSupport columnSupport = new ColumnDefinitionApiSupport();
columnSupport.setCreateTable(true);
columnSupport.setInsert(true);
columnSupport.setRead(false);
columnSupport.setCqlDefinition("text");
System.out.println(columnSupport);
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ColumnDefinitionApiSupport
public ColumnDefinitionApiSupport()Default constructor.
-
-
Method Details
-
toString
This implementation uses
RowSerializer
to serialize the object into a marshalled string representation.
-