de.jaggl.sqlbuilder.functions.Function 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.functions;
import de.jaggl.sqlbuilder.columns.Column;
import de.jaggl.sqlbuilder.domain.BuildingContext;
import de.jaggl.sqlbuilder.domain.Selectable;
import de.jaggl.sqlbuilder.utils.Indentation;
/**
* @author Martin Schumacher
*
* @since 2.0.0
*/
public interface Function extends Selectable
{
@Override
String getValue(BuildingContext context, Indentation indentation);
public static Sum sum(Column column)
{
return new Sum(column);
}
public static Min min(Column column)
{
return new Min(column);
}
public static Max max(Column column)
{
return new Max(column);
}
public static Avg avg(Column column)
{
return new Avg(column);
}
public static Count count(Column column)
{
return new Count(column);
}
public static Count count()
{
return new Count(null);
}
public static Now now()
{
return new Now();
}
}