public Collection getAllObjects(Class target)
    {
        PersistenceBroker broker = getBroker();
        Collection result;
        try
        {
            Query q = new QueryByCriteria(target);
            result = broker.getCollectionByQuery(q);
        }
        finally
        {
            if (broker != null) broker.close();
        }
        return result;
    }
public Collection getAllObjects ( Class target ) { PersistenceBroker broker = getBroker ( ) ; Collection result ; try { Query q = new QueryByCriteria ( target ) ; result = broker . getCollectionByQuery ( q ) ; } finally { if ( broker != null ) broker . close ( ) ; } return result ; }
Return all objects for the given class.