org.hibernate.tool.ide.completion
Class EntityNameReference

java.lang.Object
  extended by org.hibernate.tool.ide.completion.EntityNameReference

public class EntityNameReference
extends Object

Class that represents an alias to some entityname in a HQL statement. e.g. "Product as p" or "Product p" Should not be used by external clients.

Author:
leon, Max Rydahl Andersen

Constructor Summary
EntityNameReference(String type, String alias)
           
 
Method Summary
 String getAlias()
           
 String getEntityName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityNameReference

public EntityNameReference(String type,
                           String alias)
Method Detail

getAlias

public String getAlias()
Returns:
The alias, the "p" in "Product as p"

getEntityName

public String getEntityName()
Returns:
the entityname, the "Product" in "Product as b"

toString

public String toString()
Overrides:
toString in class Object