Search in sources :

Example 1 with TrackedEntityAttributeValueHandler

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

the class HandlerFactory method createTrackedEntityAttributeValueHandler.

public static TrackedEntityAttributeValueHandler createTrackedEntityAttributeValueHandler(DatabaseAdapter databaseAdapter) {
    TrackedEntityAttributeValueStore entityAttributeValueStore = new TrackedEntityAttributeValueStoreImpl(databaseAdapter);
    TrackedEntityAttributeValueHandler trackedEntityAttributeValueHandler = new TrackedEntityAttributeValueHandler(entityAttributeValueStore);
    return trackedEntityAttributeValueHandler;
}
Also used : TrackedEntityAttributeValueHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueHandler) TrackedEntityAttributeValueStore(org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueStore) TrackedEntityAttributeValueStoreImpl(org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueStoreImpl)

Example 2 with TrackedEntityAttributeValueHandler

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

the class HandlerFactory method createTrackedEntityInstanceHandler.

public static TrackedEntityInstanceHandler createTrackedEntityInstanceHandler(DatabaseAdapter databaseAdapter) {
    TrackedEntityInstanceStore trackedEntityInstanceStore = new TrackedEntityInstanceStoreImpl(databaseAdapter);
    TrackedEntityAttributeValueHandler trackedEntityAttributeValueHandler = createTrackedEntityAttributeValueHandler(databaseAdapter);
    EnrollmentHandler enrollmentHandler = createEnrollmentHandler(databaseAdapter);
    TrackedEntityInstanceHandler trackedEntityInstanceHandler = new TrackedEntityInstanceHandler(trackedEntityInstanceStore, trackedEntityAttributeValueHandler, enrollmentHandler);
    return trackedEntityInstanceHandler;
}
Also used : TrackedEntityInstanceStoreImpl(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStoreImpl) TrackedEntityAttributeValueHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueHandler) EnrollmentHandler(org.hisp.dhis.android.core.enrollment.EnrollmentHandler) TrackedEntityInstanceStore(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStore) TrackedEntityInstanceHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceHandler)

Aggregations

TrackedEntityAttributeValueHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueHandler)2 EnrollmentHandler (org.hisp.dhis.android.core.enrollment.EnrollmentHandler)1 TrackedEntityAttributeValueStore (org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueStore)1 TrackedEntityAttributeValueStoreImpl (org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueStoreImpl)1 TrackedEntityInstanceHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceHandler)1 TrackedEntityInstanceStore (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStore)1 TrackedEntityInstanceStoreImpl (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStoreImpl)1