001package io.ebean.event.changelog;
002
003/**
004 * The type of the change.
005 */
006public enum ChangeType {
007
008  /**
009   * The change was an insert.
010   */
011  INSERT("I"),
012
013  /**
014   * The change was an update.
015   */
016  UPDATE("U"),
017
018  /**
019   * The change was a delete.
020   */
021  DELETE("D");
022
023  final String code;
024
025  ChangeType(String code) {
026    this.code = code;
027  }
028
029  /**
030   * Return the short code for the ChangeType.
031   * <p>
032   * I - Insert, U - Update and D - Delete.
033   * </p>
034   */
035  public String getCode() {
036    return code;
037  }
038}