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

@@ -89,7 +89,7 @@ class FileContentImpl implements FileContent, Serializable
{
throw new AVMException("File data error.", ie);
}
SuperRepository.GetInstance().getSession().save(this);
AVMContext.fgInstance.fFileContentDAO.save(this);
}
/**
@@ -119,7 +119,7 @@ class FileContentImpl implements FileContent, Serializable
{
throw new AVMException("I/O Error.", ie);
}
SuperRepository.GetInstance().getSession().save(this);
AVMContext.fgInstance.fFileContentDAO.save(this);
}
/**
@@ -150,7 +150,7 @@ class FileContentImpl implements FileContent, Serializable
{
throw new AVMException("I/O failure in Copy on Write.", ie);
}
SuperRepository.GetInstance().getSession().save(this);
AVMContext.fgInstance.fFileContentDAO.save(this);
}
/**