FileDocCategorySizeDatePackage
JDBCJoin.javaAPI DocExample1558Tue Apr 04 20:04:56 BST 2000com.imaginary.lwp.jdbc

JDBCJoin

public class JDBCJoin extends Object implements Serializable
Represents a join between two tables. The join is constructed with two <TABLE>.<COLUMN> strings. For example, if a BOOK table is joined to a AUTHOR table, this object might be constructed as:
JDBCJoin join = new JDBCJoin("BOOK.AUTHOR", "AUTHOR.AUTHOR_ID");
The result is a join that looks like:
BOOK.AUTHOR = AUTHOR.AUTHOR_ID

Last modified $Date: 1999/11/07 19:32:31 $
version
$Revision: 1.1 $
author
George Reese (borg@imaginary.com)

Fields Summary
private String
first
The first table in the join.
private String
second
Constructors Summary
public JDBCJoin()
Constructor required by serialization.


             
      
        super();
    
public JDBCJoin(String f, String s)
Constructs a new join that joins using the first field to the second field.

param
f the first field
param
s the second field

        super();
        first = f;
        second = s;
    
Methods Summary
public java.lang.StringtoString()
Converts the join into SQL.

return
the SQL for the join

        return (first + " = " + second);