org.hsqldb
Class ExpressionColumn
- java.lang.Object
-
- org.hsqldb.Expression
-
- org.hsqldb.ExpressionColumn
-
- All Implemented Interfaces:
- java.lang.Cloneable
public class ExpressionColumn extends Expression
Implementation of column, variable, parameter, etc. access operations.- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field and Description static HashMappedListdiagnosticsListstatic ExpressionColumn[]emptyArraystatic intidx_morestatic intidx_numberstatic intidx_row_count
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Expressionduplicate()booleanequals(Expression other)SIMPLE_COLUMN expressions can be of different Java typesColumnSchemagetColumn()bytegetNullability()java.lang.StringgetSQL()For use with CHECK constraints.OrderedHashSetgetUnkeyedColumns(OrderedHashSet unresolvedSet)java.lang.ObjectgetValue(Session session)booleanisIndexable(RangeVariable range)booleanisUnresolvedParam()HsqlListresolveColumnReferences(Session session, RangeGroup rangeGroup, int rangeCount, RangeGroup[] rangeGroups, HsqlList unresolvedSet, boolean acceptsSequences)voidresolveTypes(Session session, Expression parent)-
Methods inherited from class org.hsqldb.Expression
checkValidCheckConstraint, equals, getAggregatedValue, getCondition, getConstantValueNoCheck, getResult, getRowValue, getSubqueries, getTable, getType, hasCondition, hashCode, isCorrelated, isFalse, isTrue, materialise, resolveCheckOrGenExpression, resolveColumnReferences, setCollation, setCondition, testCondition, updateAggregatingValue
-
-
-
-
Field Detail
-
emptyArray
public static final ExpressionColumn[] emptyArray
-
diagnosticsList
public static final HashMappedList diagnosticsList
-
idx_number
public static final int idx_number
- See Also:
- Constant Field Values
-
idx_more
public static final int idx_more
- See Also:
- Constant Field Values
-
idx_row_count
public static final int idx_row_count
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNullability
public byte getNullability()
-
getColumn
public ColumnSchema getColumn()
- Overrides:
getColumnin classExpression
-
resolveColumnReferences
public HsqlList resolveColumnReferences(Session session, RangeGroup rangeGroup, int rangeCount, RangeGroup[] rangeGroups, HsqlList unresolvedSet, boolean acceptsSequences)
- Overrides:
resolveColumnReferencesin classExpression
-
resolveTypes
public void resolveTypes(Session session, Expression parent)
- Overrides:
resolveTypesin classExpression
-
getValue
public java.lang.Object getValue(Session session)
- Overrides:
getValuein classExpression
-
getSQL
public java.lang.String getSQL()
Description copied from class:ExpressionFor use with CHECK constraints. Under development. Currently supports a subset of expressions and is suitable for CHECK search conditions that refer only to the inserted/updated row. For full DDL reporting of VIEW select queries and CHECK search conditions, future improvements here are dependent upon improvements to SELECT query parsing, so that it is performed in a number of passes. An early pass should result in the query turned into an Expression tree that contains the information in the original SQL without any alterations, and with tables and columns all resolved. This Expression can then be preserved for future use. Table and column names that are not user-defined aliases should be kept as the HsqlName structures so that table or column renaming is reflected in the precompiled query.- Overrides:
getSQLin classExpression
-
getUnkeyedColumns
public OrderedHashSet getUnkeyedColumns(OrderedHashSet unresolvedSet)
- Overrides:
getUnkeyedColumnsin classExpression
-
equals
public boolean equals(Expression other)
SIMPLE_COLUMN expressions can be of different Java types- Overrides:
equalsin classExpression
-
isIndexable
public boolean isIndexable(RangeVariable range)
- Overrides:
isIndexablein classExpression
-
isUnresolvedParam
public boolean isUnresolvedParam()
-
duplicate
public Expression duplicate()
- Overrides:
duplicatein classExpression
-
-
DataMelt 3.0 © DataMelt by jWork.ORG