Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl
Class Name

java.lang.Object
  extended by org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.Name

Direct Known Subclasses:
LangName, SqlName

public abstract class Name
extends java.lang.Object

A Name encapsulates the name of an entity. A Name identifies the context (e.g., schema or Java package) in which the entity is declared, and the simple name of the entity within the context. This class implements 'equals' and 'hash', so that Names may be stored in Hashtables.


Field Summary
protected  java.lang.Object m_annotation
           
protected  java.lang.String m_context
           
protected  java.lang.String m_name
           
static java.lang.String NO_CONTEXT
           

 

Constructor Summary
protected Name()
           
  Name(java.lang.String context, java.lang.String name)
          Initializes a Name with the context and simple name of a declared entity.

 

Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if and only if two Names are equal.
 java.lang.Object getAnnotation()
          Returns the annotation associated with the Name.
 java.lang.String getContextName()
          Returns the context name of the declared entity.
 java.lang.String getDeclClass()
           
 java.lang.String getDeclItf()
           
 java.lang.String getDeclItfPackage()
           
 java.lang.String getDeclPackage()
           
 java.lang.String getSimpleName()
          Returns the name of the declared entity within the context.
 java.lang.String getUseClass()
           
 java.lang.String getUseClass(boolean full)
           
 java.lang.String getUseClass(java.lang.String currPackage)
           
 java.lang.String getUseItf()
           
 java.lang.String getUseItfPackage()
           
 java.lang.String getUsePackage()
           
 boolean hasDeclItf()
           
 int hashCode()
          Returns a hash code for the Name.
abstract  boolean hasUseClass()
           
 boolean hasUseItf()
           
 java.lang.String renameJavaMethodPrefix()
           
 void setAnnotation(java.lang.Object o)
          Sets the annotation associated with the Name.
abstract  java.lang.String toString()
          Returns the complete name of the declared entity.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Field Detail

NO_CONTEXT

public static final java.lang.String NO_CONTEXT
See Also:
Constant Field Values

m_context

protected java.lang.String m_context

m_name

protected java.lang.String m_name

m_annotation

protected java.lang.Object m_annotation

Constructor Detail

Name

public Name(java.lang.String context,
            java.lang.String name)
Initializes a Name with the context and simple name of a declared entity. The context and name arguments may not be null. * @param context the context in which the entity is declared
Parameters:
name - the declared name of the entity in the context

Name

protected Name()

Method Detail

getContextName

public java.lang.String getContextName()
Returns the context name of the declared entity.

getSimpleName

public java.lang.String getSimpleName()
Returns the name of the declared entity within the context.

getAnnotation

public java.lang.Object getAnnotation()
Returns the annotation associated with the Name. The annotation was set by the client of the Name using setAnnotation().

setAnnotation

public void setAnnotation(java.lang.Object o)
Sets the annotation associated with the Name. The annotation is an arbitary object chosed by the client of the Name.

getDeclClass

public java.lang.String getDeclClass()

hasDeclItf

public boolean hasDeclItf()

getDeclItf

public java.lang.String getDeclItf()

getDeclPackage

public java.lang.String getDeclPackage()

getDeclItfPackage

public java.lang.String getDeclItfPackage()

getUseClass

public java.lang.String getUseClass(java.lang.String currPackage)

getUseClass

public java.lang.String getUseClass(boolean full)

getUseClass

public java.lang.String getUseClass()

getUsePackage

public java.lang.String getUsePackage()

getUseItfPackage

public java.lang.String getUseItfPackage()

hasUseItf

public boolean hasUseItf()

getUseItf

public java.lang.String getUseItf()

hasUseClass

public abstract boolean hasUseClass()

renameJavaMethodPrefix

public java.lang.String renameJavaMethodPrefix()

toString

public abstract java.lang.String toString()
Returns the complete name of the declared entity. The returned name includes the context name and the name of the entity within the context.
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Returns a hash code for the Name. Implemented so that Names may be put in Hashtables.
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Returns true if and only if two Names are equal.
Overrides:
equals in class java.lang.Object

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.