org.hsqldb
Class FunctionSQL
- java.lang.Object
-
- org.hsqldb.Expression
-
- org.hsqldb.FunctionSQL
-
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- FunctionCustom
public class FunctionSQL extends Expression
Implementation of SQL standard function calls- Since:
- 1.9.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Stringdescribe(Session session, int blanks)Returns a String representation of this object.booleanequals(Expression other)ExpressiongetFunctionExpression()java.lang.StringgetSQL()For use with CHECK constraints.java.lang.ObjectgetValue(Session session)Evaluates and returns this Function in the context of the session.inthashCode()booleanisDeterministic()booleanisValueFunction()static FunctionSQLnewSQLFunction(java.lang.String token, ParserDQL.CompileContext context)voidresolveTypes(Session session, Expression parent)voidsetArguments(Expression[] newNodes)-
Methods inherited from class org.hsqldb.Expression
checkValidCheckConstraint, duplicate, equals, getAggregatedValue, getColumn, getCondition, getConstantValueNoCheck, getResult, getRowValue, getSubqueries, getTable, getType, getUnkeyedColumns, hasCondition, isCorrelated, isFalse, isIndexable, isTrue, materialise, resolveCheckOrGenExpression, resolveColumnReferences, resolveColumnReferences, setCollation, setCondition, testCondition, updateAggregatingValue
-
-
-
-
Method Detail
-
newSQLFunction
public static FunctionSQL newSQLFunction(java.lang.String token, ParserDQL.CompileContext context)
-
setArguments
public void setArguments(Expression[] newNodes)
-
getFunctionExpression
public Expression getFunctionExpression()
-
getValue
public java.lang.Object getValue(Session session)
Evaluates and returns this Function in the context of the session.- Overrides:
getValuein classExpression
-
resolveTypes
public void resolveTypes(Session session, Expression parent)
- Overrides:
resolveTypesin 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
-
equals
public boolean equals(Expression other)
- Overrides:
equalsin classExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
describe
public java.lang.String describe(Session session, int blanks)
Returns a String representation of this object.
-
isDeterministic
public boolean isDeterministic()
-
isValueFunction
public boolean isValueFunction()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG