@Override
    public synchronized Collection<T> readAll() throws Exception {
        Cursor cursor = db.query(transformer.getTableName(), transformer.getFields(), null, null, null, null, null);
        Collection<T> list = getAllCursor(cursor);
        return list;
    }
@ Override public synchronized Collection < T > readAll ( ) throws Exception { Cursor cursor = db . query ( transformer . getTableName ( ) , transformer . getFields ( ) , null , null , null , null , null ) ; Collection < T > list = getAllCursor ( cursor ) ; return list ; }
Convenience method for reading all rows in the table of database.

@return Collection objects
@throws Exception on error