This method reads all Sources from the eFapsDataBase and returns for each
Source a Instance of AbstractSource in a List.

@return List with AbstractSources
@throws EFapsException on error
7119
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;
    }
942028
def sources(self):
        """"""

        def set_bundle(s):
            s._bundle = self
            return s
        return list(set_bundle(s) for s in self.dataset.sources)
1223551
@Override
    public String[] getresourceAdapters() {
        final String methodName = "getresourceAdapters";
        final boolean trace = TraceComponent.isAnyTracingEnabled();
        if (trace && tc.isEntryEnabled())
            Tr.entry(tc, methodName, this);

        final Collection<ResourceAdapterMBeanImpl> c = raMBeanChildrenList.values();
        final int size = c.size();
        final String[] result = new String[size];
        int index = 0;
        for (ResourceAdapterMBeanImpl mbeanItem : c)
            result[index++] = mbeanItem.getobjectName();

        if (trace && tc.isEntryEnabled())
            Tr.exit(tc, methodName, this);

        return result;
    }
322703
public ArrayList<ProgressSource> getProgressSources()    {
        ArrayList<ProgressSource> snapshot = new ArrayList<ProgressSource>();

        try {
            synchronized(progressSourceList)    {
                for (Iterator<ProgressSource> iter = progressSourceList.iterator(); iter.hasNext();)    {
                    ProgressSource pi = iter.next();

                    // Clone ProgressSource and add to snapshot
                    snapshot.add((ProgressSource)pi.clone());
                }
            }
        }
        catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }

        return snapshot;
    }
937008
public ResourceList getAllResources() {
        if (allWhitelistedResourcesCached == null) {
            // Index Resource objects by path
            final ResourceList whitelistedResourcesList = new ResourceList();
            for (final ClasspathElement classpathElt : classpathOrder) {
                if (classpathElt.whitelistedResources != null) {
                    whitelistedResourcesList.addAll(classpathElt.whitelistedResources);
                }
            }
            // Set atomically for thread safety
            allWhitelistedResourcesCached = whitelistedResourcesList;
        }
        return allWhitelistedResourcesCached;
    }
549049
@Override
    public Object get(final Attribute _attribute,
                      final Object _object)
        throws EFapsException
    {
        Object ret = null;
        if (_object != null && _attribute.getAttributeType().getDbAttrType() instanceof IFormattableType) {
            final IFormattableType attrType = (IFormattableType) _attribute.getAttributeType().getDbAttrType();
            if (_object instanceof List<?>) {
                final List<?> objectList = (List<?>) _object;
                final List<Object> temp = new ArrayList<>();
                for (final Object object : objectList) {
                    temp.add(attrType.format(object, this.pattern));
                }
                ret = temp;
            } else {
                ret = attrType.format(_object, this.pattern);
            }
        }
        return ret;
    }
678800
@SuppressWarnings("unchecked")
    public Collection<EsaResource> getAllFeatures() throws RepositoryBackendException {
        return (Collection<EsaResource>) getAllResources(ResourceType.FEATURE);
    }
518544
public ConnectionResource getConnectionResource()
        throws EFapsException
    {
        try {
            if (this.connectionResource == null) {
                this.connectionResource = new ConnectionResource(Context.DATASOURCE.getConnection());
            }
        } catch (final SQLException e) {
            throw new EFapsException(getClass(), "getConnectionResource.SQLException", e);
        }
        return this.connectionResource;
    }
984426
public java.util.List<DataSource> getDataSources() {
        if (dataSources == null) {
            dataSources = new com.amazonaws.internal.SdkInternalList<DataSource>();
        }
        return dataSources;
    }
797685
public List<CmsResource> getAllResources() {

        List<CmsResource> result = Lists.newArrayList();
        result.add(m_primaryResource);
        for (CmsResource res : getSecondaryResources()) {
            result.add(res);
        }
        return result;
    }
