org.apache.ibatis.session.SqlSession Maven / Gradle / Ivy
package org.apache.ibatis.session;
import org.apache.ibatis.executor.result.ResultHandler;
import org.apache.ibatis.mapping.Configuration;
import java.util.List;
public interface SqlSession {
Object selectOne(String statement);
Object selectOne(String statement, Object parameter);
List selectList(String statement);
List selectList(String statement, Object parameter);
List selectList(String statement, Object parameter, int offset, int limit);
void select(String statement, Object parameter, ResultHandler handler);
void select(String statement, Object parameter, int offset, int limit, ResultHandler handler);
int insert(String statement);
int insert(String statement, Object parameter);
int update(String statement);
int update(String statement, Object parameter);
int delete(String statement);
int delete(String statement, Object parameter);
void commit();
void commit(boolean force);
void rollback();
void rollback(boolean force);
void close();
Configuration getConfiguration();
T getMapper(Class type);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy