Interim checkin. Attributes basically work.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5510 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-18 23:25:53 +00:00
parent e2329988bd
commit bdae23b768
43 changed files with 1891 additions and 658 deletions

View File

@@ -27,6 +27,8 @@ package org.alfresco.repo.attributes;
import java.io.Serializable;
import org.alfresco.repo.avm.AVMDAOs;
/**
* Persistent implemantation of a Serializable attribute.
* @author britt
@@ -38,9 +40,20 @@ public class SerializableAttributeImpl extends AttributeImpl implements
private Serializable fValue;
public SerializableAttributeImpl()
{
}
public SerializableAttributeImpl(Serializable value)
{
fValue = value;
AVMDAOs.Instance().fAttributeDAO.save(this);
}
public SerializableAttributeImpl(SerializableAttribute attr)
{
fValue = attr.getSerializableValue();
AVMDAOs.Instance().fAttributeDAO.save(this);
}
/* (non-Javadoc)