Example usage for org.apache.ibatis.executor Executor update

List of usage examples for org.apache.ibatis.executor Executor update

Introduction

In this page you can find the example usage for org.apache.ibatis.executor Executor update.

Prototype

int update(MappedStatement ms, Object parameter) throws SQLException;

Source Link

Usage

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
    });
}