AVM DAO refactor

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2009-09-08 09:55:22 +00:00
parent bae58d6ee7
commit c2cca0311b
113 changed files with 9654 additions and 3923 deletions

View File

@@ -39,11 +39,11 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
* The type of node that this is a deleted node for.
*/
private int fDeletedType;
/**
* For Hibernate's use.
* Default constructor.
*/
protected DeletedNodeImpl()
public DeletedNodeImpl()
{
}
@@ -61,12 +61,16 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
AVMStore store, Long parentAcl, ACLCopyMode mode)
{
super(store);
setDeletedType(other.getDeletedType());
copyACLs(other, parentAcl, mode);
copyCreationAndOwnerBasicAttributes(other);
AVMDAOs.Instance().fAVMNodeDAO.save(this);
AVMDAOs.Instance().fAVMNodeDAO.flush();
copyProperties(other);
copyAspects(other);
copyACLs(other, parentAcl, mode);
copyCreationAndOwnerBasicAttributes(other);
}
/**
@@ -138,7 +142,7 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
-1,
false,
-1,
fDeletedType);
getDeletedType());
}
/**
@@ -168,7 +172,7 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
-1,
false,
-1,
fDeletedType);
getDeletedType());
}
/**
@@ -200,7 +204,7 @@ public class DeletedNodeImpl extends AVMNodeImpl implements DeletedNode
-1,
false,
-1,
fDeletedType);
getDeletedType());
}
/**