com.bixuebihui.db.SqlString Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of c-dbtools Show documentation
Show all versions of c-dbtools Show documentation
a fast small database connection pool and a active record flavor mini framework
package com.bixuebihui.db;
/**
* 这个用于产生原生sql,
* 使用场景类似于 update table1 set a = a+1 中的a+1,
* 避免被预编译语句占位符替换
*
* @author xingwx
* @version $Id: $Id
*/
public class SqlString {
private String content;
/**
* Constructor for SqlString.
*
* @param content a {@link java.lang.String} object.
*/
public SqlString(String content){
this.content = content;
}
/**
* Getter for the field content
.
*
* @return a {@link java.lang.String} object.
*/
public String getContent() {
return content;
}
/**
* Setter for the field content
.
*
* @param content a {@link java.lang.String} object.
*/
public void setContent(String content) {
this.content = content;
}
/**
* toString.
*
* @return a {@link java.lang.String} object.
*/
@Override
public String toString() {
return content;
}
}