[Nodal-cvs] nodal/j-src/storage/trans TransientRepository.java,1.35,1.36
Status: Pre-Alpha
Brought to you by:
leei
From: Lee I. <le...@us...> - 2004-11-18 23:29:29
|
Update of /cvsroot/nodal/nodal/j-src/storage/trans In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14856/storage/trans Modified Files: TransientRepository.java Log Message: Add createAnchor() handling to AbstractRepository.AbstractBackend Properly handle creation of files via FileRepository Index: TransientRepository.java =================================================================== RCS file: /cvsroot/nodal/nodal/j-src/storage/trans/TransientRepository.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** TransientRepository.java 16 Nov 2004 19:25:37 -0000 1.35 --- TransientRepository.java 18 Nov 2004 23:29:18 -0000 1.36 *************** *** 15,19 **** import org.nodal.filesystem.Directory; import org.nodal.filesystem.Document; - import org.nodal.model.AnchorNode; import org.nodal.model.Node; import org.nodal.model.NodeContent; --- 15,18 ---- *************** *** 28,32 **** import storage.framework.AbstractDocument; import storage.framework.AbstractRepository; - import storage.framework.AnchorNodeImpl; import storage.framework.DocFromNode; import storage.framework.SimpleTxnManager; --- 27,30 ---- *************** *** 94,105 **** } ! public AnchorNode createAnchor(Path context, Path relative) { ! return AnchorNodeImpl.createWithContext(relative, context); ! } ! ! public AnchorNode createAnchor(Path absolute) { ! return AnchorNodeImpl.create(absolute); } ! /** * The TxnManager for a transient repository is null. --- 92,105 ---- } ! /** ! * To seat a Node in a transient repository, we simply refer to it. There is no ! * need to create AnchorNodes. ! * @param node a Node ! * @return the Node node ! */ ! public Node seatNode (Node node) { ! return node; } ! /** * The TxnManager for a transient repository is null. *************** *** 138,142 **** return null; } ! public Directory filesystem() { if (fs == null) { --- 138,142 ---- return null; } ! public Directory filesystem() { if (fs == null) { |