uk.org.ogsadai.client.databrowser.sql
Class DBJoinParameter

java.lang.Object
  |
  +--uk.org.ogsadai.client.databrowser.sql.DBJoinParameter

public class DBJoinParameter
extends java.lang.Object

Parameter class for the parameters required for a "join" query.

Version:
$Revision: 1.4 $
Author:
Paul J Graham, EPCC
See Also:
DBJoin

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  DBUpdate mCreateTableA
           
private  DBUpdate mCreateTableB
           
private  DBDataResource mDataResourceC
           
private  DBUpdate mDestroyTableA
           
private  DBUpdate mDestroyTableB
           
private  DBQuery mQueryA
           
private  DBQuery mQueryB
           
private  DBQuery mQueryJoin
           
private  boolean mSecureComms
           
 
Constructor Summary
DBJoinParameter()
           
 
Method Summary
 DBUpdate getCreateTableA()
           
 DBUpdate getCreateTableB()
           
 DBDataResource getDataResourceC()
           
 DBUpdate getDestroyTableA()
           
 DBUpdate getDestroyTableB()
           
 DBQuery getQueryA()
           
 DBQuery getQueryB()
           
 DBQuery getQueryJoin()
           
 boolean isValid()
          Validates the join parameters.
 void setCreateTableA(DBUpdate update)
           
 void setCreateTableB(DBUpdate update)
           
 void setDataResourceC(DBDataResource resource)
           
 void setDestroyTableA(DBUpdate update)
           
 void setDestroyTableB(DBUpdate update)
           
 void setQueryA(DBQuery query)
           
 void setQueryB(DBQuery query)
           
 void setQueryJoin(DBQuery query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mQueryA

private DBQuery mQueryA

mQueryB

private DBQuery mQueryB

mCreateTableA

private DBUpdate mCreateTableA

mCreateTableB

private DBUpdate mCreateTableB

mDestroyTableA

private DBUpdate mDestroyTableA

mDestroyTableB

private DBUpdate mDestroyTableB

mDataResourceC

private DBDataResource mDataResourceC

mQueryJoin

private DBQuery mQueryJoin

mSecureComms

private boolean mSecureComms
Constructor Detail

DBJoinParameter

public DBJoinParameter()
Method Detail

isValid

public boolean isValid()
Validates the join parameters.

Returns:
true if all the parameters are not null

getQueryA

public DBQuery getQueryA()
Returns:
The query to run on database A

getQueryB

public DBQuery getQueryB()
Returns:
The query to run on database B

getCreateTableA

public DBUpdate getCreateTableA()
Returns:
The update to create temp table A

getCreateTableB

public DBUpdate getCreateTableB()
Returns:
The update to create temp table B

getDataResourceC

public DBDataResource getDataResourceC()
Returns:
data resource representing database C

setQueryA

public void setQueryA(DBQuery query)
Parameters:
query - The query to perform on database A

setQueryB

public void setQueryB(DBQuery query)
Parameters:
query - The query to perform on database B

setCreateTableA

public void setCreateTableA(DBUpdate update)
Parameters:
update - The update to create temp table A

setCreateTableB

public void setCreateTableB(DBUpdate update)
Parameters:
update - The update to create temp table B

setDataResourceC

public void setDataResourceC(DBDataResource resource)
Parameters:
resource - the data resource for table C

getQueryJoin

public DBQuery getQueryJoin()
Returns:
The query to perform on database C (the join query)

setQueryJoin

public void setQueryJoin(DBQuery query)
Parameters:
query - The query to perform on database C (the join query)

getDestroyTableA

public DBUpdate getDestroyTableA()
Returns:
The update to destroy temp table A

getDestroyTableB

public DBUpdate getDestroyTableB()
Returns:
The update to destroy temp table B

setDestroyTableA

public void setDestroyTableA(DBUpdate update)
Parameters:
update - The update to destroy temp table A

setDestroyTableB

public void setDestroyTableB(DBUpdate update)
Parameters:
update - The update to destroy temp table B