com.solarmetric.rd.kodo.impl.jdbc.query.exp
Class ContainsExpression
java.lang.Object
|
+--com.solarmetric.rd.kodo.impl.jdbc.query.exp.CompareEqualExpression
|
+--com.solarmetric.rd.kodo.impl.jdbc.query.exp.EqualExpression
|
+--com.solarmetric.rd.kodo.impl.jdbc.query.exp.ContainsExpression
- All Implemented Interfaces:
- Expression, JDBCExpression
- Direct Known Subclasses:
- ContainsKeyExpression
- public class ContainsExpression
- extends EqualExpression
Tests whether one value contains another.
|
Constructor Summary |
ContainsExpression(com.solarmetric.rd.kodo.impl.jdbc.query.exp.JDBCValue val1,
com.solarmetric.rd.kodo.impl.jdbc.query.exp.JDBCValue val2)
Constructor. |
|
Method Summary |
protected boolean |
compareValueToNull()
Subclasses can override this method if, when they compare to null,
they compare the field value rather than the entire field to null. |
void |
initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Select select,
java.util.Map containsCounts)
Initialize the expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainsExpression
public ContainsExpression(com.solarmetric.rd.kodo.impl.jdbc.query.exp.JDBCValue val1,
com.solarmetric.rd.kodo.impl.jdbc.query.exp.JDBCValue val2)
- Constructor. Supply values to test.
initialize
public void initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
com.solarmetric.rd.kodo.impl.jdbc.runtime.Select select,
java.util.Map containsCounts)
- Description copied from interface:
JDBCExpression
- Initialize the expression. This method should recursively
initialize any sub-expressions or values. It should also cache
the
Joins instance containing the joins for this
expression.
- Specified by:
initialize in interface JDBCExpression- Overrides:
initialize in class CompareEqualExpression
- Parameters:
pm - the persistence manager for this queryselect - manage joins made in each query clausecontainsCounts - map of relation paths to the number of times
the paths appear in a contains() expression;
used to ensure paths used for contains() within
the same AND expression used different aliases
compareValueToNull
protected boolean compareValueToNull()
- Description copied from class:
CompareEqualExpression
- Subclasses can override this method if, when they compare to null,
they compare the field value rather than the entire field to null.
For example, field.contains (null) should compare the field value
to null, not the field itself.
- Overrides:
compareValueToNull in class CompareEqualExpression
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.