org.apache.ibatis.jdbc
Class SqlRunner
java.lang.Object
org.apache.ibatis.jdbc.SqlRunner
public class SqlRunner
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_GENERATED_KEY
public static final int NO_GENERATED_KEY
- See Also:
- Constant Field Values
SqlRunner
public SqlRunner(Connection connection)
setUseGeneratedKeySupport
public void setUseGeneratedKeySupport(boolean useGeneratedKeySupport)
selectOne
public Map<String,Object> selectOne(String sql,
Object... args)
throws SQLException
- Throws:
SQLException
selectAll
public List<Map<String,Object>> selectAll(String sql,
Object... args)
throws SQLException
- Throws:
SQLException
insert
public int insert(String sql,
Object... args)
throws SQLException
- Throws:
SQLException
update
public int update(String sql,
Object... args)
throws SQLException
- Throws:
SQLException
delete
public int delete(String sql,
Object... args)
throws SQLException
- Throws:
SQLException
run
public void run(String sql)
throws SQLException
- Throws:
SQLException
closeConnection
public void closeConnection()
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.