code: private static void checkCreateStatementSupported(
              int resultSetType, int resultSetConcurrency, int resultSetHoldability)
                      throws SQLException
      {
          if (   (   (resultSetType != ResultSet.TYPE_SCROLL_INSENSITIVE
                  &&  resultSetType != ResultSet.TYPE_FORWARD_ONLY))
              || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY
              || resultSetHoldability != ResultSet.CLOSE_CURSORS_AT_COMMIT) {
              throw SQLError.noSupport();
          }
      }
docs: Check if the createStatement() options are supported
  
  See http://docs.oracle.com/javase/7/docs/api/index.html?java/sql/DatabaseMetaData.html
  
  The following flags are supported:
  - The type must either be TYPE_SCROLL_INSENSITIVE or TYPE_FORWARD_ONLY.
  - The concurrency must be CONCUR_READ_ONLY.
  - The holdability must be CLOSE_CURSORS_AT_COMMIT.
  
  @param resultSetType  JDBC result set type option
  @param resultSetConcurrency  JDBC result set concurrency option
  @param resultSetHoldability  JDBC result set holdability option
  @throws SQLException  if not supported