public class SqlSession
extends java.lang.Object
Constructor and Description |
---|
SqlSession(java.sql.Connection conn) |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getConnection() |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
boolean cache) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys,
boolean cache) |
void |
release()
Releases any resources managed by this session.
|
public java.sql.Connection getConnection()
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public void release() throws java.sql.SQLException
java.sql.SQLException