zoukankan      html  css  js  c++  java
  • 存放字段属性信息

    package com.opslab.util.bean;

    import java.lang.reflect.Method;

    /**
    * 存放字段属性信息
    */
    public class BeanStruct {

    //字段的名字
    private String fieldName;
    //字段的类型
    private Object fieldType;
    //字段值读方法
    private Method readMethod;
    //字段值写方法
    private Method writeMethod;
    private boolean isDeclared;

    public BeanStruct(String fieldName, Object fieldType, Method readMethod, Method writeMethod, boolean isDeclared) {
    this.fieldName = fieldName;
    this.fieldType = fieldType;
    this.readMethod = readMethod;
    this.writeMethod = writeMethod;
    }

    public boolean isDeclared() {
    return isDeclared;
    }

    public void setDeclared(boolean isDeclared) {
    this.isDeclared = isDeclared;
    }

    public String getFieldName() {
    return fieldName;
    }

    public void setFieldName(String fieldName) {
    this.fieldName = fieldName;
    }

    public Object getFieldType() {
    return fieldType;
    }

    public void setFieldType(Object fieldType) {
    this.fieldType = fieldType;
    }

    public Method getReadMethod() {
    return readMethod;
    }

    public void setReadMethod(Method readMethod) {
    this.readMethod = readMethod;
    }

    public Method getWriteMethod() {
    return writeMethod;
    }

    public void setWriteMethod(Method writeMethod) {
    this.writeMethod = writeMethod;
    }
    }

  • 相关阅读:
    框架比较
    框架整理
    bootstrap-table中get请求携带的参数
    0514任务思路
    两台电脑对码云上面的项目进行迭代
    项目问题
    vue 中发送axios请求,解决跨域问题(没有config文件)
    正则表达式(未完待续)
    【转载】深入理解Linux文件系统
    浅谈IO优化
  • 原文地址:https://www.cnblogs.com/chinaifae/p/10254674.html
Copyright © 2011-2022 走看看