Documentation of 'org.hsqldb.Expression' Java class
Expression
org.hsqldb

Class Expression

    • Method Detail

      • getSQL

        public java.lang.String getSQL()
        For 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.
      • equals

        public boolean equals(Expression other)
      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getType

        public int getType()
        Returns the type of expression
      • resolveColumnReferences

        public HsqlList resolveColumnReferences(Session session,
                                                RangeGroup rangeGroup,
                                                RangeGroup[] rangeGroups,
                                                HsqlList unresolvedSet)
        resolve tables and collect unresolved column expressions
      • getTable

        public Table getTable()
      • materialise

        public void materialise(Session session)
      • getConstantValueNoCheck

        public java.lang.Object getConstantValueNoCheck(Session session)
      • getRowValue

        public java.lang.Object[] getRowValue(Session session)
      • getValue

        public java.lang.Object getValue(Session session)
      • testCondition

        public boolean testCondition(Session session)
      • isTrue

        public boolean isTrue()
      • isFalse

        public boolean isFalse()
      • resolveCheckOrGenExpression

        public void resolveCheckOrGenExpression(Session session,
                                                RangeGroup rangeGroup,
                                                boolean isCheck)
      • isCorrelated

        public boolean isCorrelated()
        isCorrelated
      • checkValidCheckConstraint

        public void checkValidCheckConstraint()
        checkValidCheckConstraint
      • updateAggregatingValue

        public java.lang.Object updateAggregatingValue(Session session,
                                                       java.lang.Object currValue)
      • getAggregatedValue

        public java.lang.Object getAggregatedValue(Session session,
                                                   java.lang.Object currValue)
      • hasCondition

        public boolean hasCondition()
      • setCondition

        public void setCondition(Expression e)
      • setCollation

        public void setCollation(Collation collation)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.