2.17.2: 2011-06-17

net.sf.basedb.core
Class Version

java.lang.Object
  extended by net.sf.basedb.core.Version

public class Version
extends Object

Get information about the BASE version.

The version information is stored in the base.version file.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2010-08-13 10:50:27 +0200 (Fri, 13 Aug 2010) $

Field Summary
private static int build
           
private static String maintenance
           
private static String major
           
private static String minor
           
 
Constructor Summary
Version()
           
 
Method Summary
static int getBuild()
          Get the build version.
static String getMaintenance()
          Get the maintentance version.
static String getMajor()
          Get the major version.
static String getMinor()
          Get the minor version.
static String getVersion()
           
(package private) static void init()
          Loads the settings from the configuration file.
private static int parseBuildNumber(String buildNumber)
          Find the first digits in a string and return those as the build number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

major

private static String major

minor

private static String minor

maintenance

private static String maintenance

build

private static int build
Constructor Detail

Version

public Version()
Method Detail

init

static void init()
          throws ConfigurationException
Loads the settings from the configuration file.

Throws:
ConfigurationException - This exception is thrown if the configuration settings cannot be loaded

getMajor

public static String getMajor()
Get the major version.


getMinor

public static String getMinor()
Get the minor version.


getMaintenance

public static String getMaintenance()
Get the maintentance version.


getBuild

public static int getBuild()
Get the build version.


getVersion

public static String getVersion()

parseBuildNumber

private static int parseBuildNumber(String buildNumber)
Find the first digits in a string and return those as the build number.


2.17.2: 2011-06-17