org.lexevs.dao.database.schemaversion
Class LexGridSchemaVersion

java.lang.Object
  extended by org.lexevs.dao.database.schemaversion.LexGridSchemaVersion

public class LexGridSchemaVersion
extends java.lang.Object

The Class LexGridSchemaVersion.

Author:
Kevin Peterson

Constructor Summary
LexGridSchemaVersion()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getMajorVersion()
          Gets the major version.
 int getMinorVersion()
          Gets the minor version.
 boolean isEqualVersion(LexGridSchemaVersion otherVersion)
          Checks if is equal version.
static LexGridSchemaVersion parseStringToVersion(java.lang.String version)
          Parses the string to version.
 void setMajorVersion(int majorVersion)
          Sets the major version.
 void setMinorVersion(int minorVersion)
          Sets the minor version.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LexGridSchemaVersion

public LexGridSchemaVersion()
Method Detail

setMajorVersion

public void setMajorVersion(int majorVersion)
Sets the major version.

Parameters:
majorVersion - the new major version

getMajorVersion

public int getMajorVersion()
Gets the major version.

Returns:
the major version

setMinorVersion

public void setMinorVersion(int minorVersion)
Sets the minor version.

Parameters:
minorVersion - the new minor version

getMinorVersion

public int getMinorVersion()
Gets the minor version.

Returns:
the minor version

parseStringToVersion

public static LexGridSchemaVersion parseStringToVersion(java.lang.String version)
Parses the string to version. Assumes a String formatted as "'major-version'.'minor-version'".

Parameters:
version - the version
Returns:
the database version

isEqualVersion

public boolean isEqualVersion(LexGridSchemaVersion otherVersion)
Checks if is equal version.

Parameters:
otherVersion - the other version
Returns:
true, if is equal version

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.