63: delete from ojds$inode$ where refcount = 0 and node = c;
64: -- if child was deleted also delete its entries in $permissions
65: if sql%rowcount > 0 then -- true if the node was deleted in $inode
66: delete from ojds$permissions$ where node = c;
67: delete from ojds$attributes$ where node = c;
68: delete from ojds$refaddr$ where node = c;
69: end if;
70: exception
71: when others then -- catches the case of deleting an unknown binding
85: notEmpty := TRUE;
86: -- delete the inode, permission, and attributes
87: delete from ojds$inode$ where node = unrefNodes_rec.node;
88: delete from ojds$permissions$ where node = unrefNodes_rec.node;
89: delete from ojds$attributes$ where node = unrefNodes_rec.node;
90: delete from ojds$refaddr$ where node = unrefNodes_rec.node;
91: -- delete child bindings and children's refcount
92: update ojds$inode$ set refcount = refcount - 1 where
93: node in (select i.node from ojds$inode$ i, ojds$bindings$ b
112: delete from ojds$bindings$ where child = c;
113: -- delete the inode, permission, and attributes
114: delete from ojds$inode$ where node = c;
115: delete from ojds$permissions$ where node = c;
116: delete from ojds$attributes$ where node = c;
117: delete from ojds$refaddr$ where node = c;
118: return 0;
119: end;
120:
136: delete from ojds$inode$ where refcount = 0 and node = c;
137: -- if child was deleted also delete its entries in $permissions
138: if sql%rowcount > 0 then -- true if the node was deleted in $inode
139: delete from ojds$permissions$ where node = c;
140: delete from ojds$attributes$ where node = c;
141: delete from ojds$refaddr$ where node = c;
142: end if;
143: exception
144: when others then -- catches the case of deleting an unknown binding
190: procedure drop_inode_node (inode_number NUMBER) is
191: begin
192: delete from ojds$inode$ where node = inode_number;
193: delete from ojds$permissions$ where node = inode_number;
194: delete from ojds$attributes$ where node = inode_number;
195: delete from ojds$refaddr$ where node = inode_number;
196: -- delete inward pointers.
197: delete from ojds$bindings$ where child = inode_number;
198: end;