Refactored persistence for AVM. I'm guessing because I dropped a number of

unnecessary flushes seems about 20% snappier.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-07-11 09:32:13 +00:00
parent a58a3c4f53
commit d0b5b14af1
46 changed files with 2172 additions and 506 deletions

View File

@@ -49,7 +49,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
{
super(repos.getSuperRepository().issueID(), repos);
fContent = new FileContentImpl(SuperRepository.GetInstance().issueContentID());
repos.getSuperRepository().getSession().save(this);
AVMContext.fgInstance.fAVMNodeDAO.save(this);
}
/**
@@ -61,7 +61,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
{
super(repos.getSuperRepository().issueID(), repos);
fContent = new FileContentImpl(SuperRepository.GetInstance().issueContentID(), content);
repos.getSuperRepository().getSession().save(this);
AVMContext.fgInstance.fAVMNodeDAO.save(this);
}
/**
@@ -75,7 +75,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
super(repos.getSuperRepository().issueID(), repos);
fContent = other.getContent();
fContent.setRefCount(fContent.getRefCount() + 1);
repos.getSuperRepository().getSession().save(this);
AVMContext.fgInstance.fAVMNodeDAO.save(this);
}
/**
@@ -90,7 +90,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
super(repos.getSuperRepository().issueID(), repos);
fContent = content;
fContent.setRefCount(fContent.getRefCount() + 1);
repos.getSuperRepository().getSession().save(this);
AVMContext.fgInstance.fAVMNodeDAO.save(this);
}
/**