Class AuditEntityNameRegister

  • public class AuditEntityNameRegister
    extends Object
    A register of all audit entity names used so far.
    • Constructor Detail

      • AuditEntityNameRegister

        public AuditEntityNameRegister()
    • Method Detail

      • register

        public void register​(String auditEntityName)
        Register an audit entity name. If the name is already registered, an exception is thrown.
        auditEntityName - Name of the audit entity.
      • createUnique

        public String createUnique​(String baseAuditEntityName)
        Creates a unique (not yet registered) audit entity name by appending consecutive numbers to the base name. If the base name is not yet used, it is returned unmodified.
        baseAuditEntityName - The base entity name.
        A unique audit entity name