2.17.2: 2011-06-17

net.sf.basedb.core.data
Class SchemaVersionData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.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: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $
Hibernate: class
table="`SchemaVersion`" lazy="false"

Field Summary
private  int build
           
private  int schemaVersion
           
 
Constructor Summary
SchemaVersionData()
           
 
Method Summary
 int getBuild()
          The build number.
 int getSchemaVersion()
          The current schema version.
 void setBuild(int build)
           
 void setSchemaVersion(int schemaVersion)
           
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

schemaVersion

private int schemaVersion

build

private int build
Constructor Detail

SchemaVersionData

public SchemaVersionData()
Method Detail

getSchemaVersion

public int getSchemaVersion()
The current schema version.

Hibernate: property
column="`schema_version`" type="int" not-null="true"

setSchemaVersion

public void setSchemaVersion(int schemaVersion)

getBuild

public int getBuild()
The build number.

Hibernate: property
column="`build`" type="int" not-null="true"

setBuild

public void setBuild(int build)

2.17.2: 2011-06-17