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;
}
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;
}
Aggregations