public Object insert(String id) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.insert(id); }
@SuppressWarnings("rawtypes") public List queryForList(String id, Object parameterObject, int skip, int max) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.queryForList(id, parameterObject, skip, max); }
public int executeBatch() throws SQLException { IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.executeBatch(); }
public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException { executor.startBatch(); for (Object item : entities) { executor.insert(statementName, item); } return executor.executeBatch(); } });
public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException { executor.startBatch(); for (Object parameterObject : entities) { executor.delete(statementName, parameterObject); } return executor.executeBatch(); } });
public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException { executor.startBatch(); for (Object parameterObject : entities) { executor.update(statementName, parameterObject); } return executor.executeBatch(); } });
SqlMapClientCallback<Integer> callback = new SqlMapClientCallback<Integer>() { public Integer doInSqlMapClient(SqlMapExecutor executor) throws SQLException { executor.startBatch(); //... do your queries here return executor.executeBatch(); } };
public Object queryForObject(String id, Object parameterObject, Object resultObject) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.queryForObject(id, parameterObject, resultObject); }
@SuppressWarnings("rawtypes") public Map queryForMap(String id, Object parameterObject, String keyProp) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.queryForMap(id, parameterObject, keyProp); }
public void queryWithRowHandler(String id, RowHandler rowHandler) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); executor.queryWithRowHandler(id, rowHandler); }
public int delete(String id) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.delete(id); }
public int update(String id, Object parameterObject) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.update(id, parameterObject); }
public void startBatch() throws SQLException { IbatisUtils.setClientImpl(executor, clientImplWrapper); executor.startBatch(); }
public PaginatedList queryForPaginatedList(String id, Object parameterObject, int pageSize) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.queryForPaginatedList(id, parameterObject, pageSize); }
public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException { executor.startBatch(); for (PrefLogDO record : reports) { if (record != null) { executor.insert("PREF_LOG.insert", record); } } executor.executeBatch(); return ""; } });
public Object queryForObject(String id) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.queryForObject(id); }
@SuppressWarnings("rawtypes") public Map queryForMap(String id, Object parameterObject, String keyProp, String valueProp) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.queryForMap(id, parameterObject, keyProp, valueProp); }
public void queryWithRowHandler(String id, Object parameterObject, RowHandler rowHandler) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); executor.queryWithRowHandler(id, parameterObject, rowHandler); }
public int delete(String id, Object parameterObject) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.delete(id, parameterObject); }
public int update(String id) throws SQLException { clientImplWrapper.setLocal(id, executor); IbatisUtils.setClientImpl(executor, clientImplWrapper); return executor.update(id); }