Top Description Constructors Methods
org.hibernate.hql.ast.tree

public abstract Class AbstractNullnessCheckNode

extends UnaryLogicOperatorNode
Class Inheritance
Known Direct Subclasses
org.hibernate.hql.ast.tree.IsNotNullLogicOperatorNode, org.hibernate.hql.ast.tree.IsNullLogicOperatorNode
Imports
antlr.collections.AST, org.hibernate.type.Type, org.hibernate.engine.SessionFactoryImplementor, org.hibernate.hql.antlr.HqlSqlTokenTypes, org.hibernate.util.StringHelper, org.hibernate.HibernateException

Base class for nodes dealing 'is null' and 'is not null' operators.

todo : a good deal of this is copied from BinaryLogicOperatorNode; look at consolidating these code fragments

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Type
private static String[]
extractMutationTexts(Node operand, int count)

protected abstract String

Returns:

The expansion connector text.
getExpansionConnectorText
()

When (if) we need to expand a row value constructor, what is the text of the connector to use between the expansion fragments.

protected abstract int

Returns:

The expansion connector type.
getExpansionConnectorType
()

When (if) we need to expand a row value constructor, what is the type of connector to use between the expansion fragments.

public void
initialize()

Overrides org.hibernate.hql.ast.tree.UnaryLogicOperatorNode.initialize.

Implements org.hibernate.hql.ast.tree.OperatorNode.initialize.

Called by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.
private void
mutateRowValueConstructorSyntax(int operandColumnSpan)

Inherited from org.hibernate.hql.ast.tree.UnaryLogicOperatorNode:
getDataTypegetOperand

Constructor Detail

AbstractNullnessCheckNodeback to summary
public AbstractNullnessCheckNode()

Method Detail

extractDataTypeback to summary
private static Type extractDataType(Node operand)
extractMutationTextsback to summary
private static String[] extractMutationTexts(Node operand, int count)
getExpansionConnectorTextback to summary
protected abstract String getExpansionConnectorText()

When (if) we need to expand a row value constructor, what is the text of the connector to use between the expansion fragments.

Returns:String

The expansion connector text.

getExpansionConnectorTypeback to summary
protected abstract int getExpansionConnectorType()

When (if) we need to expand a row value constructor, what is the type of connector to use between the expansion fragments.

Returns:int

The expansion connector type.

initializeback to summary
public void initialize()

Overrides org.hibernate.hql.ast.tree.UnaryLogicOperatorNode.initialize.

Implements org.hibernate.hql.ast.tree.OperatorNode.initialize.

Doc from org.hibernate.hql.ast.tree.OperatorNode.initialize.

Called by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.

mutateRowValueConstructorSyntaxback to summary
private void mutateRowValueConstructorSyntax(int operandColumnSpan)