![JAR search and dependency download from the Maven repository](/logo.png)
org.ibatis.persist.impl.expression.DelegatedExpressionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbatis Show documentation
Show all versions of jbatis Show documentation
The jBATIS persistence framework will help you to significantly reduce the amount of Java code that you normally need to access a relational database. iBATIS simply maps JavaBeans to SQL statements using a very simple XML descriptor.
The newest version!
package org.ibatis.persist.impl.expression;
import java.util.List;
import org.ibatis.persist.criteria.Selection;
import com.ibatis.sqlmap.engine.type.TypeHandler;
/**
* Implementation of {@link org.ibatis.persist.criteria.Expression} wraps another Expression and delegates most of its
* functionality to that wrapped Expression
*/
public abstract class DelegatedExpressionImpl extends ExpressionImpl {
private final ExpressionImpl wrapped;
public DelegatedExpressionImpl(ExpressionImpl wrapped) {
super( wrapped.criteriaBuilder(), wrapped.getJavaType() );
this.wrapped = wrapped;
}
public ExpressionImpl getWrapped() {
return wrapped;
}
// delegations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Override
public Selection alias(String alias) {
wrapped.alias( alias );
return this;
}
@Override
public boolean isCompoundSelection() {
return wrapped.isCompoundSelection();
}
@Override
public List> getValueHandlers() {
return wrapped.getValueHandlers();
}
@Override
public List> getCompoundSelectionItems() {
return wrapped.getCompoundSelectionItems();
}
@Override
public Class getJavaType() {
return wrapped.getJavaType();
}
@Override
@SuppressWarnings("unchecked")
public void setJavaType(Class targetType) {
wrapped.setJavaType( targetType );
}
@Override
protected void forceConversion(TypeHandler tValueHandler) {
wrapped.forceConversion( tValueHandler );
}
@Override
public TypeHandler getValueHandler() {
return wrapped.getValueHandler();
}
@Override
public String getAlias() {
return wrapped.getAlias();
}
@Override
protected void setAlias(String alias) {
wrapped.setAlias( alias );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy