Package | Description |
---|---|
org.springframework.cassandra.core |
CQL core support.
|
org.springframework.cassandra.core.cql |
CQL support.
|
org.springframework.cassandra.core.keyspace |
Keyspace object action specifications such as
CREATE TABLE , DROP INDEX . |
org.springframework.data.cassandra.convert |
Spring Data Cassandra specific converter infrastructure.
|
org.springframework.data.cassandra.core |
Apache Cassandra core support.
|
org.springframework.data.cassandra.mapping |
Infrastructure for the Apache Cassandra row-to-object mapping subsystem.
|
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 |
---|---|
long |
CqlOperations.count(CqlIdentifier tableName)
Counts all rows for given table
|
long |
CqlTemplate.count(CqlIdentifier tableName) |
void |
CqlOperations.truncate(CqlIdentifier tableName)
Delete all rows in the table
|
void |
CqlTemplate.truncate(CqlIdentifier tableName) |
Modifier and Type | Method and Description |
---|---|
static CqlIdentifier |
CqlIdentifier.cqlId(CharSequence identifier)
Factory method for
CqlIdentifier . |
static CqlIdentifier |
CqlIdentifier.cqlId(CharSequence identifier,
boolean forceQuote)
Factory method for
CqlIdentifier . |
static CqlIdentifier |
CqlIdentifier.quotedCqlId(CharSequence identifier)
Factory method for a force-quoted
CqlIdentifier . |
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 |
ColumnSpecification.getName() |
CqlIdentifier |
TableDescriptor.getName()
Returns the name of the table.
|
CqlIdentifier |
TableNameSpecification.getName() |
CqlIdentifier |
IndexDescriptor.getName()
Returns the name of the index.
|
CqlIdentifier |
UserTypeNameSpecification.getName() |
CqlIdentifier |
ColumnChangeSpecification.getName() |
CqlIdentifier |
IndexNameSpecification.getName() |
CqlIdentifier |
IndexDescriptor.getTableName()
Returns the table name for the index
|
CqlIdentifier |
CreateIndexSpecification.getTableName() |
CqlIdentifier |
RenameColumnSpecification.getTargetName() |
Modifier and Type | Method and Description |
---|---|
AlterUserTypeSpecification |
AlterUserTypeSpecification.add(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
AlterUserTypeSpecification |
AlterUserTypeSpecification.alter(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ALTER to the list of field changes.
|
static AlterTableSpecification |
AlterTableSpecification.alterTable(CqlIdentifier tableName)
Entry point into the
AlterTableSpecification 's fluent API to alter a table. |
static AlterUserTypeSpecification |
AlterUserTypeSpecification.alterType(CqlIdentifier typeName)
Entry point into the
AlterUserTypeSpecification 's fluent API to alter a type. |
T |
TableSpecification.clusteredKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
T |
TableSpecification.clusteredKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type,
Ordering ordering) |
T |
TableSpecification.column(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
protected T |
TableSpecification.column(CqlIdentifier name,
com.datastax.driver.core.DataType type,
PrimaryKeyType keyType,
Ordering ordering) |
CreateIndexSpecification |
CreateIndexSpecification.columnName(CqlIdentifier columnName) |
static CreateIndexSpecification |
CreateIndexSpecification.createIndex(CqlIdentifier name)
Entry point into the
CreateIndexSpecification 's fluent API to create a index. |
static CreateTableSpecification |
CreateTableSpecification.createTable(CqlIdentifier name)
Entry point into the
CreateTableSpecification 's fluent API to create a table. |
static CreateUserTypeSpecification |
CreateUserTypeSpecification.createType(CqlIdentifier name)
Entry point into the
CreateUserTypeSpecification 's fluent API to create a type. |
static DropColumnSpecification |
DropColumnSpecification.dropColumn(CqlIdentifier name) |
static DropTableSpecification |
DropTableSpecification.dropTable(CqlIdentifier tableName)
Entry point into the
DropTableSpecification 's fluent API to drop a table. |
static DropUserTypeSpecification |
DropUserTypeSpecification.dropType(CqlIdentifier typeName)
Entry point into the
DropUserTypeSpecification 's fluent API to drop a type. |
T |
UserTypeSpecification.field(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
ColumnSpecification |
ColumnSpecification.name(CqlIdentifier name) |
T |
TableNameSpecification.name(CqlIdentifier name) |
T |
UserTypeNameSpecification.name(CqlIdentifier name)
Sets the type name.
|
T |
TableOptionsSpecification.name(CqlIdentifier name) |
FieldSpecification |
FieldSpecification.name(CqlIdentifier name)
Sets the field name.
|
CreateTableSpecification |
CreateTableSpecification.name(CqlIdentifier name) |
T |
IndexNameSpecification.name(CqlIdentifier name) |
T |
TableSpecification.partitionKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
AlterUserTypeSpecification |
AlterUserTypeSpecification.rename(CqlIdentifier from,
CqlIdentifier to)
Adds an RENAME to the list of field changes.
|
protected void |
ColumnChangeSpecification.setName(CqlIdentifier name)
Sets the column name.
|
CreateIndexSpecification |
CreateIndexSpecification.tableName(CqlIdentifier tableName) |
Constructor and Description |
---|
AddColumnSpecification(CqlIdentifier name,
com.datastax.driver.core.DataType type)
|
AlterColumnSpecification(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
ColumnChangeSpecification(CqlIdentifier name)
Creates a new
ColumnChangeSpecification . |
ColumnTypeChangeSpecification(CqlIdentifier name,
com.datastax.driver.core.DataType type)
|
DropColumnSpecification(CqlIdentifier name) |
Modifier and Type | Method and Description |
---|---|
Object |
ColumnReader.get(CqlIdentifier name)
Returns the row's column value.
|
<T> T |
ColumnReader.get(CqlIdentifier name,
Class<T> requestedType)
Returns the row's column value as an instance of the given type.
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
CassandraOperations.getTableName(Class<?> entityClass)
The table name used for the specified class by this template.
|
CqlIdentifier |
CassandraTemplate.getTableName(Class<?> entityClass) |
Modifier and Type | Method and Description |
---|---|
void |
CassandraAdminOperations.alterTable(CqlIdentifier tableName,
Class<?> entityClass,
boolean dropRemovedAttributeColumns)
Add columns to the given table from the given class.
|
void |
CassandraAdminTemplate.alterTable(CqlIdentifier tableName,
Class<?> entityClass,
boolean dropRemovedAttributeColumns) |
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) |
protected void |
CassandraAdminTemplate.doAlterTable(Class<?> entityClass,
String keyspace,
CqlIdentifier tableName)
Create a list of query operations to alter the table for the given entity
|
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) |
com.datastax.driver.core.TableMetadata |
CassandraAdminOperations.getTableMetadata(String keyspace,
CqlIdentifier tableName)
Lookup
TableMetadata . |
com.datastax.driver.core.TableMetadata |
CassandraAdminTemplate.getTableMetadata(String keyspace,
CqlIdentifier tableName) |
void |
CassandraAdminOperations.replaceTable(CqlIdentifier tableName,
Class<?> entityClass,
Map<String,Object> optionsByName)
Drops the existing table with the given name and creates a new one; basically a
#dropTable(String) followed
by a #createTable(boolean, String, Class, Map) . |
void |
CassandraAdminTemplate.replaceTable(CqlIdentifier tableName,
Class<?> entityClass,
Map<String,Object> optionsByName) |
Modifier and Type | Field and Description |
---|---|
protected CqlIdentifier |
BasicCassandraPersistentEntity.tableName |
Modifier and Type | Field and Description |
---|---|
protected List<CqlIdentifier> |
BasicCassandraPersistentProperty.columnNames
An unmodifiable list of this property's column names.
|
protected Map<CqlIdentifier,Set<CassandraPersistentEntity<?>>> |
BasicCassandraMappingContext.entitySetsByTableName |
protected List<CqlIdentifier> |
BasicCassandraPersistentProperty.explicitColumnNames
An unmodifiable list of this property's explicitly set column names.
|
Modifier and Type | Method and Description |
---|---|
protected CqlIdentifier |
BasicCassandraPersistentProperty.createColumnName(String defaultName,
String overriddenName,
boolean forceQuote) |
protected CqlIdentifier |
BasicCassandraPersistentEntity.determineDefaultName() |
protected CqlIdentifier |
BasicCassandraPersistentEntity.determineName(String value,
boolean forceQuote) |
protected CqlIdentifier |
BasicCassandraPersistentEntity.determineTableName() |
protected CqlIdentifier |
CassandraUserTypePersistentEntity.determineTableName() |
CqlIdentifier |
CassandraPersistentProperty.getColumnName()
The name of the single column to which the property is persisted.
|
CqlIdentifier |
BasicCassandraPersistentProperty.getColumnName() |
CqlIdentifier |
CassandraPersistentEntity.getTableName()
Returns the table name to which the entity shall be persisted.
|
CqlIdentifier |
BasicCassandraPersistentEntity.getTableName() |
Modifier and Type | Method and Description |
---|---|
protected List<CqlIdentifier> |
BasicCassandraPersistentProperty.determineColumnNames() |
List<CqlIdentifier> |
CassandraPersistentProperty.getColumnNames()
The names of the columns to which the property is persisted if this is a composite primary key property.
|
List<CqlIdentifier> |
BasicCassandraPersistentProperty.getColumnNames() |
Modifier and Type | Method and Description |
---|---|
com.datastax.driver.core.UserType |
UserTypeResolver.resolveType(CqlIdentifier typeName)
Resolve a
UserType by its name. |
com.datastax.driver.core.UserType |
SimpleUserTypeResolver.resolveType(CqlIdentifier typeName) |
void |
CassandraPersistentProperty.setColumnName(CqlIdentifier columnName)
If this property is mapped with a single column, set the column name to the given
CqlIdentifier . |
void |
BasicCassandraPersistentProperty.setColumnName(CqlIdentifier columnName) |
void |
CassandraPersistentEntity.setTableName(CqlIdentifier tableName) |
void |
BasicCassandraPersistentEntity.setTableName(CqlIdentifier tableName) |
boolean |
BasicCassandraMappingContext.usesUserType(CqlIdentifier userType) |
boolean |
CassandraMappingContext.usesUserType(CqlIdentifier userType)
Returns whether this mapping context has any entities using the given user type.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicCassandraPersistentProperty.addCompositePrimaryKeyColumnNames(CassandraPersistentEntity<?> compositePrimaryKeyEntity,
List<CqlIdentifier> columnNames) |
void |
CassandraPersistentProperty.setColumnNames(List<CqlIdentifier> columnNames)
Sets this property's column names to the collection given.
|
void |
BasicCassandraPersistentProperty.setColumnNames(List<CqlIdentifier> columnNames) |
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.