org.d2rq.lang
Class AliasDeclaration

java.lang.Object
  extended by org.d2rq.lang.AliasDeclaration

public class AliasDeclaration
extends Object

A "foo AS bar" declaration that establishes an alias for a named table, as used with d2rq:alias.

Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
AliasDeclaration(TableName original, TableName alias)
           
 
Method Summary
 boolean equals(Object o)
           
 TableName getAlias()
           
 TableName getOriginal()
           
static Renamer getRenamer(Collection<AliasDeclaration> aliases)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AliasDeclaration

public AliasDeclaration(TableName original,
                        TableName alias)
Method Detail

getRenamer

public static Renamer getRenamer(Collection<AliasDeclaration> aliases)

getOriginal

public TableName getOriginal()

getAlias

public TableName getAlias()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object