Class SubSelect<T>
java.lang.Object
org.tentackle.dbms.dsl.SubSelect<T>
- Type Parameters:
T- the java type of the single column returned by the sub-select
- All Implemented Interfaces:
Expression<T>, SqlElement
A sub-select used as a scalar expression.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColumnCount(Backend backend) Gets the number of database columns this expression spans.Gets the datatype of this expression.Gets the sub-select.voidrender(RenderContext context, int columnIndex) Renders a single column of this expression.
-
Constructor Details
-
SubSelect
-
-
Method Details
-
getSelect
-
getDataType
Description copied from interface:ExpressionGets the datatype of this expression.- Specified by:
getDataTypein interfaceExpression<T>- Returns:
- the datatype, null if untyped
-
getColumnCount
Description copied from interface:ExpressionGets the number of database columns this expression spans.- Specified by:
getColumnCountin interfaceExpression<T>- Parameters:
backend- the backend- Returns:
- the number of columns, always >= 1
-
render
Description copied from interface:ExpressionRenders a single column of this expression.- Specified by:
renderin interfaceExpression<T>- Parameters:
context- the render contextcolumnIndex- the column index, 0 for the first column
-