org.jpox.store.expression
Class TableExprAsSubquery

java.lang.Object
  extended byorg.jpox.store.expression.LogicSetExpression
      extended byorg.jpox.store.expression.TableExprAsSubquery

public class TableExprAsSubquery
extends LogicSetExpression

A SQL table expression that joins superclass tables by constructing a parenthesized sub-SELECT statement.

Version:
$Revision: 1.17 $
See Also:
QueryExpression

Field Summary
protected  java.util.ArrayList columns
           
protected  boolean multipleTablesReferenced
           
 
Fields inherited from class org.jpox.store.expression.LogicSetExpression
embeddedFieldMappings, LOCALISER, mainRangeVar, mainTable, qs, sqlText, storeMgr
 
Constructor Summary
TableExprAsSubquery(QueryExpression qs, DatastoreContainerObject mainTable, DatastoreIdentifier mainRangeVar)
           
 
Method Summary
 java.lang.String referenceColumn(DatastoreField col)
          Return an identifier/reference to the datastore field/column.
 java.lang.String toString()
           
 
Methods inherited from class org.jpox.store.expression.LogicSetExpression
assertNotFrozen, equals, getMainTable, getRangeVariable, hashCode, newFieldExpression
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

columns

protected final java.util.ArrayList columns

multipleTablesReferenced

protected boolean multipleTablesReferenced
Constructor Detail

TableExprAsSubquery

public TableExprAsSubquery(QueryExpression qs,
                           DatastoreContainerObject mainTable,
                           DatastoreIdentifier mainRangeVar)
Parameters:
qs - the QueryExpression
mainTable - the main table in the query
mainRangeVar - The alias/identifier of the table in the query
Method Detail

referenceColumn

public java.lang.String referenceColumn(DatastoreField col)
Description copied from class: LogicSetExpression
Return an identifier/reference to the datastore field/column.

Specified by:
referenceColumn in class LogicSetExpression
Parameters:
col - the column to have a reference
Returns:
identifier or fully qualified identifier

toString

public java.lang.String toString()
Specified by:
toString in class LogicSetExpression


Copyright © -2007 . All Rights Reserved.