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

public Class MapEntryExpression

extends QueryKeyExpression
Class Inheritance
Imports
java.io.BufferedWriter, .IOException, java.util.ArrayList, .List, .Vector, org.eclipse.persistence.descriptors.ClassDescriptor, org.eclipse.persistence.exceptions.QueryException, org.eclipse.persistence.expressions.Expression, org.eclipse.persistence.internal.helper.DatabaseField, .DatabaseTable, org.eclipse.persistence.internal.queries.ContainerPolicy, .InterfaceContainerPolicy, org.eclipse.persistence.mappings.CollectionMapping, .DatabaseMapping, org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey, .QueryKey, org.eclipse.persistence.queries.ReadQuery

Field Summary

Modifier and TypeField and Description
protected boolean
Inherited from org.eclipse.persistence.internal.expressions.QueryKeyExpression:
aliasedFieldhasMappinghasQueryKeyindexisAttributeExpressionisClonedForSubQuerymappingnamequeryKeyshouldQueryToManyRelationship

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public DatabaseTable
public String
public Expression
public ClassDescriptor
public DatabaseField
public Vector<E>
private InterfaceContainerPolicy
public CollectionMapping
public List<DatabaseTable>
public QueryKey
public List<DatabaseField>
public boolean
isAttribute()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.isAttribute.

INTERNAL: Return if the expression is for a direct mapped attribute.
public boolean
public Expression
mappingCriteria(Expression base)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.mappingCriteria.

INTERNAL: Mapping criteria will be provided by the base expression
public Expression
rebuildOn(Expression newBase)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.rebuildOn.

INTERNAL: This expression is built on a different base than the one we want.
public Expression
rebuildOn(Expression oldBase, Expression newBase)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.rebuildOn.

INTERNAL: A special version of rebuildOn where the newBase need not be a new ExpressionBuilder but any expression.
public void
returnMapEntry()

Set this expression to represent a Map.Entry rather than the Map's key

public boolean
public void
public void
writeDescriptionOn(BufferedWriter writer)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.writeDescriptionOn.

INTERNAL: Used to print a debug form of the expression tree.
Inherited from org.eclipse.persistence.internal.expressions.QueryKeyExpression:
additionalExpressionCriteriaadditionalExpressionCriteriaMapcheckJoinForSubSelectWithParentcomputeHashCodedoQueryToManyRelationshipequalsgetAdditionalTablesgetAliasedFieldgetAliasedTablegetFieldValuegetLeafDescriptorgetLeafMappinggetMapKeyDescriptorgetMappingFromQueryKeygetNamegetNestedAttributeNamegetReferenceTablegetRelationTablegetSourceTableindexinitializeAliasedFieldisDirectCollectionisManyToManyisMapKeyObjectRelationshipisOneToManyisOneToOneisQueryKeyExpressionnormalizenormalizepostCopyInprintJavaprintSQLresetCacheshouldQueryToManyRelationshiptreattwistedForBaseAndContextvalueFromObjectvaluesFromCollection

Field Detail

returnMapEntryback to summary
protected boolean returnMapEntry

Constructor Detail

MapEntryExpressionback to summary
public MapEntryExpression(Expression base)
MapEntryExpressionback to summary
public MapEntryExpression()

Method Detail

aliasForTableback to summary
public DatabaseTable aliasForTable(DatabaseTable table)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.aliasForTable.

INTERNAL: Find the alias for a given table. A TableEntry is a place holder and its base expression holds all the relevant information. Get the alias from the baseExpression

Annotations
@Override
descriptionOfNodeTypeback to summary
public String descriptionOfNodeType()

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

INTERNAL: Used for debug printing.

Annotations
@Override
existingDerivedTableback to summary
public Expression existingDerivedTable(DatabaseTable table)

Overrides org.eclipse.persistence.internal.expressions.DataExpression.existingDerivedTable.

INTERNAL:

Annotations
@Override
getDescriptorback to summary
public ClassDescriptor getDescriptor()

Overrides org.eclipse.persistence.internal.expressions.ObjectExpression.getDescriptor.

Annotations
@Override
getFieldback to summary
public DatabaseField getField()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.getField.

INTERNAL:

Annotations
@Override
getFieldsback to summary
public Vector<E> getFields()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.getFields.

INTERNAL: Return all the fields

Annotations
@Override
getInterfaceContainerPolicyback to summary
private InterfaceContainerPolicy getInterfaceContainerPolicy()
getMappingback to summary
public CollectionMapping getMapping()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.getMapping.

Annotations
@Override
getOwnedTablesback to summary
public List<DatabaseTable> getOwnedTables()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.getOwnedTables.

Exclude any tables defined by base.

Annotations
@Override
getQueryKeyOrNullback to summary
public QueryKey getQueryKeyOrNull()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.getQueryKeyOrNull.

Annotations
@Override
getSelectionFieldsback to summary
public List<DatabaseField> getSelectionFields(ReadQuery query)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.getSelectionFields.

INTERNAL:

Annotations
@Override
isAttributeback to summary
public boolean isAttribute()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.isAttribute.

INTERNAL: Return if the expression is for a direct mapped attribute.

Annotations
@Override
isMapEntryExpressionback to summary
public boolean isMapEntryExpression()

Overrides org.eclipse.persistence.expressions.Expression.isMapEntryExpression.

INTERNAL:

Annotations
@Override
mappingCriteriaback to summary
public Expression mappingCriteria(Expression base)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.mappingCriteria.

INTERNAL: Mapping criteria will be provided by the base expression

Annotations
@Override
rebuildOnback to summary
public Expression rebuildOn(Expression newBase)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.rebuildOn.

INTERNAL: This expression is built on a different base than the one we want. Rebuild it and return the root of the new tree

Annotations
@Override
rebuildOnback to summary
public Expression rebuildOn(Expression oldBase, Expression newBase)

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.rebuildOn.

INTERNAL: A special version of rebuildOn where the newBase need not be a new ExpressionBuilder but any expression.

For nested joined attributes, the joined attribute query must have its joined attributes rebuilt relative to it.

Annotations
@Override
returnMapEntryback to summary
public void returnMapEntry()

Set this expression to represent a Map.Entry rather than the Map's key

shouldReturnMapEntryback to summary
public boolean shouldReturnMapEntry()
validateNodeback to summary
public void validateNode()

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.validateNode.

Do any required validation for this node. Throw an exception if it's incorrect.

Annotations
@Override
writeDescriptionOnback to summary
public void writeDescriptionOn(BufferedWriter writer) throws IOException

Overrides org.eclipse.persistence.internal.expressions.QueryKeyExpression.writeDescriptionOn.

INTERNAL: Used to print a debug form of the expression tree.

Annotations
@Override