Top Description Fields Constructors Methods
org.hsqldb

public final Class ExpressionLike

extends ExpressionLogical
Class Inheritance
Imports
org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.List, org.hsqldb.types.BinaryData, .Type, .Types

Implementation of LIKE operations
Authors
Campbell Burnet (campbell-burnet@users dot sourceforge.net), Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.7.3

Field Summary

Modifier and TypeField and Description
private static final int
private Like
Inherited from org.hsqldb.ExpressionLogical:
isQuantifiedisTerminal

Constructor Summary

AccessConstructor and Description
pack-priv
ExpressionLike(Expression left, Expression right, Expression escape)

Creates a LIKE expression

private

Method Summary

Modifier and TypeMethod and Description
protected String
public Expression
public String
getSQL()

Overrides org.hsqldb.ExpressionLogical.getSQL.

For use with CHECK constraints.

public Object
public List<Expression>
resolveColumnReferences(Session session, RangeGroup rangeGroup, int rangeCount, RangeGroup[] rangeGroups, List<Expression> unresolvedSet, boolean acceptsSequences)

Overrides org.hsqldb.Expression.resolveColumnReferences.

public void
Inherited from org.hsqldb.ExpressionLogical:
addLeftColumnsForAllAnyandExpressionscheckRowComparisonconvertToSmallercostFactorcostFactorColumnscostFactorUnaryColumndistributeOrgetIndexableExpressiongetJoinRangeVariablesisConditionRangeVariableisIndexableisSimpleBoundnewNotNullConditionorExpressionsreorderComparisonresolveTypesForAllAnyresolveTypesForOverlapssetEqualityModesetNoOptimisationsetSubTypeswapCondition

Field Detail

ESCAPEback to summary
private static final int ESCAPE
likeObjectback to summary
private Like likeObject

Constructor Detail

ExpressionLikeback to summary
pack-priv ExpressionLike(Expression left, Expression right, Expression escape)

Creates a LIKE expression

ExpressionLikeback to summary
private ExpressionLike(ExpressionLike other)

Method Detail

describeback to summary
protected String describe(Session session, int blanks)

Overrides org.hsqldb.ExpressionLogical.describe.

duplicateback to summary
public Expression duplicate()

Overrides org.hsqldb.Expression.duplicate.

getSQLback to summary
public String getSQL()

Overrides org.hsqldb.ExpressionLogical.getSQL.

Doc from org.hsqldb.Expression.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.

getValueback to summary
public Object getValue(Session session)

Overrides org.hsqldb.ExpressionLogical.getValue.

resolveColumnReferencesback to summary
public List<Expression> resolveColumnReferences(Session session, RangeGroup rangeGroup, int rangeCount, RangeGroup[] rangeGroups, List<Expression> unresolvedSet, boolean acceptsSequences)

Overrides org.hsqldb.Expression.resolveColumnReferences.

resolveTypesback to summary
public void resolveTypes(Session session, Expression parent)

Overrides org.hsqldb.ExpressionLogical.resolveTypes.