Class SchemaVersionData

java.lang.Object
net.sf.basedb.core.data.BasicData
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: 2014-11-27 13:06:57 +0100 (to, 27 nov 2014) $
Hibernate: class
table="`SchemaVersion`" lazy="false"
  • Field Details

    • BASE_APP_ID

      public static final String BASE_APP_ID
      See Also:
    • schemaVersion

      private int schemaVersion
    • build

      private int build
    • appId

      private String appId
  • Constructor Details

    • SchemaVersionData

      public SchemaVersionData()
  • Method Details

    • 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)
    • getAppId

      public String getAppId()
      The ID of the application the schema version is valid for. 'net.sf.basedb.core' is for the BASE core.
      Since:
      3.4
      Hibernate: property
      column="`app_id`" type="string" length="255" not-null="true" unique="true"
    • setAppId

      public void setAppId(String appId)