|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.sqlscribe.TempTable
public class TempTable
Represents a relational database temporary table for use in the query builder framework.
| Constructor Summary | |
|---|---|
TempTable(java.lang.String varName)
Create temporary table with the given name |
|
TempTable(java.lang.String varName,
java.lang.String alias)
Create a temporary table with the given name |
|
| Method Summary | |
|---|---|
int |
compareTo(TempTable table)
|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getAlias()
Get the table's alias. |
java.lang.String |
getDeclaration()
Get the table's declaration string |
int |
hashCode()
|
TempTable |
reAlias(java.lang.String newVar)
Clone this table with a new variable |
void |
setTableName(java.util.Map<java.lang.String,java.lang.Object> variables)
Set the table's name by pulling it out of the variables |
void |
writeAlias(java.lang.StringBuffer buf)
Write the table's alias string to a buffer |
void |
writeDeclaration(java.lang.StringBuffer buf)
Write the table's declaration string to a buffer |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TempTable(java.lang.String varName)
varName -
public TempTable(java.lang.String varName,
java.lang.String alias)
varName - variable name that contains the table namealias - table's alias name| Method Detail |
|---|
public void setTableName(java.util.Map<java.lang.String,java.lang.Object> variables)
variables - containing the tables namepublic java.lang.String getAlias()
ITable
getAlias in interface ITablepublic void writeAlias(java.lang.StringBuffer buf)
ITable
writeAlias in interface ITablebuf - buffer to which alias string is writtenpublic java.lang.String getDeclaration()
ITable
getDeclaration in interface ITablepublic void writeDeclaration(java.lang.StringBuffer buf)
ITable
writeDeclaration in interface ITablebuf - buffer to which the declaration string is writtenpublic TempTable reAlias(java.lang.String newVar)
newVar - new variable containing the table name
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(TempTable table)
compareTo in interface java.lang.Comparable<TempTable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||