Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-280

Refactor Cassandra query execution and mapping to consolidate mapping

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5 M1 (Ingalls)
    • Component/s: None
    • Labels:
      None

      Description

      AbstractCassandraQuery and CassandraTemplate perform both conversions when executing queries. Some return types cannot be obtained from the CassandraTemplate in a generic way but must be retrieved by calling lower level methods such as queryForObject.

      AbstractCassandraQuery utilizes complex conditionals to execute queries and so wrapping results in wrapper types (Optional, Future, Stream) is quite complex to achieve.

      Changes:

      • Pull mapping from AbstractCassandraQuery into AbstractCassandraConverter
      • Refactor conditional execution to CassandraQueryExecution pattern
      • Follow CassandraConverters and CustomConversions pattern such as in other Spring Data Modules
      • Introduce DtoInstantiatingConverter
      • Refactor ResultSet converters to Row converters

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              mp911de Mark Paluch
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 21 weeks, 2 days ago