Patch application on startup reports progress

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-01-24 23:49:16 +00:00
parent ff7e10f80c
commit 744535fa73
10 changed files with 245 additions and 22 deletions

View File

@@ -18,40 +18,32 @@ package org.alfresco.repo.domain;
import java.util.Date;
import org.alfresco.repo.admin.patch.PatchInfo;
/**
* Interface for persistent patch application information.
*
* @author Derek Hulley
*/
public interface AppliedPatch
public interface AppliedPatch extends PatchInfo
{
public String getId();
public void setId(String id);
public String getDescription();
public void setDescription(String description);
public int getFixesFromSchema();
public void setFixesFromSchema(int version);
public int getFixesToSchema();
public void setFixesToSchema(int version);
public int getTargetSchema();
public void setTargetSchema(int version);
public int getAppliedToSchema();
public void setAppliedToSchema(int version);
public String getAppliedToServer();
public void setAppliedToServer(String server);
public Date getAppliedOnDate();
public void setAppliedOnDate(Date date);
public boolean getSucceeded();
public void setSucceeded(boolean succeeded);
public String getReport();
public void setReport(String report);
}

View File

@@ -33,4 +33,16 @@
org.alfresco.repo.domain.hibernate.AppliedPatchImpl as appliedPatch
</query>
<query name="patch.GetAppliedPatchesByDate">
<![CDATA[
select
appliedPatch
from
org.alfresco.repo.domain.hibernate.AppliedPatchImpl as appliedPatch
where
appliedPatch.appliedOnDate >= :fromDate and
appliedPatch.appliedOnDate <= :toDate
]]>
</query>
</hibernate-mapping>