Oracle Application Server TopLink API Reference
10g (9.0.4.3)

B10491-02

oracle.toplink.querykeys
Class QueryKey

java.lang.Object
  extended byoracle.toplink.querykeys.QueryKey

All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
DirectQueryKey, ForeignReferenceQueryKey

public class QueryKey
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Purpose: Define a Java appropriate alias to a database field or function.

Responsibilities:

See Also:
Serialized Form

Constructor Summary
QueryKey()
           

 

Method Summary
 java.lang.Object clone()
          INTERNAL: Clones itself.
 Descriptor getDescriptor()
          INTERNAL: Return the descriptor.
 java.lang.String getName()
          PUBLIC: Return the name for the query key.
 void initialize(Descriptor aDescriptor)
          INTERNAL: Initialize any information in the receiver that requires its descriptor.
 boolean isAbstractQueryKey()
          INTERNAL: return whether this query key is abstract
 boolean isCollectionQueryKey()
          PUBLIC:: Related query key should implement this method to return true.
 boolean isDirectCollectionQueryKey()
          PUBLIC:: Related query key should implement this method to return true.
 boolean isDirectQueryKey()
          PUBLIC:: Related query key should implement this method to return true.
 boolean isForeignReferenceQueryKey()
          PUBLIC:: Related query key should implement this method to return true.
 boolean isManyToManyQueryKey()
          PUBLIC:: Related query key should implement this method to return true.
 boolean isOneToManyQueryKey()
          PUBLIC:: Related query key should implement this method to return true.
 boolean isOneToOneQueryKey()
          PUBLIC:: Related query key should implement this method to return true.
 boolean isQueryKey()
          INTERNAL: This is a QueryKey.
 void setDescriptor(Descriptor descriptor)
          INTERNAL: Set the descriptor.
 void setName(java.lang.String name)
          PUBLIC: Set the name for the query key.
 java.lang.String toString()
          INTERNAL: return a string representation of this instance of QueryKey

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

QueryKey

public QueryKey()
Method Detail

clone

public java.lang.Object clone()
INTERNAL: Clones itself.

getDescriptor

public Descriptor getDescriptor()
INTERNAL: Return the descriptor.

getName

public java.lang.String getName()
PUBLIC: Return the name for the query key. This is the name that will be used in the expression.

initialize

public void initialize(Descriptor aDescriptor)
INTERNAL: Initialize any information in the receiver that requires its descriptor. Set the receiver's descriptor back reference.
Parameters:
aDescriptor - is the owner descriptor of the receiver.

isAbstractQueryKey

public boolean isAbstractQueryKey()
INTERNAL: return whether this query key is abstract
Returns:
boolean

isCollectionQueryKey

public boolean isCollectionQueryKey()
PUBLIC:: Related query key should implement this method to return true.

isDirectCollectionQueryKey

public boolean isDirectCollectionQueryKey()
PUBLIC:: Related query key should implement this method to return true.

isDirectQueryKey

public boolean isDirectQueryKey()
PUBLIC:: Related query key should implement this method to return true.

isForeignReferenceQueryKey

public boolean isForeignReferenceQueryKey()
PUBLIC:: Related query key should implement this method to return true.

isManyToManyQueryKey

public boolean isManyToManyQueryKey()
PUBLIC:: Related query key should implement this method to return true.

isOneToManyQueryKey

public boolean isOneToManyQueryKey()
PUBLIC:: Related query key should implement this method to return true.

isOneToOneQueryKey

public boolean isOneToOneQueryKey()
PUBLIC:: Related query key should implement this method to return true.

isQueryKey

public boolean isQueryKey()
INTERNAL: This is a QueryKey. return true.
Returns:
boolean

setDescriptor

public void setDescriptor(Descriptor descriptor)
INTERNAL: Set the descriptor.

setName

public void setName(java.lang.String name)
PUBLIC: Set the name for the query key. This is the name that will be used in the expression.

toString

public java.lang.String toString()
INTERNAL: return a string representation of this instance of QueryKey

Copyright © 1998, 2004 Oracle Corporation. All Rights Reserved.