Class LoadConditions


  • public class LoadConditions
    extends Object
    A 'brain' class that determines whether or not refs should be loaded.
    • Constructor Detail

      • LoadConditions

        public LoadConditions​(Load load,
                              Parent parent)
        Parameters:
        load - can be null; it's "whatever was specified on the field", possibly nothing
        parent - will be null for nonparent fields
    • Method Detail

      • shouldLoad

        public boolean shouldLoad​(Set<Class<?>> groups,
                                  boolean inTransaction)
        Returns:
        true if the property should be loaded when the given loadgroups are active