org.datanucleus.store.mapped.expression
Class TableExprAsJoins

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.LogicSetExpression
      extended by org.datanucleus.store.mapped.expression.TableExprAsJoins

public class TableExprAsJoins
extends LogicSetExpression

A SQL table expression that joins superclass tables by joining them directly to the surrounding QueryStatement.

Version:
$Revision: 1.20 $
See Also:
QueryExpression

Field Summary
protected  java.util.HashMap aliasesByTable
           
 
Fields inherited from class org.datanucleus.store.mapped.expression.LogicSetExpression
embeddedFieldMappings, LOCALISER, mainAlias, mainTable, qs, sqlText
 
Constructor Summary
TableExprAsJoins(QueryExpression qs, DatastoreContainerObject mainTable, DatastoreIdentifier alias)
          Constructor for a table expressed as a series of joins.
 
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.datanucleus.store.mapped.expression.LogicSetExpression
assertNotFrozen, equals, getAlias, getMainTable, hashCode, newFieldExpression
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

aliasesByTable

protected final java.util.HashMap aliasesByTable
Constructor Detail

TableExprAsJoins

public TableExprAsJoins(QueryExpression qs,
                        DatastoreContainerObject mainTable,
                        DatastoreIdentifier alias)
Constructor for a table expressed as a series of joins.

Parameters:
qs - the QueryExpression
mainTable - the main table in the query
alias - 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 © 2010. All Rights Reserved.