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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user