java.lang.Object
org.jooq.impl.DefaultAuditProvider
- All Implemented Interfaces:
AuditProvider
- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Field<T>
provideTimestamp
(GeneratorContext<?, ?, T> ctx) Provide a temporal expression for auditing, defaulting toDSL.currentDate()
,DSL.currentTime()
, orDSL.currentTimestamp()
, depending on the argument data type.<T> Field<T>
provideUser
(GeneratorContext<?, ?, T> ctx) Provide a credential expression for auditing, defaulting toDSL.currentUser()
.
-
Constructor Details
-
DefaultAuditProvider
public DefaultAuditProvider()
-
-
Method Details
-
provideTimestamp
Description copied from interface:AuditProvider
Provide a temporal expression for auditing, defaulting toDSL.currentDate()
,DSL.currentTime()
, orDSL.currentTimestamp()
, depending on the argument data type.- Specified by:
provideTimestamp
in interfaceAuditProvider
- Returns:
- The temporal expression, or
null
if no expression is available.
-
provideUser
Description copied from interface:AuditProvider
Provide a credential expression for auditing, defaulting toDSL.currentUser()
.- Specified by:
provideUser
in interfaceAuditProvider
- Returns:
- The credential expression, or
null
if no expression is available.
-