Package uk.ac.manchester.spinnaker.alloc.db
Database support for Spalloc server. Based on SQLite.
-
Interface Summary Interface Description DatabaseAPI The primary interface to the database.DatabaseAPI.Connected Some code that may be run within a transaction and which will be given a new connection for the duration.DatabaseAPI.ConnectedWithResult<T> Some code that may be run within a transaction that returns a result and which will be given a new connection for the duration.DatabaseAPI.Connection Connections made by the database engine bean.DatabaseAPI.Query Wrapping a prepared query to be more suitable for Java 8 onwards.DatabaseAPI.RowMapper<T> Maps database Row to an object.DatabaseAPI.StatementCommon Common shared API betweenDatabaseAPI.Query
andDatabaseAPI.Update
.DatabaseAPI.Transacted Some code that may be run within a transaction.DatabaseAPI.TransactedWithResult<T> Some code that may be run within a transaction that returns a result.DatabaseAPI.Update Wrapping a prepared update to be more suitable for Java 8 onwards. -
Class Summary Class Description DatabaseAwareBean A support class to make accessing the database a bit simpler.DatabaseEngineJDBCImpl Implementation of theDatabaseAPI
that uses JDBC to talk to MySQL.Row A restricted form of result set.SQL Some sort of SQL that can be executed as part of a query or an update.SQLQueries The literal SQL queries used in this package.Utils Miscellaneous database-related utility operations.