2.17.2: 2011-06-17

net.sf.basedb.info
Class VersionInfo

java.lang.Object
  extended by net.sf.basedb.info.VersionInfo
All Implemented Interfaces:
Serializable, Transferable

public class VersionInfo
extends Object
implements Serializable, Transferable

Information about the version the BASE server is running.

Version:
2.5
Author:
Nicklas
See Also:
Serialized Form

Field Summary
private  int build
           
private  String maintenance
           
private  String major
           
private  String minor
           
private  int schema
           
private static long serialVersionUID
           
 
Constructor Summary
VersionInfo()
          Creates a new empty info object
 
Method Summary
 int getBuild()
           
 String getMaintenance()
           
 String getMajor()
           
 String getMinor()
           
 int getSchema()
           
 void setBuild(int build)
           
 void setMaintenance(String maintenance)
           
 void setMajor(String major)
           
 void setMinor(String minor)
           
 void setSchema(int schema)
           
 String toString()
          Combine the versions to a string: major.minor.maintenance (build; schema)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

major

private String major

minor

private String minor

maintenance

private String maintenance

build

private int build

schema

private int schema
Constructor Detail

VersionInfo

public VersionInfo()
Creates a new empty info object

Method Detail

getBuild

public int getBuild()
Returns:
Returns the build number
See Also:
Application.getBuild()

setBuild

public void setBuild(int build)

getMaintenance

public String getMaintenance()
Returns:
Returns the maintenance version
See Also:
Application.getMaintenanceVersion()

setMaintenance

public void setMaintenance(String maintenance)

getMajor

public String getMajor()
Returns:
Returns the major version
See Also:
Application.getMajorVersion()

setMajor

public void setMajor(String major)

getMinor

public String getMinor()
Returns:
Returns the minor version
See Also:
Application.getMinorVersion()

setMinor

public void setMinor(String minor)

getSchema

public int getSchema()
Returns:
Returns the database schema version
See Also:
Application.getSchemaVersion()

setSchema

public void setSchema(int schema)

toString

public String toString()
Combine the versions to a string: major.minor.maintenance (build; schema)

Overrides:
toString in class Object

2.17.2: 2011-06-17