Class TableMapping
java.lang.Object
org.forgerock.audit.handlers.jdbc.TableMapping
Contains the necessary information to map an event to a database table, and the event fields to the columns
in that database table.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
Gets the audit event the table mapping is for.Sets the field to column mapping.getTable()
Gets the table name for the mapping.void
Sets the audit event the table mapping is for.void
setFieldToColumn
(Map<String, String> fieldToColumn) Sets the field to column mapping.void
Sets the table name for the mapping.
-
Constructor Details
-
TableMapping
public TableMapping()
-
-
Method Details
-
getEvent
Gets the audit event the table mapping is for.- Returns:
- The audit event the mapping is for.
-
setEvent
Sets the audit event the table mapping is for.- Parameters:
event
- The audit event the mapping is for.
-
getTable
Gets the table name for the mapping.- Returns:
- The table name for the mapping.
-
setTable
Sets the table name for the mapping.- Parameters:
table
- The table name for the mapping.
-
getFieldToColumn
Sets the field to column mapping.- Returns:
- The field to column mapping.
-
setFieldToColumn
Sets the field to column mapping. The map should be case insensitive.- Parameters:
fieldToColumn
- The field to column mapping.
-