Last update: 2011-06-23

org.proteios.core.data
Class SchemaVersionData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.SchemaVersionData
All Implemented Interfaces:
IdentifiableData

public class SchemaVersionData
extends BasicData

This class holds information about the current schema version of the database. It contains only one record. All modifications to the database which requires some update script action on the data bumps the version number with one.

Version:
2.0
Author:
Nicklas
Last modified
$Date$
Hibernate: class
table="`SchemaVersion`" lazy="false"

Constructor Summary
SchemaVersionData()
           
 
Method Summary
 int getBuild()
          Get the build number.
 int getSchemaVersion()
          Get the schema version.
 void setBuild(int build)
          Set the build number.
 void setSchemaVersion(int schemaVersion)
          Set the schema version.
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaVersionData

public SchemaVersionData()
Method Detail

getSchemaVersion

public int getSchemaVersion()
Get the schema version.

Returns:
int current schema version
Hibernate: property
column="`schema_version`" type="int" not-null="true"

setSchemaVersion

public void setSchemaVersion(int schemaVersion)
Set the schema version.

Parameters:
schemaVersion - int the schema version value to set.

getBuild

public int getBuild()
Get the build number.

Returns:
int the current build number.
Hibernate: property
column="`build`" type="int" not-null="true"

setBuild

public void setBuild(int build)
Set the build number.

Parameters:
build - int the build number to set.

Last update: 2011-06-23