app/src/main/java/db/juhaku/juhakudb/repository/RepositoryFactory.java
/**
     * Create custom base repository by provided base impl class. If used this will be default
     * repository base for all the repositories that are not using custom repository implementation.
     *
     * @param baseImpl Base class that extends {@link SimpleAndroidRepository} to create repository for.
     * @param em Instance of {@link EntityManager}.
     * @param entity Class of the entity that is being managed by the repository.
     * @return  Custom base repository implementation.
     *
     * @since 1.3.0
     *
     * @hide
     */
Create custom base repository by provided base impl class. If used this will be default
repository base for all the repositories that are not using custom repository implementation.

@param baseImpl Base class that extends  SimpleAndroidRepository to create repository for.
@param em Instance of  EntityManager.
@param entity Class of the entity that is being managed by the repository.
@return  Custom base repository implementation.



@hide
Create custom base repository by provided base impl class . If used this will be default repository base for all the repositories that are not using custom repository implementation . @param baseImpl Base class that extends SimpleAndroidRepository to create repository for . @param em Instance of EntityManager . @param entity Class of the entity that is being managed by the repository . @return Custom base repository implementation . @hide
private static <T> T customBaseImpl(Class<?> baseImpl, EntityManager em, Class<?> entity) {
        T repository = ReflectionUtils.instantiateConstructor(baseImpl, em, entity);
        if (repository == null) {
            Log.w(RepositoryFactory.class.getName(), "Could not instantiate repository: " + baseImpl
                    + " with: " + em + " and " + entity.getName());
        }
        return repository;
    }
private static < T > T customBaseImpl ( Class < ? > baseImpl , EntityManager em , Class < ? > entity ) { T repository = ReflectionUtils . instantiateConstructor ( baseImpl , em , entity ) ; if ( repository == null ) { Log . w ( RepositoryFactory . class . getName ( ) , "Could not instantiate repository: " + baseImpl + " with: " + em + " and " + entity . getName ( ) ) ; } return repository ; }
Create custom base repository by provided base impl class.
Create custom base repository by provided base impl class .