Got rid of the NewInAVMStore table by folding it into the AVMNode

table.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-03 22:39:35 +00:00
parent 0b58cca272
commit c03b967e71
20 changed files with 111 additions and 444 deletions

View File

@@ -186,8 +186,7 @@ public class AVMRepository
@SuppressWarnings("unused")
AVMStore rep = new AVMStoreImpl(this, name);
// Special handling for AVMStore creation.
NewInAVMStore newInRep = AVMContext.fgInstance.fNewInAVMStoreDAO.getByNode(rep.getRoot());
AVMContext.fgInstance.fNewInAVMStoreDAO.delete(newInRep);
rep.getRoot().setStoreNew(null);
}
/**
@@ -449,10 +448,10 @@ public class AVMRepository
node.setIsRoot(false);
vrDAO.delete(vr);
}
List<NewInAVMStore> newGuys = AVMContext.fgInstance.fNewInAVMStoreDAO.getByAVMStore(store);
for (NewInAVMStore newGuy : newGuys)
List<AVMNode> newGuys = AVMContext.fgInstance.fAVMNodeDAO.getNewInStore(store);
for (AVMNode newGuy : newGuys)
{
AVMContext.fgInstance.fNewInAVMStoreDAO.delete(newGuy);
newGuy.setStoreNew(null);
}
AVMContext.fgInstance.fAVMStorePropertyDAO.delete(store);
AVMContext.fgInstance.fAVMStoreDAO.delete(store);