1 17 package org.alfresco.repo.domain.hibernate; 18 19 import java.util.Date ; 20 21 import org.alfresco.repo.domain.AppliedPatch; 22 23 28 public class AppliedPatchImpl implements AppliedPatch 29 { 30 private String id; 31 private String description; 32 private int fixesFromSchema; 33 private int fixesToSchema; 34 private int targetSchema; 35 36 private int appliedToSchema; 37 private String appliedToServer; 38 private Date appliedOnDate; 39 private boolean wasExecuted; 40 private boolean succeeded; 41 private String report; 42 43 public AppliedPatchImpl() 44 { 45 } 46 47 @Override 48 public String toString() 49 { 50 StringBuilder sb = new StringBuilder (256); 51 sb.append("AppliedPatch") 52 .append("[ id=").append(id) 53 .append(", description=").append(description) 54 .append(", fixesFromSchema=").append(fixesFromSchema) 55 .append(", fixesToSchema=").append(fixesToSchema) 56 .append(", targetSchema=").append(targetSchema) 57 .append(", appliedToSchema=").append(appliedToSchema) 58 .append(", appliedToServer=").append(appliedToServer) 59 .append(", appliedOnDate=").append(appliedOnDate) 60 .append(", wasExecuted=").append(wasExecuted) 61 .append(", succeeded=").append(succeeded) 62 .append(", report=").append(report) 63 .append("]"); 64 return sb.toString(); 65 } 66 67 public String getId() 68 { 69 return id; 70 } 71 public void setId(String id) 72 { 73 this.id = id; 74 } 75 76 public String getDescription() 77 { 78 return description; 79 } 80 public void setDescription(String description) 81 { 82 if (description != null && description.length() > 1024) 83 { 84 description = (description.substring(0, 1020) + "..."); 86 } 87 this.description = description; 88 } 89 90 public int getFixesFromSchema() 91 { 92 return fixesFromSchema; 93 } 94 public void setFixesFromSchema(int version) 95 { 96 this.fixesFromSchema = version; 97 } 98 99 public int getFixesToSchema() 100 { 101 return fixesToSchema; 102 } 103 public void setFixesToSchema(int version) 104 { 105 this.fixesToSchema = version; 106 } 107 108 public int getTargetSchema() 109 { 110 return targetSchema; 111 } 112 public void setTargetSchema(int currentSchema) 113 { 114 this.targetSchema = currentSchema; 115 } 116 117 public int getAppliedToSchema() 118 { 119 return appliedToSchema; 120 } 121 public void setAppliedToSchema(int version) 122 { 123 this.appliedToSchema = version; 124 } 125 126 public String getAppliedToServer() 127 { 128 return appliedToServer; 129 } 130 131 public void setAppliedToServer(String appliedToServer) 132 { 133 this.appliedToServer = appliedToServer; 134 } 135 136 public Date getAppliedOnDate() 137 { 138 return appliedOnDate; 139 } 140 public void setAppliedOnDate(Date appliedOnDate) 141 { 142 this.appliedOnDate = appliedOnDate; 143 } 144 145 public boolean getWasExecuted() 146 { 147 return wasExecuted; 148 } 149 public void setWasExecuted(boolean wasExecuted) 150 { 151 this.wasExecuted = wasExecuted; 152 } 153 154 public boolean getSucceeded() 155 { 156 return succeeded; 157 } 158 public void setSucceeded(boolean succeeded) 159 { 160 this.succeeded = succeeded; 161 } 162 163 public String getReport() 164 { 165 return report; 166 } 167 public void setReport(String report) 168 { 169 if (report != null && report.length() > 1024) 170 { 171 report = (report.substring(0, 1020) + "..."); 173 } 174 this.report = report; 175 } 176 } | Popular Tags |