Coverage Report - org.kuali.db.DatabaseEvent
 
Classes in this File Line Coverage Branch Coverage Complexity
DatabaseEvent
0%
0/40
N/A
1
 
 1  
 package org.kuali.db;
 2  
 
 3  
 import java.util.Date;
 4  
 
 5  
 /**
 6  
  * Pojo for a database event
 7  
  */
 8  
 public class DatabaseEvent {
 9  
         String message;
 10  
         MessagePriority priority;
 11  
         Date timestamp;
 12  
         Throwable exception;
 13  
         Transaction transaction;
 14  
         int totalStatements;
 15  
         int successfulStatements;
 16  
         String sql;
 17  
         int updateCountTotal;
 18  
 
 19  
         public DatabaseEvent() {
 20  0
                 this(null);
 21  0
         }
 22  
 
 23  
         public DatabaseEvent(String message) {
 24  0
                 this(message, MessagePriority.INFO);
 25  0
         }
 26  
 
 27  
         public DatabaseEvent(String message, MessagePriority priority) {
 28  0
                 this(message, priority, new Date(), null, null);
 29  0
         }
 30  
 
 31  
         public DatabaseEvent(String message, MessagePriority priority, Date timestamp, Throwable exception, Transaction transaction) {
 32  0
                 super();
 33  0
                 this.message = message;
 34  0
                 this.priority = priority;
 35  0
                 this.timestamp = timestamp;
 36  0
                 this.exception = exception;
 37  0
                 this.transaction = transaction;
 38  0
         }
 39  
 
 40  
         public String getMessage() {
 41  0
                 return message;
 42  
         }
 43  
 
 44  
         public void setMessage(String message) {
 45  0
                 this.message = message;
 46  0
         }
 47  
 
 48  
         public MessagePriority getPriority() {
 49  0
                 return priority;
 50  
         }
 51  
 
 52  
         public void setPriority(MessagePriority priority) {
 53  0
                 this.priority = priority;
 54  0
         }
 55  
 
 56  
         public Date getTimestamp() {
 57  0
                 return timestamp;
 58  
         }
 59  
 
 60  
         public void setTimestamp(Date timestamp) {
 61  0
                 this.timestamp = timestamp;
 62  0
         }
 63  
 
 64  
         public Throwable getException() {
 65  0
                 return exception;
 66  
         }
 67  
 
 68  
         public void setException(Throwable exception) {
 69  0
                 this.exception = exception;
 70  0
         }
 71  
 
 72  
         public Transaction getTransaction() {
 73  0
                 return transaction;
 74  
         }
 75  
 
 76  
         public void setTransaction(Transaction transaction) {
 77  0
                 this.transaction = transaction;
 78  0
         }
 79  
 
 80  
         public int getTotalStatements() {
 81  0
                 return totalStatements;
 82  
         }
 83  
 
 84  
         public void setTotalStatements(int totalStatements) {
 85  0
                 this.totalStatements = totalStatements;
 86  0
         }
 87  
 
 88  
         public int getSuccessfulStatements() {
 89  0
                 return successfulStatements;
 90  
         }
 91  
 
 92  
         public void setSuccessfulStatements(int successfulStatements) {
 93  0
                 this.successfulStatements = successfulStatements;
 94  0
         }
 95  
 
 96  
         public String getSql() {
 97  0
                 return sql;
 98  
         }
 99  
 
 100  
         public void setSql(String sql) {
 101  0
                 this.sql = sql;
 102  0
         }
 103  
 
 104  
         public int getUpdateCountTotal() {
 105  0
                 return updateCountTotal;
 106  
         }
 107  
 
 108  
         public void setUpdateCountTotal(int updateCountTotal) {
 109  0
                 this.updateCountTotal = updateCountTotal;
 110  0
         }
 111  
 }