- All Superinterfaces:
ExpressionSpec,ProtoExpressionSpec,Resolvable
- All Known Implementing Classes:
ProtoNestableBasicExprSpec,ProtoNestableTOExpr
public sealed interface ProtoNestableExpressionSpec
extends ProtoExpressionSpec
permits ProtoNestableBasicExprSpec, ProtoNestableTOExpr<T>
A proto-expression capable of nesting other proto-expressions.
This interface is a specialised extension of ProtoExpressionSpec and encapsulates specifications
for expressions that can be nested within other expressions.
-
Method Summary
Methods inherited from interface org.litebridgedb.orm.expression.ProtoExpressionSpec
alias, argsMethods inherited from interface org.litebridgedb.orm.expression.Resolvable
type
-
Method Details
-
target
ExpressionSpec target()The nested target expression.Target expressions are typically a column name to select via
SelectColumnSpecorSelectFieldSpec, but are not limited to these.- Returns:
- the nested target expression.
-
column
Retrieves the column name associated with the target expression.The default implementation handles various types of target expressions and returns the appropriate column name.
- Specified by:
columnin interfaceResolvable- Returns:
- the column name retrieved from the target expression.
- Throws:
IllegalArgumentException- if the target expression is of an invalid type.
-