1 24 25 package com.mckoi.database; 26 27 34 35 public class TriggerEvent { 36 37 40 public static final int INSERT = 1; 41 public static final int DELETE = 2; 42 public static final int UPDATE = 3; 43 44 47 private int type; 48 49 52 private String source; 53 54 57 private int count; 58 59 62 public TriggerEvent(int type, String source, int count) { 63 this.type = type; 64 this.source = source; 65 this.count = count; 66 } 67 68 public TriggerEvent(int type, String source) { 69 this(type, source, 1); 70 } 71 72 75 public int getType() { 76 return type; 77 } 78 79 82 public String getSource() { 83 return source; 84 } 85 86 89 public int getCount() { 90 return count; 91 } 92 93 } 94 | Popular Tags |