Package net.sf.basedb.core.data
Class SchemaVersionData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.SchemaVersionData
- All Implemented Interfaces:
IdentifiableData
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAppId()
The ID of the application the schema version is valid for.int
getBuild()
The build number.int
The current schema version.void
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
-
Field Details
-
BASE_APP_ID
- See Also:
-
schemaVersion
private int schemaVersion -
build
private int build -
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
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
-