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

org.nutz.dao.util.cnd.SimpleCondition Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.dao.util.cnd;

import org.nutz.dao.Condition;
import org.nutz.dao.entity.Entity;

/**
 * 简单的包裹一下 SQL 字符串
 * 
 * @author zozoh([email protected])
 */
public class SimpleCondition implements Condition {

	private String content;

	public SimpleCondition(Object obj) {
		this.content = obj.toString();
	}

	public SimpleCondition(String format, Object... args) {
		this.content = String.format(format, args);
	}

	public String toSql(Entity entity) {
		return content;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy