Interface GenericDAO

    • Method Detail

      • findByAlternateKey

        Generic findByAlternateKey​(String type,
                                   String subtype,
                                   Long qualifier,
                                   long tenantId)
        Finds a Generic by it's alternate key
        Parameters:
        type - The type(you can use like jollies and can be null)
        subtype - The sub-type(you can use like jollies and can be null)
        tenantId - ID of the owning tenant (optional)
        qualifier - the qualifier, can be null
        Returns:
        Wanted generic or null
      • findByTypeAndSubtype

        List<Generic> findByTypeAndSubtype​(String type,
                                           String subtype,
                                           Long qualifier,
                                           Long tenantId)
        Finds a Generic by it's alternate key. The search uses the like operator and each parameter can be null.
        Parameters:
        type - The type(you can use like jollies and can be null)
        subtype - The sub-type(you can use like jollies and can be null)
        tenantId - ID of the owning tenant (optional)
        qualifier - the qualifier, can be null
        Returns:
        The collection of found Generics