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.Gets the columns referenced by this fragment.static ColumnAlias
Factory 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, wait
Methods inherited from interface io.github.torand.fastersql.predicate.LeftOperand
eq, eq, eq, eq, ge, ge, ge, ge, gt, gt, gt, gt, in, in, in, in, isNull, le, le, le, le, like, like, lt, lt, lt, lt
Methods inherited from interface io.github.torand.fastersql.order.OrderExpression
asc, ascIf, desc
-
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:Alias
Gets the alias name. -
sql
Description copied from interface:Sql
Formats object as an SQL fragment. -
params
Description copied from interface:Sql
Gets the statement parameters introduced by this fragment. -
columnRefs
Description copied from interface:Sql
Gets the columns referenced by this fragment. For validation purposes.- Specified by:
columnRefs
in interfaceSql
- Returns:
- the columns referenced by this fragment.
-
aliasRefs
Description copied from interface:Sql
Gets the column aliases referenced by this fragment. For validation purposes.
-