Package adams.db

Class LogF

    • Field Detail

      • m_TableManager

        protected static FacadeManager<LogF> m_TableManager
        the facade manager.
      • m_DB

        protected LogIntf m_DB
        the backend.
    • Method Detail

      • load

        public LogEntry load​(long auto_id)
        Loads a log entry from db, using the database ID.
        Specified by:
        load in interface LogIntf
        Parameters:
        auto_id - the auto_id to retrieve and field from
        Returns:
        the log entry, null if not found
      • load

        public List<LogEntry> load​(LogEntryConditions cond)
        Loads log entries from the database that match the conditions.
        Specified by:
        load in interface LogIntf
        Parameters:
        cond - the conditions for the entries to match
        Returns:
        the log entries
      • exists

        public boolean exists​(LogEntry log)
        Looks for a log entry in the DB, looking for the auto_id.
        Specified by:
        exists in interface LogIntf
        Parameters:
        log - the log entry
        Returns:
        true if a log entry already exists
      • add

        public boolean add​(LogEntry log)
        Adds a log entry.
        Specified by:
        add in interface LogIntf
        Parameters:
        log - the log entry to add
        Returns:
        true if insert successful or already present
      • update

        public boolean update​(LogEntry log)
        Updates a log entry.
        Specified by:
        update in interface LogIntf
        Parameters:
        log - the log entry to update
        Returns:
        true if update successful or false if not present
      • remove

        public boolean remove​(LogEntry log)
        Removes a log entry from the DB.
        Specified by:
        remove in interface LogIntf
        Parameters:
        log - the log entry
        Returns:
        true if successful
      • getSingleton

        public static LogF getSingleton​(AbstractDatabaseConnection dbcon)
        Returns the singleton of the facade.
        Parameters:
        dbcon - the database connection to get the singleton for
        Returns:
        the singleton