db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "sqlAuth4Dblook" by Hiranya Jayathilaka
Date Sat, 23 May 2009 13:36:11 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by Hiranya Jayathilaka:
http://wiki.apache.org/db-derby/sqlAuth4Dblook

------------------------------------------------------------------------------
  
  == Dependency Graph Construction Algorithm ==
  
- for each  persistent object O in the database
+  1. for each  persistent object O in the database
- do:
+  2. do:
-    V <-- find vertex for O from graph
+  3.     V <-- find vertex for O from graph
-    if (V == null)
+  4.     if (V == null)
-       V <-- create new vertex for O
+  5.        V <-- create new vertex for O
-       Add V to the graph
+  6.        Add V to the graph
-    end if
+  7.     end if
-    S <-- find set of providers for O
+  8.     S <-- find set of providers for O
-    for each persistent object T in S
+  9.     for each persistent object T in S
-    do:
+  10.    do:
-      W <-- find vertex for T from graph
+  11.       W <-- find vertex for T from graph
-      if (W == null)
+  12.       if (W == null)
-        W <-- create new vertex for T
+  13.         W <-- create new vertex for T
-        Add W to the graph
+  14.         Add W to the graph
-      end if
+  15.       end if
-      Create edge from W to V
+  16.       Create edge from W to V
-    end
- end  
+  17.    end
+  18. end  
+ 
  
  == Role Dependency Graph Construction Algorithm ==
  TBD

Mime
View raw message