SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.query.exp
Interface JDBCExpression

All Superinterfaces:
Expression
All Known Implementing Classes:
AndExpression, BindVariableAndExpression, CompareEqualExpression, CompareExpression, EmptyExpression, EndsWithExpression, ExtensionExpression, InExpression, IsEmptyExpression, NotExpression, OrderExpression, OrExpression, StartsWithExpression

public interface JDBCExpression
extends Expression

An Expression represents a query ready for execution. Generally, it is a set of conditions that must be met for the query to be true.


Method Summary
 void appendOrdering(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer[] orders, boolean[] ascending, int idx, com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm, java.util.Map params)
          Append the ordering for this expression to the given buffer.
 void appendTo(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer buf, com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm, java.util.Map params)
          Append the SQL for this expression to the given buffer.
 com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins getJoins()
          Return the joins for this expression.
 void initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm, com.solarmetric.rd.kodo.impl.jdbc.runtime.Select select, java.util.Map containsCounts)
          Initialize the expression.
 

Method Detail

initialize

public void initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
                       com.solarmetric.rd.kodo.impl.jdbc.runtime.Select select,
                       java.util.Map containsCounts)
Initialize the expression. This method should recursively initialize any sub-expressions or values. It should also cache the Joins instance containing the joins for this expression.

Parameters:
pm - the persistence manager for this query
select - manage joins made in each query clause
containsCounts - map of relation paths to the number of times the paths appear in a contains() expression; used to ensure paths used for contains() within the same AND expression used different aliases

appendTo

public void appendTo(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer buf,
                     com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
                     java.util.Map params)
Append the SQL for this expression to the given buffer. The SQL should optinally include any joins this expression needs.


appendOrdering

public void appendOrdering(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer[] orders,
                           boolean[] ascending,
                           int idx,
                           com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm,
                           java.util.Map params)
Append the ordering for this expression to the given buffer.


getJoins

public com.solarmetric.rd.kodo.impl.jdbc.runtime.Joins getJoins()
Return the joins for this expression. These joins should be created and cached during the initialize(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl, com.solarmetric.rd.kodo.impl.jdbc.runtime.Select, java.util.Map) method. The parent expression might modify these joins during its own initialization so that common joins are moved up the expression tree.


SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.