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

club.chlab.mybatis.conditions.JoinEntity Maven / Gradle / Ivy

package club.chlab.mybatis.conditions;

import club.chlab.mybatis.enums.JOIN_TYPE;

/**
 * Sql Join Entity
 * @author jch
 *
 * @param 
 */
public class JoinEntity {
	private JOIN_TYPE jointype;
	private E entity;
	private JoinField[] fields;
	
	/**
	 * JoinEntity constructor
	 * @param entity join table entity
	 * @param jointype join type,eg: left join right join....
	 * @param fields join fields
	 */
	public JoinEntity(E entity,JOIN_TYPE jointype,JoinField...fields){
		this.setJointype(jointype);
		this.setEntity(entity);
		this.setFields(fields);
	}


	public E getEntity() {
		return entity;
	}


	public void setEntity(E entity) {
		this.entity = entity;
	}


	public JOIN_TYPE getJointype() {
		return jointype;
	}


	public void setJointype(JOIN_TYPE jointype) {
		this.jointype = jointype;
	}


	public JoinField[] getFields() {
		return fields;
	}


	public void setFields(JoinField[] fields) {
		this.fields = fields;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy