protected < T > ArrayList < T > loadAllByExample ( final Table < T > table , final T example ) throws PersistenceException { return execute ( new Operation < ArrayList < T > > ( ) { public ArrayList < T > invoke ( Connection conn , DatabaseLiaison liaison ) throws SQLException , PersistenceException { return table . queryByExample ( conn , example ) . toArrayList ( ) ; } } ) ; }
Loads all objects from the specified table that match the supplied example .