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

io.pelle.mango.client.base.vo.query.expressions.StringExpression Maven / Gradle / Ivy

The newest version!
package io.pelle.mango.client.base.vo.query.expressions;

import io.pelle.mango.client.base.vo.query.IAliasProvider;
import io.pelle.mango.client.base.vo.query.IExpression;

import java.io.Serializable;

@SuppressWarnings("serial")
public class StringExpression implements IExpression, Serializable {

	private String value;

	public StringExpression() {
	}

	public StringExpression(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return value;
	}

	public void appendToValue(String append) {
		value += append;
	}

	@Override
	public String getJPQL(IAliasProvider aliasProvider) {
		return (value != null) ?  "'" + value + "'" : null;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy