org.nutz.dao.util.cnd.SimpleCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
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