Search in sources :

Example 1 with TrackedEntityDataValueHandler

use of org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueHandler in project dhis2-android-sdk by dhis2.

the class HandlerFactory method createTrackedEntityDataValueHandler.

public static TrackedEntityDataValueHandler createTrackedEntityDataValueHandler(DatabaseAdapter databaseAdapter) {
    TrackedEntityDataValueStore trackedEntityDataValueStore = new TrackedEntityDataValueStoreImpl(databaseAdapter);
    TrackedEntityDataValueHandler trackedEntityDataValueHandler = new TrackedEntityDataValueHandler(trackedEntityDataValueStore);
    return trackedEntityDataValueHandler;
}
Also used : TrackedEntityDataValueStore(org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStore) TrackedEntityDataValueStoreImpl(org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStoreImpl) TrackedEntityDataValueHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueHandler)

Example 2 with TrackedEntityDataValueHandler

use of org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueHandler in project dhis2-android-sdk by dhis2.

the class HandlerFactory method createEventHandler.

public static EventHandler createEventHandler(DatabaseAdapter databaseAdapter) {
    TrackedEntityDataValueHandler trackedEntityDataValueHandler = createTrackedEntityDataValueHandler(databaseAdapter);
    EventStore eventStore = new EventStoreImpl(databaseAdapter);
    EventHandler eventHandler = new EventHandler(eventStore, trackedEntityDataValueHandler);
    return eventHandler;
}
Also used : EventStore(org.hisp.dhis.android.core.event.EventStore) EventStoreImpl(org.hisp.dhis.android.core.event.EventStoreImpl) TrackedEntityDataValueHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueHandler) EventHandler(org.hisp.dhis.android.core.event.EventHandler)

Aggregations

TrackedEntityDataValueHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueHandler)2 EventHandler (org.hisp.dhis.android.core.event.EventHandler)1 EventStore (org.hisp.dhis.android.core.event.EventStore)1 EventStoreImpl (org.hisp.dhis.android.core.event.EventStoreImpl)1 TrackedEntityDataValueStore (org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStore)1 TrackedEntityDataValueStoreImpl (org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStoreImpl)1