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

org.ibatis.persist.impl.expression.NullLiteralExpression Maven / Gradle / Ivy

Go to download

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 org.ibatis.persist.impl.CriteriaBuilderImpl;
import org.ibatis.persist.impl.RenderingContext;

/**
 * Represents a NULLliteral expression.
 */
public class NullLiteralExpression extends ExpressionImpl {
	public NullLiteralExpression(CriteriaBuilderImpl criteriaBuilder, Class type) {
		super( criteriaBuilder, type );
	}

    public void render(RenderingContext rc) {
        rc.append("null");
    }

    public void renderProjection(RenderingContext rc) {
        render(rc);
        if (getAlias() != null) {
            rc.append(" AS ").append(getAlias());
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy