All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wesleyhome.dao.processor.model.QueryParameterInfo Maven / Gradle / Ivy

/*
 * @(#)QueryParameterInfo.java
 * 
 * (C) Copyright 2014 by Travelers
 * All Rights Reserved.
 * 
 * This software is the confidential and proprietary information
 * of the Travelers Corporation. ("Confidential Information").
 * Redistribution of the source code or binary form is not permitted
 * without prior authorization from Travelers.
 */
package com.wesleyhome.dao.processor.model;

import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.VariableElement;
import com.wesleyhome.dao.annotations.QueryParameterType;

/**
 * The QueryParameterInfo class is a
 * 
 * @author
 * @since
 */
public class QueryParameterInfo {

	public final QueryParameterType queryParameterType;
	public final boolean generate;
	public final String fieldName;
	public final String fieldTypeClassName;
	public final VariableElement fieldElement;
	public final MappingType mappingType;
	public final AnnotationMirror queryParameterAnnotation;
	public final AnnotationValue queryParameterTypeValue;

	/**
	 * @param queryParameterType
	 * @param generate
	 * @param fieldName
	 * @param fieldTypeClassName
	 * @param fieldElement
	 * @param queryParameterAnnotation
	 * @param queryParameterTypeValue
	 */
	public QueryParameterInfo(final QueryParameterType queryParameterType, final boolean generate, final String fieldName,
		final String fieldTypeClassName, final VariableElement fieldElement, final AnnotationMirror queryParameterAnnotation,
		final AnnotationValue queryParameterTypeValue, final MappingType mappingType) {
		super();
		this.queryParameterType = queryParameterType;
		this.generate = generate;
		this.fieldName = fieldName;
		this.fieldTypeClassName = fieldTypeClassName;
		this.fieldElement = fieldElement;
		this.queryParameterAnnotation = queryParameterAnnotation;
		this.queryParameterTypeValue = queryParameterTypeValue;
		this.mappingType = mappingType;
	}

	@Override
	public String toString() {
		return "QueryParameterInfo [queryParameterType=" + queryParameterType + ", generate=" + generate + ", fieldName=" + fieldName
			+ ", fieldTypeClassName=" + fieldTypeClassName + ", fieldElement=" + fieldElement + ", mappingType=" + mappingType
			+ ", queryParameterAnnotation=" + queryParameterAnnotation + ", queryParameterTypeValue=" + queryParameterTypeValue + "]";
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy