Example usage for org.apache.commons.collections.collection CompositeCollection addComposited

List of usage examples for org.apache.commons.collections.collection CompositeCollection addComposited

Introduction

In this page you can find the example usage for org.apache.commons.collections.collection CompositeCollection addComposited.

Prototype

public void addComposited(Collection c) 

Source Link

Document

Add an additional collection to this composite.

Usage

From source file:org.objectstyle.cayenne.map.EntityResolver.java

public Collection getProcedures() {
    CompositeCollection c = new CompositeCollection();
    Iterator it = getDataMaps().iterator();
    while (it.hasNext()) {
        DataMap map = (DataMap) it.next();
        c.addComposited(map.getProcedures());
    }//from  w  ww  . j  a v a 2s . c o  m

    return c;
}

From source file:org.objectstyle.cayenne.map.EntityResolver.java

public Collection getQueries() {
    CompositeCollection c = new CompositeCollection();
    Iterator it = getDataMaps().iterator();
    while (it.hasNext()) {
        DataMap map = (DataMap) it.next();
        c.addComposited(map.getQueries());
    }/*from   w w  w. j a v a2 s.  co  m*/

    return c;
}