org.fisco.bcos.web3j.precompile.crud.CRUDService Java Examples
The following examples show how to use
org.fisco.bcos.web3j.precompile.crud.CRUDService.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PermissionManageService.java From WeBASE-Front with Apache License 2.0 | 5 votes |
/** * manage userTableManager related * * @throws Exception */ public Object grantUserTableManager(int groupId, String signUserId, String tableName, String userAddress) throws Exception { // CRUD.desc to check table exists CRUDService crudService = new CRUDService(web3ApiService.getWeb3j(groupId), keyStoreService.getCredentialsForQuery()); crudService.desc(tableName); String res = precompiledWithSignService.grant(groupId, signUserId, tableName, userAddress); return res; }
Example #2
Source File: PrecompiledService.java From WeBASE-Front with Apache License 2.0 | 5 votes |
/** * desc */ public Table desc(int groupId, String tableName) throws Exception { CRUDService crudService = new CRUDService(web3ApiService.getWeb3j(groupId), keyStoreService.getCredentialsForQuery()); Table descRes = crudService.desc(tableName); return descRes; }
Example #3
Source File: PrecompiledService.java From WeBASE-Front with Apache License 2.0 | 5 votes |
/** * select */ public List<Map<String, String>> select(int groupId, Table table, Condition conditions) throws Exception { CRUDService crudService = new CRUDService(web3ApiService.getWeb3j(groupId), keyStoreService.getCredentialsForQuery()); List<Map<String, String>> selectRes = crudService.select(table, conditions); return selectRes; }
Example #4
Source File: CRUDTable.java From WeEvent with Apache License 2.0 | 5 votes |
public CRUDTable(Web3j web3j, Credentials credentials, String tableName) throws BrokerException { this.groupId = String.valueOf(((JsonRpc2_0Web3j) web3j).getGroupId()); this.crud = new CRUDService(web3j, credentials); this.tableName = tableName; log.info("table's groupId: {}", this.groupId); ensureTable(); }
Example #5
Source File: PermissionService.java From web3sdk with Apache License 2.0 | 4 votes |
public String grantUserTableManager(String tableName, String grantress) throws Exception { CRUDService crudSerivce = new CRUDService(web3j, credentials); crudSerivce.desc(tableName); return grant(tableName, grantress); }