org.datanucleus.store.rdbms.sql
Class SQLTable

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.SQLTable

public class SQLTable
extends Object

Representation of a table reference in an SQL statement. Has a table, and an alias.


Field Summary
protected  org.datanucleus.store.mapped.DatastoreIdentifier alias
           
protected  String groupName
           
protected  SQLStatement stmt
           
protected  org.datanucleus.store.mapped.DatastoreContainerObject table
           
 
Method Summary
 boolean equals(Object obj)
           
 org.datanucleus.store.mapped.DatastoreIdentifier getAlias()
           
 String getGroupName()
           
 SQLStatement getSQLStatement()
           
 org.datanucleus.store.mapped.DatastoreContainerObject getTable()
           
 int hashCode()
           
 String toString()
          Stringifier method to return this "table" in a form for use in SQL statements.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

stmt

protected SQLStatement stmt

table

protected org.datanucleus.store.mapped.DatastoreContainerObject table

alias

protected org.datanucleus.store.mapped.DatastoreIdentifier alias

groupName

protected String groupName
Method Detail

getSQLStatement

public SQLStatement getSQLStatement()

getTable

public org.datanucleus.store.mapped.DatastoreContainerObject getTable()

getAlias

public org.datanucleus.store.mapped.DatastoreIdentifier getAlias()

getGroupName

public String getGroupName()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Stringifier method to return this "table" in a form for use in SQL statements. This can be of the following form(s)
 MYTABLE MYALIAS
 MYTABLE
 

Overrides:
toString in class Object
Returns:
The String form for use


Copyright © 2012. All Rights Reserved.