1. package com.example.aninbatis.sqlsource;
    2. /**
    3. * 解析#{}获取到的参数信息,主要包含参数名称(也就是#{}中的名称和参数类型)
    4. */
    5. public class ParameterMapping {
    6. private String name;
    7. private Class<?> type;
    8. public String getName() {
    9. return name;
    10. }
    11. public void setName(String name) {
    12. this.name = name;
    13. }
    14. public Class<?> getType() {
    15. return type;
    16. }
    17. public void setType(Class<?> type) {
    18. this.type = type;
    19. }
    20. public ParameterMapping(String name) {
    21. super();
    22. this.name = name;
    23. }
    24. }