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

com.beetl.sql.rewrite.ColRewriteParam Maven / Gradle / Ivy

package com.beetl.sql.rewrite;

import lombok.Data;

@Data
public class ColRewriteParam {
	private String col;
	private ColValueProvider colValueProvider;
	private boolean equalsFlag = true;
	public ColRewriteParam(String col,ColValueProvider colValueProvider) {
		this.col = col;
		this.colValueProvider = colValueProvider;
	}

	public ColRewriteParam(String col,long value) {
		this.col = col;
		this.colValueProvider = new ColValueProvider() {
			@Override
			public Object getCurrentValue() {
				return value;
			}
		};
	}

	public ColRewriteParam(String col,ColValueProvider colValueProvider,boolean equals) {
		this.col = col;
		this.colValueProvider = colValueProvider;
		this.equalsFlag = equals;
	}



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy