mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Checkpoint checkin of patch code.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2119 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
'-//Hibernate/Hibernate Mapping DTD 3.0//EN'
|
||||
'http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd'>
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class
|
||||
name="org.alfresco.repo.domain.hibernate.AppliedPatchImpl"
|
||||
proxy="org.alfresco.repo.domain.AppliedPatch"
|
||||
table="applied_patch"
|
||||
dynamic-update="false"
|
||||
dynamic-insert="false"
|
||||
select-before-update="false"
|
||||
optimistic-lock="version" >
|
||||
<id column="id" length="32" name="id" type="string" />
|
||||
<property name="description" column="description" type="string" length="1024" />
|
||||
<property name="applyAfterVersion" column="apply_after_version" type="string" length="10" />
|
||||
<property name="succeeded" column="succeeded" type="boolean" />
|
||||
<property name="appliedOnVersion" column="applied_on_version" type="string" length="10" />
|
||||
<property name="appliedOnDate" column="applied_on_date" type="timestamp" />
|
||||
<property name="report" column="report" type="string" length="1024" />
|
||||
</class>
|
||||
|
||||
<query name="patch.GetAllAppliedPatches">
|
||||
select
|
||||
appliedPatch
|
||||
from
|
||||
org.alfresco.repo.domain.hibernate.AppliedPatchImpl as appliedPatch
|
||||
</query>
|
||||
|
||||
</hibernate-mapping>
|
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright (C) 2005 Alfresco, Inc.
|
||||
*
|
||||
* Licensed under the Mozilla Public License version 1.1
|
||||
* with a permitted attribution clause. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.alfresco.org/legal/license.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
package org.alfresco.repo.domain.hibernate;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.alfresco.repo.domain.AppliedPatch;
|
||||
|
||||
/**
|
||||
* Hibernate-specific implementation of the persistent object.
|
||||
*
|
||||
* @author Derek Hulley
|
||||
*/
|
||||
public class AppliedPatchImpl implements AppliedPatch
|
||||
{
|
||||
private String id;
|
||||
private String description;
|
||||
private String applyAfterVersion;
|
||||
private boolean succeeded;
|
||||
private String appliedOnVersion;
|
||||
private Date appliedOnDate;
|
||||
private String report;
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
if (description.length() > 1024)
|
||||
{
|
||||
// truncate as necessary
|
||||
description = (description.substring(0, 1020) + "...");
|
||||
}
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getAppliedOnVersion()
|
||||
{
|
||||
return appliedOnVersion;
|
||||
}
|
||||
public void setAppliedOnVersion(String appliedOnVersion)
|
||||
{
|
||||
this.appliedOnVersion = appliedOnVersion;
|
||||
}
|
||||
|
||||
public boolean getSucceeded()
|
||||
{
|
||||
return succeeded;
|
||||
}
|
||||
public void setSucceeded(boolean succeeded)
|
||||
{
|
||||
this.succeeded = succeeded;
|
||||
}
|
||||
|
||||
public String getApplyAfterVersion()
|
||||
{
|
||||
return applyAfterVersion;
|
||||
}
|
||||
public void setApplyAfterVersion(String applyAfterVersion)
|
||||
{
|
||||
this.applyAfterVersion = applyAfterVersion;
|
||||
}
|
||||
|
||||
public Date getAppliedOnDate()
|
||||
{
|
||||
return appliedOnDate;
|
||||
}
|
||||
public void setAppliedOnDate(Date appliedOnDate)
|
||||
{
|
||||
this.appliedOnDate = appliedOnDate;
|
||||
}
|
||||
|
||||
public String getReport()
|
||||
{
|
||||
return report;
|
||||
}
|
||||
public void setReport(String report)
|
||||
{
|
||||
if (report.length() > 1024)
|
||||
{
|
||||
// truncate as necessary
|
||||
report = (report.substring(0, 1020) + "...");
|
||||
}
|
||||
this.report = report;
|
||||
}
|
||||
}
|
@@ -32,7 +32,6 @@ import org.alfresco.repo.domain.PropertyValue;
|
||||
import org.alfresco.repo.domain.Store;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.hibernate.mapping.Bag;
|
||||
|
||||
/**
|
||||
* Bean containing all the persistence data representing a <b>node</b>.
|
||||
@@ -136,6 +135,7 @@ public class NodeImpl implements Node
|
||||
/**
|
||||
* For Hibernate use
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private void setAspects(Set<QName> aspects)
|
||||
{
|
||||
this.aspects = aspects;
|
||||
@@ -149,6 +149,7 @@ public class NodeImpl implements Node
|
||||
/**
|
||||
* For Hibernate use
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private void setSourceNodeAssocs(Collection<NodeAssoc> sourceNodeAssocs)
|
||||
{
|
||||
this.sourceNodeAssocs = sourceNodeAssocs;
|
||||
@@ -162,6 +163,7 @@ public class NodeImpl implements Node
|
||||
/**
|
||||
* For Hibernate use
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private void setTargetNodeAssocs(Collection<NodeAssoc> targetNodeAssocs)
|
||||
{
|
||||
this.targetNodeAssocs = targetNodeAssocs;
|
||||
@@ -175,6 +177,7 @@ public class NodeImpl implements Node
|
||||
/**
|
||||
* For Hibernate use
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private void setParentAssocs(Collection<ChildAssoc> parentAssocs)
|
||||
{
|
||||
this.parentAssocs = parentAssocs;
|
||||
@@ -188,6 +191,7 @@ public class NodeImpl implements Node
|
||||
/**
|
||||
* For Hibernate use
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private void setChildAssocs(Collection<ChildAssoc> childAssocs)
|
||||
{
|
||||
this.childAssocs = childAssocs;
|
||||
@@ -201,6 +205,7 @@ public class NodeImpl implements Node
|
||||
/**
|
||||
* For Hibernate use
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private void setProperties(Map<QName, PropertyValue> properties)
|
||||
{
|
||||
this.properties = properties;
|
||||
|
Reference in New Issue
Block a user