Fido Alpha 3.2

fido.db
Class SystemPropertiesTable

java.lang.Object
  |
  +--fido.db.SystemPropertiesTable

public class SystemPropertiesTable
extends java.lang.Object

Retrieves runtime properties from the database.


Constructor Summary
SystemPropertiesTable()
          Creates a new SystemPropertiesTable instance.
 
Method Summary
 java.lang.String dbDataVersion()
          Returns value of the row for DB Data Version.
 java.lang.String dbSchemaVersion()
          Returns value of the row for DB Schema Version.
 java.lang.String dbVendor()
          Returns the value for the row DB Vendor.
 boolean productionLevel()
          Returns if the row Run Level is set to the value Production.
 java.lang.String softwareVersion()
          Returns the version of the Fido software running on the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPropertiesTable

public SystemPropertiesTable()
Creates a new SystemPropertiesTable instance.

Method Detail

productionLevel

public boolean productionLevel()
Returns if the row Run Level is set to the value Production. Defaults to true if the row is not found, or if any SQL error happens.

Returns:
True if the run level is set to production, or the row is not found. False otherwise.

dbSchemaVersion

public java.lang.String dbSchemaVersion()
Returns value of the row for DB Schema Version. This value is the version of the database schema used in this release.

Returns:
Version of the database schema. default if the row is not found.

dbDataVersion

public java.lang.String dbDataVersion()
Returns value of the row for DB Data Version. This value is the version of the database data loaded. this is a user configurable value that can tell the user the data is loaded. For example, Physics would tell the user the system is setup to answer questions about physics.

Returns:
Version of the database schema. default if the row is not found.

dbVendor

public java.lang.String dbVendor()
Returns the value for the row DB Vendor. This is the company or organization that created the database the system is using.

Returns:
The name of the database vendor the system is using.

softwareVersion

public java.lang.String softwareVersion()
Returns the version of the Fido software running on the server.

Returns:
Version of the Fido software running on the server.

Fido Alpha 3.2