001: /*
002: * Created on Mar 9, 2003
003: *
004: * Dbmjui is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU General Public License version 2 as
006: * published by the Free Software Foundation.
007: *
008: * Dbmjui is distributed in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011: * General Public License for more details.
012: *
013: * You should have received a copy of the GNU General Public
014: * License along with dbmjui; see the file COPYING. If not,
015: * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
016: * Boston, MA 02111-1307, USA.
017: *
018: */
019: package fr.aliacom.dbmjui.beans;
020:
021: import java.io.Serializable;
022:
023: /**
024: * @author tom
025: *
026: * (c) 2001, 2003 Thomas Cataldo
027: */
028: public final class ErrorLogEntry implements Serializable {
029:
030: public static final int WARNING_SEVERITY = 1 << 0;
031: public static final int ERROR_SEVERITY = 1 << 1;
032:
033: private String database;
034: private String errorCode;
035: private String description;
036: private String dateTime;
037: private int severity;
038:
039: public ErrorLogEntry(String database, String errorCode,
040: String description, String dateTime) {
041: this .database = database;
042: this .errorCode = errorCode;
043: this .description = description;
044: this .dateTime = dateTime;
045: }
046:
047: public ErrorLogEntry() {
048: this ("", "", "", "");
049: }
050:
051: /**
052: * @return String
053: */
054: public String getDatabase() {
055: return database;
056: }
057:
058: /**
059: * @return String
060: */
061: public String getDateTime() {
062: return dateTime;
063: }
064:
065: /**
066: * @return String
067: */
068: public String getDescription() {
069: return description;
070: }
071:
072: /**
073: * @return String
074: */
075: public String getErrorCode() {
076: return errorCode;
077: }
078:
079: /**
080: * Sets the database.
081: * @param database The database to set
082: */
083: public void setDatabase(String database) {
084: this .database = database;
085: }
086:
087: /**
088: * Sets the dateTime.
089: * @param dateTime The dateTime to set
090: */
091: public void setDateTime(String dateTime) {
092: this .dateTime = dateTime;
093: }
094:
095: /**
096: * Sets the description.
097: * @param description The description to set
098: */
099: public void setDescription(String description) {
100: this .description = description;
101: }
102:
103: /**
104: * Sets the errorCode.
105: * @param errorCode The errorCode to set
106: */
107: public void setErrorCode(String errorCode) {
108: this .errorCode = errorCode;
109: }
110:
111: /**
112: * @return int
113: */
114: public int getSeverity() {
115: return severity;
116: }
117:
118: /**
119: * Sets the severity.
120: * @param severity The severity to set
121: */
122: public void setSeverity(int severity) {
123: this.severity = severity;
124: }
125:
126: }
|