snaker-core/src/main/java/org/snaker/engine/access/jdbc/BeanPropertyHandler.java
protected void initialize(Class<T> mappedClass) {
		this.mappedClass = mappedClass;
		this.mappedFields = new HashMap<String, PropertyDescriptor>();
		PropertyDescriptor[] pds = null;
		try {
			/**
			 * 返回bean的属性描述对象数组
			 */
			pds = propertyDescriptors(mappedClass);
		} catch (SQLException e) {
			throw new SnakerException(e.getMessage(), e.getCause());
		}
		for (PropertyDescriptor pd : pds) {
			if (pd.getWriteMethod() != null) {
				this.mappedFields.put(pd.getName().toLowerCase(), pd);
				String underscoredName = underscoreName(pd.getName());
				if (!pd.getName().toLowerCase().equals(underscoredName)) {
					this.mappedFields.put(underscoredName, pd);
				}
			}
		}
	}
protected void initialize(Class<T> mappedClass) {
		this.mappedClass = mappedClass;
		this.mappedFields = new HashMap<String, PropertyDescriptor>();
		PropertyDescriptor[] pds = null;
		try {
			/**
			 * 返回bean的属性描述对象数组
			 */
			pds = propertyDescriptors(mappedClass);
		} catch (SQLException e) {
			throw new SnakerException(e.getMessage(), e.getCause());
		}
		for (PropertyDescriptor pd : pds) {
			if (pd.getWriteMethod() != null) {
				this.mappedFields.put(pd.getName().toLowerCase(), pd);
				String underscoredName = underscoreName(pd.getName());
				if (!pd.getName().toLowerCase().equals(underscoredName)) {
					this.mappedFields.put(underscoredName, pd);
				}
			}
		}
	}
protected void initialize ( Class < T > mappedClass ) { this . mappedClass = mappedClass ; this . mappedFields = new HashMap < String , PropertyDescriptor > ( ) ; PropertyDescriptor [ ] pds = null ; try { /**
			 * 返回bean的属性描述对象数组
			 */ pds = propertyDescriptors ( mappedClass ) ; } catch ( SQLException e ) { throw new SnakerException ( e . getMessage ( ) , e . getCause ( ) ) ; } for ( PropertyDescriptor pd : pds ) { if ( pd . getWriteMethod ( ) != null ) { this . mappedFields . put ( pd . getName ( ) . toLowerCase ( ) , pd ) ; String underscoredName = underscoreName ( pd . getName ( ) ) ; if ( ! pd . getName ( ) . toLowerCase ( ) . equals ( underscoredName ) ) { this . mappedFields . put ( underscoredName , pd ) ; } } } }
根据bean对象的class初始化字段映射集合
@param mappedClass
根据bean对象的class初始化字段映射集合