package com.lagou.pojo;
public class MappedStatement {
//id标识
private String id;
//返回值类型
private String resultType;
//参数值类型
private String paramterType;
//sql语句
private String sql;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getResultType() {
return resultType;
}
public void setResultType(String resultType) {
this.resultType = resultType;
}
public String getParamterType() {
return paramterType;
}
public void setParamterType(String paramterType) {
this.paramterType = paramterType;
}
public String getSql() {
return sql;
}
public void setSql(String sql) {
this.sql = sql;
}
}
pojo.MappedStatement类示例代码
最新推荐文章于 2025-12-11 22:46:37 发布
MappedStatement是Java中MyBatis框架的核心组件之一,它用于封装SQL语句及其相关元数据。该类包含了id(唯一标识)、resultType(返回值类型)、paramterType(参数值类型)和sql(SQL语句)等属性,用于构建动态SQL并执行数据库操作。理解MappedStatement对于优化MyBatis的使用和提升数据库交互效率至关重要。
8662

被折叠的 条评论
为什么被折叠?



