Class Metadata


  • public class Metadata
    extends Object
    Useful information about a transaction.
    • Method Detail

      • getExecutingUser

        public String getExecutingUser()
        The user that performed this change. May be different from @link{authenticatedUser} when using impersonation.
        Returns:
        executing user
      • getConnectionClient

        public String getConnectionClient()
        The client’s address (usually IP address and port, but it might change based on protocol).
        Returns:
        client's address
      • getAuthenticatedUser

        public String getAuthenticatedUser()
        The authenticated user when this change was performed.
        Returns:
        authenticated user
      • getDatabaseName

        public String getDatabaseName()
        Database name on which this change was performed.
        Returns:
        database name
      • getCaptureMode

        public CaptureMode getCaptureMode()
        CDC capture mode at the time this change was captured.
        Returns:
        capture mode
      • getServerId

        public String getServerId()
        The identifier of the server that performed this change.
        Returns:
        server id
      • getConnectionType

        public String getConnectionType()
        The protocol under which the client is connected through.
        Returns:
        connection type
      • getConnectionServer

        public String getConnectionServer()
        The server’s address (usually IP address and port but might change based on protocol).
        Returns:
        server's address
      • getTxStartTime

        public ZonedDateTime getTxStartTime()
        The timestamp when the underlying transaction started.
        Returns:
        tx start time
      • getTxCommitTime

        public ZonedDateTime getTxCommitTime()
        The timestamp when the underlying transaction committed.
        Returns:
        tx commit time
      • getAdditionalEntries

        public Map<String,​Object> getAdditionalEntries()
        Any other information captured but not included as a property.
        Returns:
        additional information
      • getTxMetadata

        public Map<String,​Object> getTxMetadata()
        The metadata associated with the transaction when the operation was performed.
        Returns:
        transaction metadata
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromMap

        public static Metadata fromMap​(Map<?,​?> map)