SQLExpression
classin packageklyn.data.sql.internal
public final class SQLExpression:
SQLExpression

Immutable node in the structured provider-local SQL expression tree.

The node cannot contain arbitrary SQL. name is used only for validated column identifiers and every application value is stored as a parameter.

column = SQLExpression(SQLExpressionKind.COLUMN, "login", null)
Properties
Modifier and Type Member Description
public readonly property arguments
arguments as ArrayList<SQLExpression>
Immutable-by-convention child expression copy.
public readonly property kind Closed SQL operation represented by this node.
public readonly property name
name as String
Validated column name when kind is COLUMN.
public readonly property value
value as Object
Bound parameter or collection value for parameter operations.
Constructors
Modifier and Type Member Description
public SQLExpression
SQLExpression( kind as SQLExpressionKind, name as String = "", value as Object = null, arguments... as SQLExpression ):
Creates one immutable SQL expression.
public SQLExpression
SQLExpression( kind as SQLExpressionKind, name as String, value as Object, arguments as IList<SQLExpression> ):
Creates one immutable SQL expression from an existing child list.
Methods
Modifier and Type Member Description
public render
render(context as SQLRenderContext) as String:
Renders this node and appends its parameters to the supplied context.