Merged V2.0 to HEAD

5491: AWC-1154 WCM Workflows
   5507, 5511: AVMGuidPatch


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-04-25 02:02:30 +00:00
parent a41f482557
commit 766c19b128
6 changed files with 110 additions and 1 deletions

View File

@@ -172,4 +172,15 @@ class AVMNodeDAOHibernate extends HibernateDaoSupport implements
{
getSession().flush();
}
/* (non-Javadoc)
* @see org.alfresco.repo.avm.AVMNodeDAO#getEmptyGUIDS(int)
*/
@SuppressWarnings("unchecked")
public List<AVMNode> getEmptyGUIDS(int count)
{
Query query = getSession().createQuery("from AVMNodeImpl an where an.guid is null");
query.setMaxResults(count);
return (List<AVMNode>)query.list();
}
}