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

com.jaregu.database.queries.compiling.expr.OutputVariableImpl Maven / Gradle / Ivy

Go to download

Java based SQL templating project. Store your queries in *.sql files and build queries for execution. Supports simple expressions and conditional clauses and interface proxying for java-sql bridge.

There is a newer version: 1.4.1
Show newest version
package com.jaregu.database.queries.compiling.expr;

public final class OutputVariableImpl extends OperandBaseImpl implements OutputVariable {

	final private String name;

	public OutputVariableImpl(String name) {
		this.name = name;
	}

	@Override
	public Object assign(Operand object) {
		Object value = object.getValue();
		EvaluationContext.getCurrent().setOutputVariable(name, value);
		return value;
	}

	@Override
	public String toString() {
		return "Output{" + name + "}";
	}

	@Override
	public String getName() {
		return name;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy