1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
import org.apache.solr.client.solrj.beans.Field;
public class Log {
@Field
String Id_str = "";
@Field
String Date = "";
@Field
String Level = "";
@Field
String Application = "";
@Field
int Campagne = 0;
@Field
public String toString() {
String res = "";
res += "Id : " + Id_str + "\n";
res += "Level : " + Level + "\n";
return res;
}
/**
* @return the id_str
*/
@Field
public String getId_str() {
return Id_str.trim();
}
/**
* @return the date
*/
@Field
public String getDate() {
return Date.trim();
}
/**
* @return the level
*/
@Field
public String getLevel() {
return Level.trim();
}
/**
* @return the application
*/
@Field
public String getApplication() {
return Application.trim();
}
/**
* @return the campagne
*/
@Field
public int getCampagne() {
return Campagne;
}
/**
* @param id_str the id_str to set
*/
@Field
public void setId_str(String id_str) {
Id_str = id_str;
}
/**
* @param date the date to set
*/
@Field
public void setDate(String date) {
Date = date;
}
/**
* @param level the level to set
*/
@Field
public void setLevel(String level) {
Level = level;
}
/**
* @param application the application to set
*/
@Field
public void setApplication(String application) {
Application = application;
}
/**
* @param campagne the campagne to set
*/
@Field
public void setCampagne(int campagne) {
Campagne = campagne;
}
} |
Partager