Spring Data Cassandra - Reference Documentation

Authors

David Webb, Matthew Adams

1.0.4.RELEASE

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.


Table of Contents

Preface
I. Introduction
1. Requirements
2. Additional Help Resources
2.1. Support
2.1.1. Community Forum
2.1.2. Professional Support
2.2. Following Development
3. Working with Spring Data Repositories
3.1. Core concepts
3.2. Query methods
3.2.1. Defining repository interfaces
Fine-tuning repository definition
3.2.2. Defining query methods
Query lookup strategies
Query creation
Property expressions
Special parameter handling
3.2.3. Creating repository instances
XML configuration
JavaConfig
Standalone usage
3.3. Custom implementations for Spring Data repositories
3.3.1. Adding custom behavior to single repositories
3.3.2. Adding custom behavior to all repositories
3.4. Spring Data extensions
3.4.1. Web support
Basic web support
Hypermedia support for Pageables
3.4.2. Repository populators
3.4.3. Legacy web support
Domain class web binding for Spring MVC
Web pagination
II. Reference Documentation
4. Cassandra support
4.1. Getting Started
4.2. Examples Repository
4.3. Connecting to Cassandra with Spring
4.3.1. Externalize Connection Properties
4.3.2. XML Configuration
4.3.3. Java Configuration
4.4. General auditing configuration
4.5. Introduction to CassandraTemplate
4.5.1. Instantiating CassandraTemplate
4.6. Saving, Updating, and Removing Rows
4.6.1. How the Composite Primary Key fields are handled in the mapping layer
Simplest Composite Key
Complex Composite Primary Key
4.6.2. Type mapping
4.6.3. Methods for saving and inserting rows
Single records inserts
Multiple inserts for high speed ingestion
4.6.4. Updating rows in a CQL table
4.6.5. Methods for removing rows
4.6.6. Methods for truncating tables
4.7. Querying CQL Tables
4.8. Overriding default mapping with custom converters
4.8.1. Saving using a registered Spring Converter
4.8.2. Reading using a Spring Converter
4.8.3. Registering Spring Converters with the CassandraConverter
4.8.4. Converter disambiguation
4.9. Executing Commands
4.9.1. Methods for executing commands
4.10. Exception Translation
5. Cassandra repositories
5.1. Introduction
5.2. Usage
5.3. Query methods
5.3.1. Repository delete queries
5.4. Miscellaneous
5.4.1. CDI Integration
6. Mapping
6.1. Convention based Mapping
6.1.1. How the CQL Composite Primary Key fields are handled in the mapping layer
6.1.2. Mapping Configuration
III. Appendix
A. Namespace reference
A.1. The <repositories /> element
B. Repository query keywords
B.1. Supported query keywords