com.jpattern.orm.query.clause.from.RightOuterJoinElement Maven / Gradle / Ivy
package com.jpattern.orm.query.clause.from;
import com.jpattern.orm.mapper.IOrmClassToolMap;
/**
*
* @author Francesco Cina
*
* 27/giu/2011
*/
public class RightOuterJoinElement extends AFromElement {
/**
*
*/
private final String onLeftProperty;
private final String onRigthProperty;
private boolean onClause = true;
public RightOuterJoinElement(final IOrmClassToolMap ormClassToolMap, final Class> joinClass, final Integer nameSolverClassId) {
this(ormClassToolMap, joinClass, nameSolverClassId, "", "");
this.onClause = false;
}
public RightOuterJoinElement(final IOrmClassToolMap ormClassToolMap, final Class> joinClass, final Integer nameSolverClassId, final String onLeftProperty, final String onRigthProperty) {
super(ormClassToolMap, joinClass, nameSolverClassId);
this.onLeftProperty = onLeftProperty;
this.onRigthProperty = onRigthProperty;
}
@Override
protected String getJoinName() {
return "RIGHT OUTER JOIN ";
}
@Override
protected boolean hasOnClause() {
return this.onClause ;
}
@Override
protected String onLeftProperty() {
return this.onLeftProperty;
}
@Override
protected String onRightProperty() {
return this.onRigthProperty;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy