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