Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2754 Consolidating Ticket for JDBC Semantic Improvements
  3. CASSANDRA-2720

The current implementation of CassandraConnection does not always follow documented semantics for a JDBC Connection interface

    XMLWordPrintableJSON

Details

    Description

      While the current implementation of many of the classes in the JDBC driver implementation are practical to get the driver to work they do not always obey the documented semantics for the associated interfaces. I am proposing making a pass over the involved implementation members to start the "tightening" process that will need to happen to use this driver in other tools an programs that expect stricter adherence than is currently present.

      Broad areas of attention are:

      • Use of SQLFeatureNotSupportedException not UnsupportedOperationException for methods that The Cassandra Implementation does not support.
      • Checking in appropriate methods for the prescribed throwing of SQLException if the method is called on a closed connection.
      • providing method implementations for all methods that are not optional even it it is to return NULL (as prescribed in the Interface description.)

      I will cut additional JIRA tickets for other components in the suite.

      Attachments

        Issue Links

          Activity

            People

              ardot Rick Shaw
              ardot Rick Shaw
              Rick Shaw
              Yuki Morishita
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: