mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user