Modifier and Type | Method and Description |
---|---|
long |
CqlTemplate.count(CqlIdentifier tableName) |
long |
CqlOperations.count(CqlIdentifier tableName)
Counts all rows for given table
|
void |
CqlTemplate.truncate(CqlIdentifier tableName) |
void |
CqlOperations.truncate(CqlIdentifier tableName)
Delete all rows in the table
|
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 that)
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 |
TableNameSpecification.getName() |
CqlIdentifier |
TableDescriptor.getName()
Returns the name of the table.
|
CqlIdentifier |
IndexNameSpecification.getName() |
CqlIdentifier |
IndexDescriptor.getName()
Returns the name of the index.
|
CqlIdentifier |
ColumnSpecification.getName() |
CqlIdentifier |
ColumnChangeSpecification.getName() |
CqlIdentifier |
IndexDescriptor.getTableName()
Returns the table name for the index
|
CqlIdentifier |
CreateIndexSpecification.getTableName() |
Modifier and Type | Method and Description |
---|---|
static AlterTableSpecification |
AlterTableSpecification.alterTable(CqlIdentifier tableName)
Entry point into the
AlterTableSpecification 's fluent API to alter a table. |
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 DropColumnSpecification |
DropColumnSpecification.dropColumn(CqlIdentifier name) |
static DropTableSpecification |
DropTableSpecification.dropTable(CqlIdentifier tableName)
Entry point into the
DropTableSpecification 's fluent API to drop a table. |
T |
TableOptionsSpecification.name(CqlIdentifier name) |
T |
TableNameSpecification.name(CqlIdentifier name) |
T |
IndexNameSpecification.name(CqlIdentifier name) |
CreateTableSpecification |
CreateTableSpecification.name(CqlIdentifier name) |
ColumnSpecification |
ColumnSpecification.name(CqlIdentifier name) |
T |
TableSpecification.partitionKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
protected void |
ColumnChangeSpecification.setName(CqlIdentifier 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) |
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 |
---|---|
protected <T> CqlIdentifier |
CassandraTemplate.determineTableName(T obj) |
CqlIdentifier |
CassandraTemplate.getTableName(Class<?> type) |
CqlIdentifier |
CassandraOperations.getTableName(Class<?> entityClass)
The table name used for the specified class by this template.
|
Modifier and Type | Method and Description |
---|---|
void |
CassandraAdminTemplate.alterTable(CqlIdentifier tableName,
Class<?> entityClass,
boolean dropRemovedAttributeColumns) |
void |
CassandraAdminOperations.alterTable(CqlIdentifier tableName,
Class<?> entityClass,
boolean dropRemovedAttributeColumns)
Add columns to the given table from the given class.
|
void |
CassandraAdminTemplate.createTable(boolean ifNotExists,
CqlIdentifier tableName,
Class<?> entityClass,
Map<String,Object> optionsByName) |
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.
|
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 |
CassandraAdminTemplate.dropTable(CqlIdentifier tableName) |
void |
CassandraAdminOperations.dropTable(CqlIdentifier tableName)
Drops the named table.
|
com.datastax.driver.core.TableMetadata |
CassandraAdminTemplate.getTableMetadata(String keyspace,
CqlIdentifier tableName) |
com.datastax.driver.core.TableMetadata |
CassandraAdminOperations.getTableMetadata(String keyspace,
CqlIdentifier tableName) |
void |
CassandraAdminTemplate.replaceTable(CqlIdentifier tableName,
Class<?> entityClass,
Map<String,Object> optionsByName) |
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) . |
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.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 |
---|---|
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) |
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-2015–2016 Pivotal Software, Inc.. All rights reserved.