# Class LLDatabaseService

java.lang.Object
com.io7m.looseleaf.server.internal.LLDatabaseService

All Implemented Interfaces:
  `com.io7m.repetoir.core.RPServiceType, Closeable, AutoCloseable`

public final class LLDatabaseService extends Object implements com.io7m.repetoir.core.RPServiceType, Closeable
A service that exposes a database.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LLDatabaseService(LLDatabaseType inDatabase)`
  A service that exposes a database.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `LLDatabaseType`
  `database()`
  `String`
  `description()`
  `String`
  `toString()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### LLDatabaseService

    public LLDatabaseService(LLDatabaseType inDatabase)
    A service that exposes a database.
    Parameters:
      `inDatabase` - The database

- ## Method Details

  - ### description

    public String description()
    Specified by:
      `description` in interface `com.io7m.repetoir.core.RPServiceType`

  - ### database

    public LLDatabaseType database()
    Returns:
      The database

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Throws:
      `IOException`