public void lookupDataSet ( final DataSetDef def , final DataSetLookup request , final DataSetReadyCallback listener ) throws Exception { if ( dataSetLookupServices != null ) { try { dataSetLookupServices . call ( new RemoteCallback < DataSet > ( ) { public void callback ( DataSet result ) { if ( result == null ) { listener . notFound ( ) ; } else { listener . callback ( result ) ; } } } , new ErrorCallback < Message > ( ) { @ Override public boolean error ( Message message , Throwable throwable ) { return listener . onError ( new ClientRuntimeError ( throwable ) ) ; } } ) . lookupDataSet ( def , request ) ; } catch ( Exception e ) { listener . onError ( new ClientRuntimeError ( e ) ) ; } } // Data set not found on client. else { listener . notFound ( ) ; } }
Process the specified data set lookup request for a given definition .