当前位置: 首页>>代码示例>>Java>>正文


Java ErrorCallback.error方法代码示例

本文整理汇总了Java中org.jboss.errai.common.client.api.ErrorCallback.error方法的典型用法代码示例。如果您正苦于以下问题:Java ErrorCallback.error方法的具体用法?Java ErrorCallback.error怎么用?Java ErrorCallback.error使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jboss.errai.common.client.api.ErrorCallback的用法示例。


在下文中一共展示了ErrorCallback.error方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: search

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
/**
 * Search the processes.
 * 
 * @param filters
 *            the filters
 * @param page
 *            the page
 * @param sortColumnId
 *            the sort column id
 * @param sortAscending
 *            the sort ascending
 * @param handler
 *            the handler
 */
public void search(ProcessesFilterBean filters, int page, String sortColumnId, boolean sortAscending,
        final IRpcServiceInvocationHandler<ProcessesResultSetBean> handler) {
    // TODO only allow one search at a time. If another search comes in
    // before the previous
    // one is finished, cancel the previous one. In other words, only return
    // the results of
    // the *last* search performed.
    RemoteCallback<ProcessesResultSetBean> successCallback = new DelegatingRemoteCallback<ProcessesResultSetBean>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
        _remoteProcessService.call(successCallback, errorCallback).search(filters, page, sortColumnId, sortAscending);
    } catch (DtgovUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:30,代码来源:ProcessesRpcService.java

示例2: search

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
/**
 * Search.
 *
 * @param filters
 *            the filters
 * @param page
 *            the page
 * @param sortColumnId
 *            the sort column id
 * @param sortAscending
 *            the sort ascending
 * @param handler
 *            the handler
 * @see org.overlord.dtgov.ui.client.shared.services.IWorkflowQueryService#search(WorkflowQueriesFilterBean,int,String,boolean)
 */
public void search(WorkflowQueriesFilterBean filters, int page, String sortColumnId,
        boolean sortAscending, final IRpcServiceInvocationHandler<WorkflowQueryResultSetBean> handler) {
    // TODO only allow one search at a time. If another search comes in before the previous
    // one is finished, cancel the previous one. In other words, only return the results of
    // the *last* search performed.
    RemoteCallback<WorkflowQueryResultSetBean> successCallback = new DelegatingRemoteCallback<WorkflowQueryResultSetBean>(
            handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
        _remoteWorkflowQueryService.call(successCallback, errorCallback).search(filters, page,
                sortColumnId, sortAscending);
    } catch (DtgovUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:31,代码来源:WorkflowQueriesRpcService.java

示例3: getDataSourceNames

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getDataSourceNames(final boolean teiidOnly, final IRpcServiceInvocationHandler<List<String>> handler) {
    RemoteCallback<List<String>> successCallback = new DelegatingRemoteCallback<List<String>>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteQueryService.call(successCallback, errorCallback).getDataSourceNames(teiidOnly);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:QueryRpcService.java

示例4: getTablesAndProcedures

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getTablesAndProcedures(final String sourceJndiName, final String sourceName, final IRpcServiceInvocationHandler<List<QueryTableProcBean>> handler) {
    RemoteCallback<List<QueryTableProcBean>> successCallback = new DelegatingRemoteCallback<List<QueryTableProcBean>>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteQueryService.call(successCallback, errorCallback).getTablesAndProcedures(sourceJndiName,sourceName);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:QueryRpcService.java

示例5: getQueryColumnResultSet

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getQueryColumnResultSet(int page, int pageSize, String filterText, String dataSource, String fullTableName,
        final IRpcServiceInvocationHandler<QueryColumnResultSetBean> handler) {
    // TODO only allow one search at a time.  If another search comes in before the previous one
    // finished, cancel the previous one.  In other words, only return the results of the *last*
    // search performed.
    RemoteCallback<QueryColumnResultSetBean> successCallback = new DelegatingRemoteCallback<QueryColumnResultSetBean>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteQueryService.call(successCallback, errorCallback).getQueryColumnResultSet(page, pageSize, filterText, dataSource, fullTableName);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:14,代码来源:QueryRpcService.java

示例6: executeSql

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void executeSql(int page, String dataSource, String sql, final IRpcServiceInvocationHandler<QueryResultSetBean> handler) {
    // TODO only allow one search at a time.  If another search comes in before the previous one
    // finished, cancel the previous one.  In other words, only return the results of the *last*
    // search performed.
    RemoteCallback<QueryResultSetBean> successCallback = new DelegatingRemoteCallback<QueryResultSetBean>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteQueryService.call(successCallback, errorCallback).executeSql(page, dataSource, sql);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:13,代码来源:QueryRpcService.java

示例7: getColumns

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getColumns(final String dataSource, final String sql, final IRpcServiceInvocationHandler<List<QueryColumnBean>> handler) {
    RemoteCallback<List<QueryColumnBean>> successCallback = new DelegatingRemoteCallback<List<QueryColumnBean>>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteQueryService.call(successCallback, errorCallback).getColumns(dataSource,sql);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:QueryRpcService.java

示例8: deployNewVDB

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void deployNewVDB(final String vdbName, final int vdbVersion, final Map<String,String> vdbPropMap, final ViewModelRequestBean viewModelRequest, final IRpcServiceInvocationHandler<VdbDetailsBean> handler) {
    RemoteCallback<VdbDetailsBean> successCallback = new DelegatingRemoteCallback<VdbDetailsBean>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).deployNewVDB(vdbName, vdbVersion, vdbPropMap, viewModelRequest);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java

示例9: getDataSourceWithVdbDetails

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getDataSourceWithVdbDetails(String dsName, final IRpcServiceInvocationHandler<DataSourceWithVdbDetailsBean> handler) {
    RemoteCallback<DataSourceWithVdbDetailsBean> successCallback = new DelegatingRemoteCallback<DataSourceWithVdbDetailsBean>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).getDataSourceWithVdbDetails(dsName);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java

示例10: getVdbXml

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getVdbXml(String dsName, final IRpcServiceInvocationHandler<String> handler) {
    RemoteCallback<String> successCallback = new DelegatingRemoteCallback<String>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).getVdbXml(dsName);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java

示例11: deleteDynamicVdbsWithPrefix

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void deleteDynamicVdbsWithPrefix(String vdbPrefix, final IRpcServiceInvocationHandler<Void> handler) {
    RemoteCallback<Void> successCallback = new DelegatingRemoteCallback<Void>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).deleteDynamicVdbsWithPrefix(vdbPrefix);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java

示例12: getDataSourceTypeProperties

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getDataSourceTypeProperties(String dsType, final IRpcServiceInvocationHandler<List<DataSourcePropertyBean>> handler) {
    RemoteCallback<List<DataSourcePropertyBean>> successCallback = new DelegatingRemoteCallback<List<DataSourcePropertyBean>>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).getDataSourceTypeProperties(dsType);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java

示例13: getDataSources

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getDataSources(final String filter, final String srcVdbPrefix, final IRpcServiceInvocationHandler<List<DataSourcePageRow>> handler) {
    RemoteCallback<List<DataSourcePageRow>> successCallback = new DelegatingRemoteCallback<List<DataSourcePageRow>>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).getDataSources(filter,srcVdbPrefix);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java

示例14: getVdbDetails

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getVdbDetails(String vdbName, final IRpcServiceInvocationHandler<VdbDetailsBean> handler) {
    RemoteCallback<VdbDetailsBean> successCallback = new DelegatingRemoteCallback<VdbDetailsBean>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).getVdbDetails(vdbName);
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java

示例15: getDataSourceNames

import org.jboss.errai.common.client.api.ErrorCallback; //导入方法依赖的package包/类
public void getDataSourceNames(final IRpcServiceInvocationHandler<List<String>> handler) {
    RemoteCallback<List<String>> successCallback = new DelegatingRemoteCallback<List<String>>(handler);
    ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);
    try {
    	remoteTeiidService.call(successCallback, errorCallback).getDataSourceNames();
    } catch (DataVirtUiException e) {
        errorCallback.error(null, e);
    }
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:10,代码来源:TeiidRpcService.java


注:本文中的org.jboss.errai.common.client.api.ErrorCallback.error方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。