de.jaggl.sqlbuilder.domain.Placeholder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlbuilder-core Show documentation
Show all versions of sqlbuilder-core Show documentation
A Java-Library to build SQL-Statements
package de.jaggl.sqlbuilder.domain;
import de.jaggl.sqlbuilder.columns.Column;
public class Placeholder extends PlainValuable
{
private Placeholder(String value)
{
super(new Plain(value));
}
public static Placeholder placeholder(Column column)
{
return new Placeholder(":" + column.getName());
}
public static Placeholder placeholder()
{
return new Placeholder("?");
}
public static Placeholder placeholder(String name)
{
return new Placeholder(":" + name);
}
}