src/main/java/org/efaps/ui/wicket/models/objects/UITable.java
@SuppressWarnings("unchecked")
    protected List<Instance> getInstanceList()
        throws EFapsException
    {
        // get the filters that must be applied against the database
        final IFilterList filterList = new FilterList();
        final Iterator<Entry<String, TableFilter>> iter = this.filters.entrySet().iterator();
        this.filterTempCache.clear();
        while (iter.hasNext()) {
            final Entry<String, TableFilter> entry = iter.next();
            if (entry.getValue().getUiTableHeader() == null
                           || entry.getValue().getUiTableHeader() != null
                           && entry.getValue().getUiTableHeader().getFilter().getBase().equals(FilterBase.DATABASE)) {
                filterList.add(entry.getValue().getFilter());
            }
            this.filterTempCache.put(entry.getKey(), entry.getValue());
            iter.remove();
        }

        final List<Return> ret = getCommand().executeEvents(EventType.UI_TABLE_EVALUATE,
                        ParameterValues.INSTANCE, getInstance(),
                        ParameterValues.PARAMETERS, Context.getThreadContext().getParameters(),
                        ParameterValues.CLASS, this,
                        ParameterValues.OTHERS, filterList);
        List<Instance> lists = null;
        if (ret.size() < 1) {
            throw new EFapsException(UITable.class, "getInstanceList");
        } else {
            lists = (List<Instance>) ret.get(0).get(ReturnValues.VALUES);
        }
        return lists;
    }
@SuppressWarnings("unchecked")
    protected List<Instance> getInstanceList()
        throws EFapsException
    {
        // get the filters that must be applied against the database
        final IFilterList filterList = new FilterList();
        final Iterator<Entry<String, TableFilter>> iter = this.filters.entrySet().iterator();
        this.filterTempCache.clear();
        while (iter.hasNext()) {
            final Entry<String, TableFilter> entry = iter.next();
            if (entry.getValue().getUiTableHeader() == null
                           || entry.getValue().getUiTableHeader() != null
                           && entry.getValue().getUiTableHeader().getFilter().getBase().equals(FilterBase.DATABASE)) {
                filterList.add(entry.getValue().getFilter());
            }
            this.filterTempCache.put(entry.getKey(), entry.getValue());
            iter.remove();
        }

        final List<Return> ret = getCommand().executeEvents(EventType.UI_TABLE_EVALUATE,
                        ParameterValues.INSTANCE, getInstance(),
                        ParameterValues.PARAMETERS, Context.getThreadContext().getParameters(),
                        ParameterValues.CLASS, this,
                        ParameterValues.OTHERS, filterList);
        List<Instance> lists = null;
        if (ret.size() < 1) {
            throw new EFapsException(UITable.class, "getInstanceList");
        } else {
            lists = (List<Instance>) ret.get(0).get(ReturnValues.VALUES);
        }
        return lists;
    }
@ SuppressWarnings ( "unchecked" ) protected List < Instance > getInstanceList ( ) throws EFapsException { // get the filters that must be applied against the database final IFilterList filterList = new FilterList ( ) ; final Iterator < Entry < String , TableFilter > > iter = this . filters . entrySet ( ) . iterator ( ) ; this . filterTempCache . clear ( ) ; while ( iter . hasNext ( ) ) { final Entry < String , TableFilter > entry = iter . next ( ) ; if ( entry . getValue ( ) . getUiTableHeader ( ) == null || entry . getValue ( ) . getUiTableHeader ( ) != null && entry . getValue ( ) . getUiTableHeader ( ) . getFilter ( ) . getBase ( ) . equals ( FilterBase . DATABASE ) ) { filterList . add ( entry . getValue ( ) . getFilter ( ) ) ; } this . filterTempCache . put ( entry . getKey ( ) , entry . getValue ( ) ) ; iter . remove ( ) ; } final List < Return > ret = getCommand ( ) . executeEvents ( EventType . UI_TABLE_EVALUATE , ParameterValues . INSTANCE , getInstance ( ) , ParameterValues . PARAMETERS , Context . getThreadContext ( ) . getParameters ( ) , ParameterValues . CLASS , this , ParameterValues . OTHERS , filterList ) ; List < Instance > lists = null ; if ( ret . size ( ) < 1 ) { throw new EFapsException ( UITable . class , "getInstanceList" ) ; } else { lists = ( List < Instance > ) ret . get ( 0 ) . get ( ReturnValues . VALUES ) ; } return lists ; }
Method to get the list of instance.

@return List of instances
@throws EFapsException on error
Method to get the list of instance .