Interface IdFiller

All Known Implementing Classes:
AnnotatedIdFiller
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IdFiller
Fills the CosId field of an entity when it is not set yet (<= 0 or empty); long/Long, int/Integer (range checked) and String fields: the generator's text, as text(name) gives it (its codec, the 80-bit or periodic text, the canonical UUIDv7 form) (07-runtime-and-spring.md ยง3).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fill(Object entity)
    Fills the @CosId field of entity if it is not set yet; an entity whose class has no such field is left as it is (R1-core-16).
  • Method Details

    • fill

      void fill(Object entity)
      Fills the @CosId field of entity if it is not set yet; an entity whose class has no such field is left as it is (R1-core-16).
      Parameters:
      entity - the entity
      Throws:
      NullPointerException - if entity is null
      CosIdException - if the field cannot be set