Search in sources :

Example 1 with CategoryOptionHandler

use of org.hisp.dhis.android.core.category.CategoryOptionHandler in project dhis2-android-sdk by dhis2.

the class HandlerFactory method createCategoryHandler.

public static CategoryHandler createCategoryHandler(DatabaseAdapter databaseAdapter) {
    CategoryStore categoryStore = new CategoryStoreImpl(databaseAdapter);
    CategoryOptionHandler categoryOptionHandler = createCategoryOptionHandler(databaseAdapter);
    CategoryCategoryOptionLinkStore categoryCategoryOptionLinkStore = new CategoryCategoryOptionLinkStoreImpl(databaseAdapter);
    CategoryHandler categoryHandler = new CategoryHandler(categoryStore, categoryOptionHandler, categoryCategoryOptionLinkStore);
    return categoryHandler;
}
Also used : CategoryOptionHandler(org.hisp.dhis.android.core.category.CategoryOptionHandler) CategoryCategoryOptionLinkStoreImpl(org.hisp.dhis.android.core.category.CategoryCategoryOptionLinkStoreImpl) CategoryStoreImpl(org.hisp.dhis.android.core.category.CategoryStoreImpl) CategoryStore(org.hisp.dhis.android.core.category.CategoryStore) CategoryCategoryOptionLinkStore(org.hisp.dhis.android.core.category.CategoryCategoryOptionLinkStore) CategoryHandler(org.hisp.dhis.android.core.category.CategoryHandler)

Example 2 with CategoryOptionHandler

use of org.hisp.dhis.android.core.category.CategoryOptionHandler in project dhis2-android-sdk by dhis2.

the class HandlerFactory method createCategoryOptionHandler.

public static CategoryOptionHandler createCategoryOptionHandler(DatabaseAdapter databaseAdapter) {
    CategoryOptionStore categoryOptionStore = new CategoryOptionStoreImpl(databaseAdapter);
    CategoryOptionHandler categoryOptionHandler = new CategoryOptionHandler(categoryOptionStore);
    return categoryOptionHandler;
}
Also used : CategoryOptionHandler(org.hisp.dhis.android.core.category.CategoryOptionHandler) CategoryOptionStoreImpl(org.hisp.dhis.android.core.category.CategoryOptionStoreImpl) CategoryOptionStore(org.hisp.dhis.android.core.category.CategoryOptionStore)

Aggregations

CategoryOptionHandler (org.hisp.dhis.android.core.category.CategoryOptionHandler)2 CategoryCategoryOptionLinkStore (org.hisp.dhis.android.core.category.CategoryCategoryOptionLinkStore)1 CategoryCategoryOptionLinkStoreImpl (org.hisp.dhis.android.core.category.CategoryCategoryOptionLinkStoreImpl)1 CategoryHandler (org.hisp.dhis.android.core.category.CategoryHandler)1 CategoryOptionStore (org.hisp.dhis.android.core.category.CategoryOptionStore)1 CategoryOptionStoreImpl (org.hisp.dhis.android.core.category.CategoryOptionStoreImpl)1 CategoryStore (org.hisp.dhis.android.core.category.CategoryStore)1 CategoryStoreImpl (org.hisp.dhis.android.core.category.CategoryStoreImpl)1