Package | Description |
---|---|
org.springframework.data.cassandra.core |
Apache Cassandra core support.
|
org.springframework.data.cassandra.core.convert |
Spring Data Cassandra specific converter infrastructure.
|
org.springframework.data.cassandra.core.cql |
CQL core support.
|
org.springframework.data.cassandra.core.cql.keyspace |
Keyspace object action specifications such as
CREATE TABLE , DROP INDEX . |
org.springframework.data.cassandra.core.mapping |
Infrastructure for the Apache Cassandra row-to-object mapping subsystem.
|
org.springframework.data.cassandra.core.mapping.event |
Event callback infrastructure for Cassandra mapping subsystem.
|
org.springframework.data.cassandra.core.query |
Apache Cassandra specific query and update support.
|
org.springframework.data.cassandra.repository.query |
Query derivation mechanism for Apache Cassandra specific repositories.
|
org.springframework.data.cassandra.repository.support |
Support infrastructure for query derivation of Apache Cassandra specific repositories.
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
CassandraTemplate.getTableName(Class<?> entityClass) |
CqlIdentifier |
CassandraOperations.getTableName(Class<?> entityClass)
The table name used for the specified class by this template.
|
Modifier and Type | Method and Description |
---|---|
com.datastax.driver.core.RegularStatement |
StatementFactory.count(Query query,
CassandraPersistentEntity<?> entity,
CqlIdentifier tableName)
Create a COUNT statement by mapping
Query to Select . |
void |
CassandraAdminOperations.createTable(boolean ifNotExists,
CqlIdentifier tableName,
Class<?> entityClass,
Map<String,Object> optionsByName)
Create a table with the name given and fields corresponding to the given class.
|
void |
CassandraAdminTemplate.createTable(boolean ifNotExists,
CqlIdentifier tableName,
Class<?> entityClass,
Map<String,Object> optionsByName) |
com.datastax.driver.core.RegularStatement |
StatementFactory.delete(Query query,
CassandraPersistentEntity<?> entity,
CqlIdentifier tableName)
Create a DELETE statement by mapping
Query to Delete . |
void |
CassandraAdminOperations.dropTable(boolean ifExists,
CqlIdentifier tableName)
Drops the
named table. |
void |
CassandraAdminTemplate.dropTable(boolean ifExists,
CqlIdentifier tableName) |
void |
CassandraAdminOperations.dropTable(CqlIdentifier tableName)
Drops the
named table. |
void |
CassandraAdminTemplate.dropTable(CqlIdentifier tableName) |
void |
CassandraAdminOperations.dropUserType(CqlIdentifier typeName)
Drops a user type.
|
void |
CassandraAdminTemplate.dropUserType(CqlIdentifier typeName) |
Optional<com.datastax.driver.core.TableMetadata> |
CassandraAdminOperations.getTableMetadata(String keyspace,
CqlIdentifier tableName)
Lookup
TableMetadata . |
Optional<com.datastax.driver.core.TableMetadata> |
CassandraAdminTemplate.getTableMetadata(String keyspace,
CqlIdentifier tableName) |
ReactiveSelectOperation.SelectWithProjection<T> |
ReactiveSelectOperation.SelectWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table on which to perform the query. |
ExecutableSelectOperation.SelectWithProjection<T> |
ExecutableSelectOperation.SelectWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table on which to execute the query. |
ExecutableUpdateOperation.UpdateWithQuery |
ExecutableUpdateOperation.UpdateWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table on which to execute the update. |
ExecutableInsertOperation.InsertWithOptions<T> |
ExecutableInsertOperation.InsertWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table. |
ReactiveInsertOperation.InsertWithOptions<T> |
ReactiveInsertOperation.InsertWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table. |
ReactiveUpdateOperation.UpdateWithQuery |
ReactiveUpdateOperation.UpdateWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table to on which to perform the update. |
ReactiveDeleteOperation.DeleteWithQuery |
ReactiveDeleteOperation.DeleteWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table on which to perform the delete. |
ExecutableDeleteOperation.DeleteWithQuery |
ExecutableDeleteOperation.DeleteWithTable.inTable(CqlIdentifier table)
Explicitly set the
name of the table on which to execute the delete. |
com.datastax.driver.core.RegularStatement |
StatementFactory.select(Query query,
CassandraPersistentEntity<?> entity,
CqlIdentifier tableName)
Create a SELECT statement by mapping
Query to Select . |
Modifier and Type | Method and Description |
---|---|
Object |
ColumnReader.get(CqlIdentifier columnName)
Returns the row's column value.
|
<T> T |
ColumnReader.get(CqlIdentifier columnName,
Class<T> requestedType)
Returns the row's column value as an instance of the given type.
|
Modifier and Type | Method and Description |
---|---|
static CqlIdentifier |
CqlIdentifier.cqlId(CharSequence identifier)
Deprecated.
since 2.0, use
of(CharSequence) |
static CqlIdentifier |
CqlIdentifier.cqlId(CharSequence identifier,
boolean forceQuote)
Deprecated.
since 2.0, use
of(CharSequence, boolean) |
static CqlIdentifier |
CqlIdentifier.of(CharSequence identifier)
Factory method for
CqlIdentifier . |
static CqlIdentifier |
CqlIdentifier.of(CharSequence identifier,
boolean forceQuote)
Factory method for
CqlIdentifier . |
static CqlIdentifier |
CqlIdentifier.quoted(CharSequence identifier)
Factory method for a force-quoted
CqlIdentifier . |
static CqlIdentifier |
CqlIdentifier.quotedCqlId(CharSequence identifier)
Deprecated.
since 2.0, use
quoted(CharSequence) . |
Modifier and Type | Method and Description |
---|---|
int |
CqlIdentifier.compareTo(CqlIdentifier identifier)
Unquoted identifiers sort before quoted ones.
|
Modifier and Type | Field and Description |
---|---|
protected CqlIdentifier |
ColumnChangeSpecification.name |
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
IndexDescriptor.getColumnName() |
CqlIdentifier |
CreateIndexSpecification.getColumnName() |
CqlIdentifier |
IndexNameSpecification.getName() |
CqlIdentifier |
ColumnChangeSpecification.getName() |
CqlIdentifier |
UserTypeNameSpecification.getName() |
CqlIdentifier |
IndexDescriptor.getName()
Returns the name of the index.
|
CqlIdentifier |
ColumnSpecification.getName() |
CqlIdentifier |
TableDescriptor.getName()
Returns the name of the table.
|
CqlIdentifier |
TableNameSpecification.getName() |
CqlIdentifier |
IndexDescriptor.getTableName()
Returns the table name for the index
|
CqlIdentifier |
CreateIndexSpecification.getTableName() |
CqlIdentifier |
RenameColumnSpecification.getTargetName() |
Modifier and Type | Method and Description |
---|---|
AlterTableSpecification |
AlterTableSpecification.add(CqlIdentifier column,
com.datastax.driver.core.DataType type)
Adds an
ADD to the list of column changes. |
AlterUserTypeSpecification |
AlterUserTypeSpecification.add(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
static AddColumnSpecification |
AddColumnSpecification.addColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type)
|
AlterTableSpecification |
AlterTableSpecification.alter(CqlIdentifier column,
com.datastax.driver.core.DataType type)
Adds an ALTER to the list of column changes.
|
AlterUserTypeSpecification |
AlterUserTypeSpecification.alter(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ALTER to the list of field changes.
|
static AlterColumnSpecification |
AlterColumnSpecification.alterColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Entry point into the
AlterColumnSpecification 's fluent API given name and DataType to alter
a column. |
static AlterTableSpecification |
AlterTableSpecification.alterTable(CqlIdentifier tableName)
Entry point into the
AlterTableSpecification 's fluent API given tableName to alter a table. |
T |
TableSpecification.clusteredKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Adds the given primary key column to the table with ascending ordering.
|
T |
TableSpecification.clusteredKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type,
Optional<Ordering> ordering)
Adds the given primary key column to the table with ascending ordering.
|
T |
TableSpecification.clusteredKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type,
Ordering ordering)
Adds the given primary key column to the table with ascending ordering.
|
T |
TableSpecification.column(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Adds the given non-key column to the table.
|
protected T |
TableSpecification.column(CqlIdentifier name,
com.datastax.driver.core.DataType type,
Optional<PrimaryKeyType> optionalKeyType,
Optional<Ordering> optionalOrdering) |
CreateIndexSpecification |
CreateIndexSpecification.columnName(CqlIdentifier columnName)
Sets the column name.
|
static CreateIndexSpecification |
CreateIndexSpecification.createIndex(CqlIdentifier indexName)
Entry point into the
CreateIndexSpecification 's fluent API given indexName to create a index. |
static CreateTableSpecification |
CreateTableSpecification.createTable(CqlIdentifier tableName)
Entry point into the
CreateTableSpecification 's fluent API given tableName to create a table. |
static CreateUserTypeSpecification |
CreateUserTypeSpecification.createType(CqlIdentifier name)
Entry point into the
CreateUserTypeSpecification 's fluent API given name to create a type. |
AlterTableSpecification |
AlterTableSpecification.drop(CqlIdentifier column) |
static DropColumnSpecification |
DropColumnSpecification.dropColumn(CqlIdentifier name)
Create a new
DropColumnSpecification for the given name . |
static DropIndexSpecification |
DropIndexSpecification.dropIndex(CqlIdentifier indexName)
Create a new
DropIndexSpecification for the given indexName . |
static DropTableSpecification |
DropTableSpecification.dropTable(CqlIdentifier tableName)
Entry point into the
DropTableSpecification 's fluent API given tableName to drop a table. |
static DropUserTypeSpecification |
DropUserTypeSpecification.dropType(CqlIdentifier name)
Entry point into the
DropUserTypeSpecification 's fluent API given name to drop a type. |
T |
UserTypeSpecification.field(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
static ColumnSpecification |
ColumnSpecification.name(CqlIdentifier name)
Create a new
ColumnSpecification for the given name . |
static FieldSpecification |
FieldSpecification.of(CqlIdentifier name,
com.datastax.driver.core.DataType type)
|
T |
TableSpecification.partitionKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Adds the given partition key column to the table.
|
AlterTableSpecification |
AlterTableSpecification.rename(CqlIdentifier from,
CqlIdentifier to)
Adds a
RENAME to the list of column changes. |
AlterUserTypeSpecification |
AlterUserTypeSpecification.rename(CqlIdentifier from,
CqlIdentifier to)
Adds an RENAME to the list of field changes.
|
CreateIndexSpecification |
CreateIndexSpecification.tableName(CqlIdentifier tableName)
Sets the table name.
|
Constructor and Description |
---|
ColumnChangeSpecification(CqlIdentifier name)
Create a new
ColumnChangeSpecification . |
ColumnTypeChangeSpecification(CqlIdentifier name,
com.datastax.driver.core.DataType type)
|
IndexNameSpecification(CqlIdentifier name) |
TableNameSpecification(CqlIdentifier name) |
TableOptionsSpecification(CqlIdentifier name) |
TableSpecification(CqlIdentifier name) |
UserTypeNameSpecification(CqlIdentifier name) |
UserTypeSpecification(CqlIdentifier name) |
Modifier and Type | Method and Description |
---|---|
protected CqlIdentifier |
CassandraUserTypePersistentEntity.determineTableName() |
protected CqlIdentifier |
BasicCassandraPersistentEntity.determineTableName() |
CqlIdentifier |
BasicCassandraPersistentTupleProperty.getColumnName() |
CqlIdentifier |
BasicCassandraPersistentProperty.getColumnName() |
CqlIdentifier |
CassandraPersistentProperty.getColumnName()
The name of the single column to which the property is persisted.
|
default CqlIdentifier |
CassandraPersistentProperty.getRequiredColumnName()
The name of the single column to which the property is persisted.
|
CqlIdentifier |
CassandraPersistentEntity.getTableName()
Returns the table name to which the entity shall be persisted.
|
CqlIdentifier |
BasicCassandraPersistentEntity.getTableName() |
Modifier and Type | Method and Description |
---|---|
com.datastax.driver.core.UserType |
UserTypeResolver.resolveType(CqlIdentifier typeName)
Resolve a
UserType by name . |
com.datastax.driver.core.UserType |
SimpleUserTypeResolver.resolveType(CqlIdentifier typeName) |
void |
BasicCassandraPersistentTupleProperty.setColumnName(CqlIdentifier columnName) |
void |
BasicCassandraPersistentProperty.setColumnName(CqlIdentifier columnName) |
void |
CassandraPersistentProperty.setColumnName(CqlIdentifier columnName)
If this property is mapped with a single column, set the column name to the given
CqlIdentifier . |
void |
CassandraPersistentEntity.setTableName(CqlIdentifier tableName)
Sets the CQL table name.
|
void |
BasicCassandraPersistentEntity.setTableName(CqlIdentifier tableName) |
boolean |
CassandraMappingContext.usesTable(CqlIdentifier name)
Returns whether this mapping context has any entities mapped to the given table.
|
boolean |
CassandraMappingContext.usesUserType(CqlIdentifier name)
Returns whether this mapping context has any entities using the given user type.
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
CassandraMappingEvent.getTableName() |
Constructor and Description |
---|
AbstractDeleteEvent(com.datastax.driver.core.Statement source,
Class<T> type,
CqlIdentifier tableName)
Creates new
AbstractDeleteEvent . |
AbstractStatementAwareMappingEvent(T source,
com.datastax.driver.core.Statement statement,
CqlIdentifier tableName)
Creates new
AbstractStatementAwareMappingEvent . |
AfterConvertEvent(com.datastax.driver.core.Row row,
E source,
CqlIdentifier tableName)
|
AfterDeleteEvent(com.datastax.driver.core.Statement source,
Class<T> type,
CqlIdentifier tableName)
Create a new
AfterDeleteEvent . |
AfterLoadEvent(com.datastax.driver.core.Row source,
Class<T> type,
CqlIdentifier tableName)
|
AfterSaveEvent(E source,
CqlIdentifier tableName)
Creates a new
AfterSaveEvent . |
BeforeDeleteEvent(com.datastax.driver.core.Statement source,
Class<T> type,
CqlIdentifier tableName)
Create a new
BeforeDeleteEvent . |
BeforeSaveEvent(E source,
CqlIdentifier table,
com.datastax.driver.core.Statement statement)
Create a new
BeforeSaveEvent . |
CassandraMappingEvent(T source,
CqlIdentifier tableName)
Creates new
CassandraMappingEvent . |
Modifier and Type | Method and Description |
---|---|
Optional<CqlIdentifier> |
Columns.Selector.getAlias() |
Optional<CqlIdentifier> |
Columns.ColumnSelector.getAlias() |
Optional<CqlIdentifier> |
Columns.FunctionCall.getAlias() |
abstract Optional<CqlIdentifier> |
ColumnName.getCqlIdentifier() |
Modifier and Type | Method and Description |
---|---|
Columns.ColumnSelector |
Columns.ColumnSelector.as(CqlIdentifier alias)
|
Columns.FunctionCall |
Columns.FunctionCall.as(CqlIdentifier alias)
|
static Columns |
Columns.from(CqlIdentifier... columnNames)
Create a
Columns given columnNames . |
static ColumnName |
ColumnName.from(CqlIdentifier cqlIdentifier)
Create a
ColumnName given CqlIdentifier . |
static Columns.ColumnSelector |
Columns.ColumnSelector.from(CqlIdentifier columnName)
Create a
Columns.ColumnSelector given CqlIdentifier . |
Columns |
Columns.include(CqlIdentifier columnName)
Include column
columnName to the selection. |
Columns |
Columns.select(CqlIdentifier columnName,
Columns.Selector selector)
Include column
columnName with Columns.Selector . |
Columns |
Columns.ttl(CqlIdentifier columnName)
Include column
columnName as TTL value in the selection. |
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
CassandraEntityMetadata.getTableName()
Returns the name of the table the entity shall be persisted to.
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
MappingCassandraEntityInformation.getTableName() |
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.