toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OnFailure.doNothing:
      return 'DO_NOTHING';
    case OnFailure.rollback:
      return 'ROLLBACK';
    case OnFailure.delete:
      return 'DELETE';
  }
}