org.eclipse.datatools.enablement.ingres.internal.connectivity
Class VersionHelper

java.lang.Object
  extended by org.eclipse.datatools.enablement.ingres.internal.connectivity.VersionHelper

public class VersionHelper
extends java.lang.Object

Helper class for handling Ingres version strings.

Author:
enrico.schenk@ingres.com

Constructor Summary
VersionHelper()
           
 
Method Summary
static Version valueOf(java.lang.String version)
          Returns a Version object according to the given argument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionHelper

public VersionHelper()
Method Detail

valueOf

public static Version valueOf(java.lang.String version)
Returns a Version object according to the given argument. For Ingres the string looks like "II 9.2.0 (int.w32/118)". The returned object contains major version "9", minor version "2", release version "0" and the build version "(int.w32/118)". If the argument is no Ingres version string the result of Version.valueOf(String) is returned.

Parameters:
version - string with version information
Returns:
Version object according the the argument