Record Class AuditJdbcMapping
java.lang.Object
java.lang.Record
io.leandev.appfuse.audit.AuditJdbcMapping
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theprincipalrecord component.table()Returns the value of thetablerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AuditJdbcMapping
public AuditJdbcMapping(String table, String id, String principal, String type, String data, String timestamp) Creates an instance of aAuditJdbcMappingrecord class.- Parameters:
table- the value for thetablerecord componentid- the value for theidrecord componentprincipal- the value for theprincipalrecord componenttype- the value for thetyperecord componentdata- the value for thedatarecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-