|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjimm.datavision.source.Join
public class Join
A join represents the relationship between two columns in the database. It is used by a query to build the SQL string necessary to retrieve data.
Query| Field Summary | |
|---|---|
protected Column |
from
|
protected java.lang.String |
relation
|
static java.lang.String[] |
RELATIONS
|
protected Column |
to
|
| Constructor Summary | |
|---|---|
Join(Column fromCol,
java.lang.String relation,
Column toCol)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
Column |
getFrom()
Returns the "from" column. |
java.lang.String |
getRelation()
Returns the relation string (for example, "=" or "<"). |
Column |
getTo()
Returns the "to" column. |
void |
setFrom(Column newFrom)
Sets the "from" column. |
void |
setRelation(java.lang.String newRelation)
Sets the relation string (for example, "=" or "<"). |
void |
setTo(Column newTo)
Sets the "to" column. |
java.lang.String |
toString()
Returns a string representation of this join, usable as a where clause in a SQL query. |
void |
writeXML(XMLWriter out)
Writes this join as an XML tag. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] RELATIONS
protected Column from
protected java.lang.String relation
protected Column to
| Constructor Detail |
|---|
public Join(Column fromCol,
java.lang.String relation,
Column toCol)
fromCol - a database columnrelation - a string like "=" or "<" used to join the two database
columnstoCol - another database columnColumn| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic Column getFrom()
public void setFrom(Column newFrom)
newFrom - the new columnpublic java.lang.String getRelation()
public void setRelation(java.lang.String newRelation)
newRelation - the new stringpublic Column getTo()
public void setTo(Column newTo)
newTo - the new columnpublic java.lang.String toString()
toString in class java.lang.Objectpublic void writeXML(XMLWriter out)
writeXML in interface Writeableout - a writer that knows how to write XML
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||