public int getServerMajorVersion ( ) { try { StringTokenizer versionTokens = new StringTokenizer ( queryExecutor . getServerVersion ( ) , "." ) ; // aaXbb.ccYdd return integerPart ( versionTokens . nextToken ( ) ) ; // return X } catch ( NoSuchElementException e ) { return 0 ; } }
Get server major version .