Class SelectColumnFactory
java.lang.Object
com.illumon.iris.db.tables.select.SelectColumnFactory
A factory to create
SelectColumn
s from an input expression. There are two types of supported expressions
- By Existing column - Simply the name of an existing column in the table
- ResultColumn = <Expression> - Where the expression may simply identify a column from the source, or be something more sophisticated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectColumn
getExpression
(String expression) Create aSelectColumn
based on the expression.static SelectColumn[]
getExpressions
(String... expressions) Convert all the supplied expressions intoSelectColumn
s.static SelectColumn[]
getExpressions
(Collection<String> expressions) Convert all the supplied expressions intoSelectColumn
s.static String
getFormatBaseColumn
(SelectColumn selectColumn) Returns the base column-name used to create a formatting column viagetFormatExpression(String)
methodstatic SelectColumn
getFormatExpression
(String expression) static DhFormulaColumn[]
getFormatExpressions
(String... expressions) static SelectColumn
ofAlwaysUpdate
(String expression) Create aSelectColumn
that will always be updated during an update cycle, regardless of the engine's determined set of modified columns.
-
Constructor Details
-
SelectColumnFactory
public SelectColumnFactory()
-
-
Method Details
-
ofAlwaysUpdate
Create aSelectColumn
that will always be updated during an update cycle, regardless of the engine's determined set of modified columns.- Parameters:
expression
- the expression to convert.- Returns:
- a new
SelectColumn
based upon the expression.
-
getExpression
Create aSelectColumn
based on the expression.- Parameters:
expression
- the expression to convert.- Returns:
- a new
SelectColumn
based upon the expression.
-
getExpressions
Convert all the supplied expressions intoSelectColumn
s.- Parameters:
expressions
- an array of expressions to convert.- Returns:
- an array of
SelectColumn
s, one for each expression.
-
getExpressions
Convert all the supplied expressions intoSelectColumn
s.- Parameters:
expressions
- a collection of expressions to convert.- Returns:
- an array of
SelectColumn
s, one for each expression.
-
getFormatExpression
-
getFormatExpressions
-
getFormatBaseColumn
Returns the base column-name used to create a formatting column viagetFormatExpression(String)
method- Parameters:
selectColumn
- aSelectColumn
returned from thegetFormatExpression(String)
method- Returns:
- the baseColumn used to define the provided selectColumn
-