List of usage examples for org.apache.ibatis.executor Executor update
int update(MappedStatement ms, Object parameter) throws SQLException;
From source file:com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.java
License:Apache License
public int update(final String id, final Object parameterObject) throws SQLException { return (Integer) transactionManager.doInTransaction(new TransactionScope() { public Object execute(Transaction transaction) throws SQLException { transaction.setCommitRequired(true); MappedStatement ms = configuration.getMappedStatement(id); Executor executor = transaction.getExecutor(); return executor.update(ms, wrapCollection(parameterObject)); }//from w w w. ja v a 2 s.co m }); }