Interface MasterDataDao<E extends com.devonfw.module.basic.common.api.entity.PersistenceEntity<Long>>

  • Type Parameters:
    E - is the generic type of the PersistenceEntity.
    All Superinterfaces:
    Dao<E>, FeatureForceIncrementModificationCounter<E>, GenericDao<Long,​E>
    All Known Implementing Classes:
    AbstractMasterDataDao

    public interface MasterDataDao<E extends com.devonfw.module.basic.common.api.entity.PersistenceEntity<Long>>
    extends Dao<E>
    This is the interface for a Dao responsible for a PersistenceEntity that represents master-data. In that case you typically have a limited number of entities in your persistent store and need operations like findAll().
    ATTENTION:
    Such operations are not part of GenericDao or Dao as invoking them (accidently) could cause that an extraordinary large number of entities are loaded into main memory and could cause serious performance and stability disasters. So only extend this interface in case you are aware of what you are doing.
    • Method Detail

      • findAll

        List<E> findAll()
        Returns:
        an Iterable with ALL managed entities from the persistent store. Not exposed to API by default as this might not make sense for all kind of entities.