Class BusinessUnitTasks


public final class BusinessUnitTasks extends Object
  • Method Details

    • forEachBu

      public static <A, T> PersistTaskIterable<A,T> forEachBu(PersistTask<A,T> task)
      Creates a Task which executes the given task in all business units and returns all results as an Iterable. Arguments from the mode given to execute the returned task are not propagated to the inner `task`.
    • attachPrimaryKey

      public static OptionalTask<BusinessUnit,BusinessUnit> attachPrimaryKey()
      The tasks loads the primary key of the given business unit (if it not already exists) and returns a new business unit with its primary key set.