de.jaggl.sqlbuilder.functions.Sum 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 lombok.ToString;
/**
* @author Martin Schumacher
*
* @since 2.0.0
*/
@ToString(callSuper = true)
public class Sum extends NumberColumnFunction
{
public Sum(Column column)
{
super(column, "SUM");
}
public Sum(Column column, String alias)
{
super(column, "SUM", alias);
}
public Sum as(String alias)
{
return new Sum(column, alias);
}
@Override
public int getSqlType()
{
return column.getSqlType();
}
}