Top Description Fields Constructors Methods
org.eclipse.persistence.internal.expressions

public Class LogicalExpression

extends CompoundExpression
Class Inheritance
Imports
java.util.List, .Set, org.eclipse.persistence.exceptions.*, org.eclipse.persistence.expressions.*, org.eclipse.persistence.internal.helper.DatabaseField, org.eclipse.persistence.internal.sessions.AbstractRecord, .AbstractSession, org.eclipse.persistence.descriptors.ClassDescriptor

Used for logical AND and OR. This is not used by NOT.

Field Summary

Inherited from org.eclipse.persistence.internal.expressions.CompoundExpression:
builderfirstChildoperatorplatformOperatorsecondChild

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public boolean
doesConform(Object object, AbstractSession session, AbstractRecord translationRow, int valueHolderPolicy, boolean
true if object possibly not a clone, but is being conformed against the unit of work cache; if object is not in the UOW cache but some of its attributes are, use the registered versions of object's attributes for the purposes of this method.
objectIsUnregistered
)

Overrides org.eclipse.persistence.expressions.Expression.doesConform.

INTERNAL: Check if the object conforms to the expression in memory.
public boolean
extractFields(boolean requireExactMatch, boolean primaryKey, ClassDescriptor descriptor, List<DatabaseField> searchFields, Set<DatabaseField> foundFields)

Overrides org.eclipse.persistence.expressions.Expression.extractFields.

INTERNAL: Return if the expression is not a valid primary key expression and add all primary key fields to the set.
public boolean
extractValues(boolean primaryKeyOnly, boolean requireExactMatch, ClassDescriptor descriptor, AbstractRecord primaryKeyRow, AbstractRecord translationRow)

Overrides org.eclipse.persistence.expressions.Expression.extractValues.

INTERNAL: Extract the values from the expression into the row.
public boolean
Inherited from org.eclipse.persistence.internal.expressions.CompoundExpression:
aliasForTableasOfcomputeHashCodecreatecreateequalsgetBuildergetFirstChildgetOperatorgetPlatformOperatorgetSecondChildinitializePlatformOperatorisCompoundExpressioniterateOnnormalizepostCopyInprintJavaprintSQLrebuildOnresetPlaceHolderBuildersetFirstChildsetOperatorsetSecondChildshallowClonetwistedForBaseAndContextvalidateNodewriteDescriptionOnwriteSubexpressionsTo

Constructor Detail

LogicalExpressionback to summary
public LogicalExpression()

Method Detail

descriptionOfNodeTypeback to summary
public String descriptionOfNodeType()

Overrides org.eclipse.persistence.internal.expressions.CompoundExpression.descriptionOfNodeType.

INTERNAL: Used for debug printing.

Annotations
@Override
doesConformback to summary
public boolean doesConform(Object object, AbstractSession session, AbstractRecord translationRow, int valueHolderPolicy, boolean objectIsUnregistered)

Overrides org.eclipse.persistence.expressions.Expression.doesConform.

INTERNAL: Check if the object conforms to the expression in memory. This is used for in-memory querying. If the expression in not able to determine if the object conform throw a not supported exception.

Parameters
objectIsUnregistered:boolean

Doc from org.eclipse.persistence.expressions.Expression.doesConform.

true if object possibly not a clone, but is being conformed against the unit of work cache; if object is not in the UOW cache but some of its attributes are, use the registered versions of object's attributes for the purposes of this method.

Annotations
@Override
extractFieldsback to summary
public boolean extractFields(boolean requireExactMatch, boolean primaryKey, ClassDescriptor descriptor, List<DatabaseField> searchFields, Set<DatabaseField> foundFields)

Overrides org.eclipse.persistence.expressions.Expression.extractFields.

INTERNAL: Return if the expression is not a valid primary key expression and add all primary key fields to the set.

Annotations
@Override
extractValuesback to summary
public boolean extractValues(boolean primaryKeyOnly, boolean requireExactMatch, ClassDescriptor descriptor, AbstractRecord primaryKeyRow, AbstractRecord translationRow)

Overrides org.eclipse.persistence.expressions.Expression.extractValues.

INTERNAL: Extract the values from the expression into the row. Ensure that the query is querying the exact primary key. Return false if not on the primary key.

Annotations
@Override
isLogicalExpressionback to summary
public boolean isLogicalExpression()

Overrides org.eclipse.persistence.expressions.Expression.isLogicalExpression.

INTERNAL:

Annotations
@Override