@ SuppressWarnings ( "unchecked" ) public List < T > run ( final Object ... iArgs ) { final ODatabaseRecord database = ODatabaseRecordThreadLocal . INSTANCE . get ( ) ; if ( database == null ) throw new OQueryParsingException ( "No database configured" ) ; setParameters ( iArgs ) ; return ( List < T > ) database . getStorage ( ) . command ( this ) ; }
Delegates to the OQueryExecutor the query execution .