938686
public static ISearch getSearch()
        throws EFapsException
    {
        ISearch ret = null;
        if (EFapsSystemConfiguration.get().containsAttributeValue(KernelSettings.INDEXSEARCHCLASS)) {
            final String clazzname = EFapsSystemConfiguration.get().getAttributeValue(
                            KernelSettings.INDEXSEARCHCLASS);
            try {
                final Class<?> clazz = Class.forName(clazzname, false, EFapsClassLoader.getInstance());
                ret = (ISearch) clazz.newInstance();
            } catch (final ClassNotFoundException | InstantiationException | IllegalAccessException e) {
                throw new EFapsException(Index.class, "Could not instanciate IDirectoryProvider", e);
            }
        } else {
            ret = new ISearch()
            {
                /** The Constant serialVersionUID. */
                private static final long serialVersionUID = 1L;

                /** The query. */
                private String query;

                @Override
                public void setQuery(final String _query)
                {
                    this.query = _query;
                }

                @Override
                public String getQuery()
                {
                    return this.query;
                }
            };
        }
        return ret;
    }
263973
def get_all_sources(self):
        """"""
        result = []
        for batch in self.batches:
            result.extend(batch.sources)
        return result
226252
def get_sources(self, kind='all'):
        
        assert kind in ('all', 'indep', 'mutex'), kind
        sources = []
        for sm in self.source_models:
            for src_group in sm.src_groups:
                if kind in ('all', src_group.src_interdep):
                    for src in src_group:
                        if sm.samples > 1:
                            src.samples = sm.samples
                        sources.append(src)
        return sources
341958
@Override
    public InputStream read()
        throws EFapsException
    {
        StoreResourceInputStream in = null;
        ConnectionResource res = null;
        try {
            res = Context.getThreadContext().getConnectionResource();

            final Statement stmt = res.createStatement();
            final StringBuffer cmd = new StringBuffer()
                .append("select ").append(JDBCStoreResource.COLNAME_FILECONTENT).append(" ")
                .append("from ").append(JDBCStoreResource.TABLENAME_STORE).append(" ")
                .append("where ID =").append(getGeneralID());
            final ResultSet resultSet = stmt.executeQuery(cmd.toString());
            if (resultSet.next()) {
                if (Context.getDbType().supportsBinaryInputStream())  {
                    in = new JDBCStoreResourceInputStream(this,
                                                          res,
                                                          resultSet.getBinaryStream(1));
                } else  {
                    in = new JDBCStoreResourceInputStream(this,
                                                          res,
                                                          resultSet.getBlob(1));
                }
            }
            resultSet.close();
            stmt.close();
        } catch (final IOException e) {
            JDBCStoreResource.LOG.error("read of content failed", e);
            throw new EFapsException(JDBCStoreResource.class, "read.SQLException", e);
        } catch (final SQLException e) {
            JDBCStoreResource.LOG.error("read of content failed", e);
            throw new EFapsException(JDBCStoreResource.class, "read.SQLException", e);
        }
        return in;
    }
994833
public boolean next()
        throws EFapsException
    {
        initialize(false);
        boolean stepForward = true;
        boolean ret = true;
        while (stepForward && ret) {
            ret = step(this.selection.getAllSelects());
            stepForward = !this.access.hasAccess(inst());
        }
        return ret;
    }
767173
public Collection<? extends RepositoryResource> getAllResourcesWithDupes() throws RepositoryBackendException {
        Collection<RepositoryResource> resources = cycleThroughRepositoriesWithDupes(new RepositoryInvoker<RepositoryResource>() {
            @SuppressWarnings("unchecked")
            @Override
            public Collection<RepositoryResource> performActionOnRepository(RepositoryConnection connection) throws RepositoryBackendException {
                return (Collection<RepositoryResource>) connection.getAllResourcesWithDupes();
            }
        });
        return resources;
    }
1287468
public List<String> dumpAllOpenedResources() {
        List<String> dumps = new ArrayList<String>();
        for (LeakDetectorConnection connection : openConnections) {
            dumps.add(connection.dumpCreationContext(""));
            for (LeakDetectorSession session : connection.getOpenSessions()) {
                dumps.add(session.dumpCreationContext("   "));
                for (LeakDetectorMessageProducer producer : session.getOpenMessageProducers()) {
                    dumps.add(producer.dumpCreationContext("      "));
                }
                for (LeakDetectorMessageConsumer consumer : session.getOpenMessageConsumers()) {
                    dumps.add(consumer.dumpCreationContext("      "));
                }
            }
        }
        return dumps;
    }