Interface IClientCounterDao

    • Method Detail

      • getByUuid

        @Nullable
        ClientCounter getByUuid​(IEntityContext ec,
                                Mandant client,
                                UUID uuid)
        Parameters:
        ec - Current entity context for accessing the database.
        client - context to search for the counter.
        uuid - UUID of the counter.
        Returns:
        The counter with the given UUID that belongs to the client, or null when no such counter exist.
        Since:
        7.0.0
      • getByName

        @Nullable
        ClientCounter getByName​(IEntityContext ec,
                                Mandant client,
                                String name)
        Parameters:
        ec - Current entity context for accessing the database.
        client - context to search for the counter.
        name - name of the counter.
        Returns:
        The counter with the given name that belongs to the client, or null when no such counter exist.
        Since:
        7.0.0
      • findUniqueName

        String findUniqueName​(IEntityContext ec,
                              Mandant client,
                              String candidate,
                              ClientCounter exclude)
        Returns a name that is not taken by another ClientCounter in the given client. An index will be added to the candidate if necessary.
        Parameters:
        ec - IEntityContext to be used
        client - Mandant for which a unique client counter name should be generated
        candidate - String client counter name candiate to be made unique
        exclude - ClientCounter client resource to be excluded from the search
        Returns:
        unique client resource name in the context of the given client
        Since:
        7.0.0