protected List < T > readSources ( ) throws EFapsException { final List < T > ret = new ArrayList <> ( ) ; final QueryBuilder queryBldr = new QueryBuilder ( getClassName4Type ( ) ) ; final MultiPrintQuery multi = queryBldr . getPrint ( ) ; multi . addAttribute ( CIAdminProgram . Abstract . Name ) ; multi . executeWithoutAccessCheck ( ) ; while ( multi . next ( ) ) { final String name = multi . < String > getAttribute ( CIAdminProgram . StaticCompiled . Name ) ; ret . add ( getNewSource ( name , multi . getCurrentInstance ( ) ) ) ; } return ret ; }
This method reads all Sources from the eFapsDataBase and returns for each Source a Instance of AbstractSource in a List .