org.datanucleus.store.rdbms.sql
Class SQLTable
java.lang.Object
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.
stmt
protected SQLStatement stmt
table
protected org.datanucleus.store.mapped.DatastoreContainerObject table
alias
protected org.datanucleus.store.mapped.DatastoreIdentifier alias
groupName
protected String groupName
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.