Beispiel #1
0
 /**
  * ** Returns an array of root DBFactoryTree nodes based on the specified top-level DBFactory.
  * ** @param initialFactory The root DBFactory which is traversed to create the DBFactoryTree. If
  * null ** all root DBFactories will be traversed. ** @return An array of rot DBFactoryTree nodes.
  * If the 'initialFactory' is null, the returned ** DBFactoryTree array will have at most 1
  * element.
  */
 @SuppressWarnings("unchecked")
 public static DBFactoryTree[] getDBFactoryTree(DBFactory<? extends DBRecord> initialFactory) {
   if (initialFactory != null) {
     return DBFactoryTree.getDBFactoryTree(
         new DBFactory[] {initialFactory}); // "unchecked conversion"
   } else {
     return DBFactoryTree.getDBFactoryTree((DBFactory<? extends DBRecord>[]) null);
   }
 }