Package de.businesscode.bcdui.logging
Class SessionExpiredSqlLogger
java.lang.Object
de.businesscode.bcdui.toolbox.AWorkerQueue<T>
de.businesscode.bcdui.logging.SessionExpiredSqlLogger
logs
SessionExpiredSqlLogger.LogRecord
into database, binding set used is bcd_log_session,
this class is not intended to be customized or extended in projects. The existence of
the binding-set enables this logger automatically.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Log for expired session -
Field Summary
Fields inherited from class de.businesscode.bcdui.toolbox.AWorkerQueue
DEFAULT_MAX_QUEUE_SIZE, log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[][]
processes given collection of type to dimensional object array to be consumed by batch SQLprotected int[]
executeStatement
(Object[][] params) executes statement with raw parameters and returns number of updated rowsprotected DataSource
static SessionExpiredSqlLogger
protected String
boolean
as SQL logger we are depended on Bindings, which in turn use classes using us, so we dont participate in Binding bootstrap processprotected void
implement the method to process the objects polled from queue (FIFO)Methods inherited from class de.businesscode.bcdui.toolbox.AWorkerQueue
enqueue, onIdle, process, process, shutdownQueues
-
Constructor Details
-
SessionExpiredSqlLogger
protected SessionExpiredSqlLogger()
-
-
Method Details
-
getInstance
-
getSqlTemplate
- Returns:
- SQL template for inserts (prepared statement compatible to process batch updates) this sql template is not intended to change and is cached so this function is called only once
-
executeStatement
executes statement with raw parameters and returns number of updated rows- Returns:
- The number of rows updated per statement
- Throws:
SQLException
-
convertData
processes given collection of type to dimensional object array to be consumed by batch SQL- Parameters:
records
-- Returns:
-
isEnabled
public boolean isEnabled()as SQL logger we are depended on Bindings, which in turn use classes using us, so we dont participate in Binding bootstrap process- Returns:
-
processObjects
Description copied from class:AWorkerQueue
implement the method to process the objects polled from queue (FIFO)- Specified by:
processObjects
in classAWorkerQueue<T>
- Parameters:
records
- to process
-
getDataSource
- Returns:
- a datasource as referenced by the binding-set or the default datasource
- Throws:
RuntimeException
- in case datasource name discovery via Bindings takes place whilst Bindings has not initialized yet.
-