Package io.github.torand.fastersql.alias
Class ColumnAlias
java.lang.Object
io.github.torand.fastersql.alias.ColumnAlias
- All Implemented Interfaces:
Alias,OrderExpression,LeftOperand,Sql
Represents an alias (label) for a projection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the column aliases referenced by this fragment.static ColumnAliasFactory method to create a random column alias using specified prefix.name()Gets the alias name.Gets the statement parameters introduced by this fragment.Formats object as an SQL fragment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.torand.fastersql.predicate.LeftOperand
between, between, eq, eq, eq, eq, ge, ge, ge, ge, gt, gt, gt, gt, in, in, in, in, isNotNull, isNull, le, le, le, le, like, like, lt, lt, lt, lt, ne, ne, ne, ne, notBetween, notBetween, notIn, notIn, notIn, notLikeMethods inherited from interface io.github.torand.fastersql.order.OrderExpression
asc, ascIf, descMethods inherited from interface io.github.torand.fastersql.sql.Sql
columnRefs
-
Constructor Details
-
ColumnAlias
Creates a column alias with specified name.- Parameters:
name- the alias name.
-
-
Method Details
-
generate
Factory method to create a random column alias using specified prefix.- Parameters:
prefix- the prefix.- Returns:
- the column alias.
-
name
Description copied from interface:AliasGets the alias name. -
sql
Description copied from interface:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
aliasRefs
Description copied from interface:SqlGets the column aliases referenced by this fragment. For validation purposes.
-