Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
alias
alias for name
|
protected java.lang.String |
name
name of column
|
protected Table |
table
reference to table
|
Constructor and Description |
---|
Column(Table table,
java.lang.String name,
int type)
Create a new column.
|
Column(Table table,
java.lang.String alias,
java.lang.String name,
int type)
Create a new column.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Column column)
Compare this column to another column for sorting.
|
boolean |
equals(java.lang.Object o)
Compare this column to another object.
|
java.lang.String |
getAlias()
Get the alias name for this column.
|
java.lang.String |
getName()
Returns column name, not qualified by the table prefix.
|
Table |
getTable()
Get the table to which this column belongs.
|
int |
getType() |
int |
hashCode() |
boolean |
isAliased()
If true, this column has been aliased to a different name or to a
function.
|
java.lang.String |
toString()
The string representation of this column or function, used to build an
SQL statement.
|
protected Table table
protected java.lang.String name
protected java.lang.String alias
public Column(Table table, java.lang.String name, int type)
table
- parent tablename
- column nametype
- JDBC typepublic Column(Table table, java.lang.String alias, java.lang.String name, int type)
table
- parent tablename
- column namealias
- alias for nametype
- JDBC typepublic int getType()
public Table getTable()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Should be another columnpublic int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Column column)
compareTo
in interface java.lang.Comparable<Column>
column
- anotherpublic java.lang.String getName()
public java.lang.String getAlias()
public boolean isAliased()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona