Interface IDbInfoDao<T extends ADbInfo>

Type Parameters:
T - type of DbInformation to store
All Known Implementing Classes:
ADbInfoDao, DbInfoDao, DbInfoDao

public interface IDbInfoDao<T extends ADbInfo>
Interface of DAO managing ADbInfo.
Author:
ActiveViam
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    create(T info)
    Store an info from the DB.
    get(String key)
    Gets an info from the DB.
    void
    Initializes the DAO.
  • Method Details Link icon

    • initialize Link icon

      void initialize()
      Initializes the DAO.

      On a new database, this registers all relevant information regarding the database.
      On existing database, it perform all required checks to ensure the integrity and usability of the data.

    • get Link icon

      T get(String key)
      Gets an info from the DB.
      Parameters:
      key - key of the info to search
      Returns:
      the info or null if it does not exist
    • create Link icon

      T create(T info)
      Store an info from the DB.
      Parameters:
      info - the info to store
      Returns:
      the persisted info