Search in sources :

Example 1 with ContributionDataType

use of org.ehrbase.jooq.pg.enums.ContributionDataType in project ehrbase by ehrbase.

the class ContributionAccess method update.

@Override
public Boolean update(Timestamp transactionTime, UUID committerId, UUID systemId, String contributionType, String contributionState, String contributionChangeType, String description) {
    // set contribution  attributes
    ContributionDataType type = null;
    ContributionDef.ContributionState state = null;
    I_ConceptAccess.ContributionChangeType changeType = null;
    if (contributionType == null)
        type = ContributionDataType.valueOf(contributionType);
    if (contributionState != null)
        state = ContributionDef.ContributionState.valueOf(contributionState);
    if (contributionChangeType != null)
        changeType = I_ConceptAccess.ContributionChangeType.valueOf(contributionChangeType);
    // audit handling will be executed centralized in the following called method
    return update(transactionTime, committerId, systemId, type, state, changeType, description);
}
Also used : ContributionDef(org.ehrbase.dao.access.util.ContributionDef) ContributionDataType(org.ehrbase.jooq.pg.enums.ContributionDataType) ContributionChangeType(org.ehrbase.dao.access.interfaces.I_ConceptAccess.ContributionChangeType)

Aggregations

ContributionChangeType (org.ehrbase.dao.access.interfaces.I_ConceptAccess.ContributionChangeType)1 ContributionDef (org.ehrbase.dao.access.util.ContributionDef)1 ContributionDataType (org.ehrbase.jooq.pg.enums.ContributionDataType)1