private ResultSet getVersionColumnsOrBestRowIdentifier ( ) throws SQLException { String sql = VERSION_AND_IDENTIFIER_COLUMNS_SELECT_STATEMENT + FROM_STATEMENT_WITHOUT_RESULTS ; CloudSpannerPreparedStatement statement = prepareStatement ( sql ) ; return statement . executeQuery ( ) ; }
A simple private method that combines the result of two methods that return exactly the same result