|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.sqlscribe.Column
public class Column
Represents a relational database table column for use in the query builder framework.
| Constructor Summary | |
|---|---|
Column(ITable table,
java.lang.String name)
Create new Column with a name and alias |
|
Column(ITable table,
java.lang.String name,
java.lang.String alias)
Create new Column with a name and alias |
|
| Method Summary | |
|---|---|
int |
compareTo(Column column)
|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getAlias()
Get the alias of this column |
java.lang.String |
getName()
Get the name of this column |
java.lang.String |
getQualifiedName()
Return the qualified name of the column, ie tableAlias.name |
java.lang.String |
getSelectionName()
Get the AS selection text for this column, ie: name AS alias |
ITable |
getTable()
Get the table to which this column belongs |
int |
hashCode()
|
Column |
reAlias(ITable newTable,
java.lang.String newAlias)
Clone this column using a new table and alias |
java.lang.String |
toString()
|
void |
writeQualifiedName(java.lang.StringBuffer buf)
Append the qualified name of the column, ie tableAlias.name to a string buffer |
void |
writeSelectionName(java.lang.StringBuffer buf)
Append the AS selection text for this column, ie: name AS alias |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Column(ITable table,
java.lang.String name,
java.lang.String alias)
table - table to which this column belongsname - name of the columnalias - alias to use to reference column in queries
public Column(ITable table,
java.lang.String name)
table - table to which this column belongsname - name of the column| Method Detail |
|---|
public java.lang.String getQualifiedName()
public void writeQualifiedName(java.lang.StringBuffer buf)
buf - buffer to which name is appendedpublic java.lang.String getSelectionName()
public void writeSelectionName(java.lang.StringBuffer buf)
buf - buffer to which text is appendedpublic java.lang.String getName()
public java.lang.String getAlias()
public ITable getTable()
public java.lang.String toString()
toString in class java.lang.Object
public Column reAlias(ITable newTable,
java.lang.String newAlias)
newTable - table where to which the cloned column belongsnewAlias - alias for the new column
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Column column)
compareTo in interface java.lang.Comparable<Column>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||