Class DirectQueryKey
java.lang.Object
org.eclipse.persistence.mappings.querykeys.QueryKey
org.eclipse.persistence.mappings.querykeys.DirectQueryKey
- All Implemented Interfaces:
Serializable
,Cloneable
Purpose: Define an alias to a database field.
Responsibilities:
- Define the field that is being aliased.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.querykeys.QueryKey
descriptor, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.persistence.internal.helper.DatabaseField
getField()
INTERNAL: Return the field for the query key.PUBLIC: Return the field name for the query key.PUBLIC: Return the qualified field name for the query key.void
initialize
(ClassDescriptor descriptor) INTERNAL: Initialize any information in the receiver that requires its descriptor.boolean
INTERNAL: override the isDirectQueryKey() method in the superclass to return true.void
setField
(org.eclipse.persistence.internal.helper.DatabaseField field) INTERNAL: Set the field for the query key.void
setFieldName
(String fieldName) PUBLIC: Set the field name for the query key.Methods inherited from class org.eclipse.persistence.mappings.querykeys.QueryKey
clone, convertClassNamesToClasses, getDescriptor, getName, isAbstractQueryKey, isCollectionQueryKey, isDirectCollectionQueryKey, isForeignReferenceQueryKey, isManyToManyQueryKey, isOneToManyQueryKey, isOneToOneQueryKey, isQueryKey, setDescriptor, setName, toString
-
Constructor Details
-
DirectQueryKey
public DirectQueryKey()
-
-
Method Details
-
getField
public org.eclipse.persistence.internal.helper.DatabaseField getField()INTERNAL: Return the field for the query key. -
getFieldName
PUBLIC: Return the field name for the query key. -
getQualifiedFieldName
PUBLIC: Return the qualified field name for the query key. -
initialize
INTERNAL: Initialize any information in the receiver that requires its descriptor. Set the receiver's descriptor back reference.- Overrides:
initialize
in classQueryKey
- Parameters:
descriptor
- is the owner descriptor of the receiver.
-
isDirectQueryKey
public boolean isDirectQueryKey()INTERNAL: override the isDirectQueryKey() method in the superclass to return true.- Overrides:
isDirectQueryKey
in classQueryKey
- Returns:
- boolean
-
setField
public void setField(org.eclipse.persistence.internal.helper.DatabaseField field) INTERNAL: Set the field for the query key. -
setFieldName
PUBLIC: Set the field name for the query key.
-