BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.log.manager.impl.LogManager Class Reference
Inheritance diagram for eu.baltrad.dex.log.manager.impl.LogManager:
eu.baltrad.dex.log.manager.ILogManager

Public Member Functions

 LogManager ()
 
void setJdbcTemplate (JdbcOperations jdbcTemplate)
 
String createQuery (LogParameter param, boolean count) throws Exception
 
long count ()
 
long count (String sql)
 
List< LogEntryload ()
 
List< LogEntryload (int limit)
 
List< LogEntryload (int offset, int limit)
 
List< LogEntryload (String level)
 
List< LogEntryload (String sql, int offset, int limit)
 
int store (LogEntry logEntry)
 
int delete ()
 
int delete (int id)
 
void setConfigManager (ConfigurationManager configManager)
 
void runMaintenance ()
 
void afterPropertiesSet () throws Exception
 

Additional Inherited Members

- Static Public Attributes inherited from eu.baltrad.dex.log.manager.ILogManager
static final String SQL_SELECT_STICKY
 

Detailed Description

Message logger.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.2.1
Since
0.6.6

Constructor & Destructor Documentation

◆ LogManager()

eu.baltrad.dex.log.manager.impl.LogManager.LogManager ( )
inline

Constructor.

Member Function Documentation

◆ afterPropertiesSet()

void eu.baltrad.dex.log.manager.impl.LogManager.afterPropertiesSet ( ) throws Exception
inline

Override for InitializingBean

◆ count() [1/2]

long eu.baltrad.dex.log.manager.impl.LogManager.count ( )
inline

Counts entries.

Returns
Total number of entries in the registry

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ count() [2/2]

long eu.baltrad.dex.log.manager.impl.LogManager.count ( String sql)
inline

Counts entries.

Returns
Total number of entries in the log

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ createQuery()

String eu.baltrad.dex.log.manager.impl.LogManager.createQuery ( LogParameter param,
boolean count ) throws Exception
inline

Creates db query based on given log parameters.

Parameters
paramLog parameter
countSelect /count query toggle
Returns
Query string
Exceptions
Exception

◆ delete() [1/2]

int eu.baltrad.dex.log.manager.impl.LogManager.delete ( )
inline

Delete all log entries.

Returns
Number of records deleted

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ delete() [2/2]

int eu.baltrad.dex.log.manager.impl.LogManager.delete ( int id)
inline

Delete log entry with a given id.

Returns
Number of records deleted

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ load() [1/5]

List< LogEntry > eu.baltrad.dex.log.manager.impl.LogManager.load ( )
inline

Load all log entries.

Returns
All log entries

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ load() [2/5]

List< LogEntry > eu.baltrad.dex.log.manager.impl.LogManager.load ( int limit)
inline

Load log entries.

Parameters
limitLimit
Returns
List of log entries

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ load() [3/5]

List< LogEntry > eu.baltrad.dex.log.manager.impl.LogManager.load ( int offset,
int limit )
inline

Load log entries.

Parameters
offsetOffset
limitLimit
Returns
List of log entries

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ load() [4/5]

List< LogEntry > eu.baltrad.dex.log.manager.impl.LogManager.load ( String level)
inline

Load log entries matching a given level.

Parameters
levelLog entry level
Returns
List of log entries matching given level

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ load() [5/5]

List< LogEntry > eu.baltrad.dex.log.manager.impl.LogManager.load ( String sql,
int offset,
int limit )
inline

Load log entries .

Parameters
paramLog entry parameters
offsetOffset
limitLimit
Returns
List of log entries matching given parameters

Implements eu.baltrad.dex.log.manager.ILogManager.

◆ runMaintenance()

void eu.baltrad.dex.log.manager.impl.LogManager.runMaintenance ( )
inline

Runs the maintenance routine for keeping the dex_messages table in check.

◆ setConfigManager()

void eu.baltrad.dex.log.manager.impl.LogManager.setConfigManager ( ConfigurationManager configManager)
inline
Parameters
configManagerthe configManager to set

◆ setJdbcTemplate()

void eu.baltrad.dex.log.manager.impl.LogManager.setJdbcTemplate ( JdbcOperations jdbcTemplate)
inline
Parameters
jdbcTemplatethe jdbcTemplate to set

◆ store()

int eu.baltrad.dex.log.manager.impl.LogManager.store ( LogEntry logEntry)
inline

Store log entry in database.

Parameters
entryLog entry to store
Returns
Auto-generated record id

Implements eu.baltrad.dex.log.manager.ILogManager.


The documentation for this class was generated from the following file: