kodo.jdbc.sql
Class TrueUnion
java.lang.Object
   org.apache.openjpa.jdbc.sql.LogicalUnion
org.apache.openjpa.jdbc.sql.LogicalUnion
       kodo.jdbc.sql.TrueUnion
kodo.jdbc.sql.TrueUnion
- All Implemented Interfaces: 
- SelectExecutor, Union
- public class TrueUnion 
- extends LogicalUnion
True SQL UNION.  The following limitations apply:
 
 - Zero or one mapping per select.
- If non-column ordering critieria is added or incompatible ordering
 columns are selected, the UNION will fallback to a logical union.
 
 
 
 
 
 
| Methods inherited from class org.apache.openjpa.jdbc.sql.LogicalUnion | 
| execute, getAutoDistinct, getConfiguration, getDBDictionary, getExpectedResultCount, getJoinSyntax, getSelects, isDistinct, isLRS, setAutoDistinct, setDistinct, setExpectedResultCount, setJoinSyntax, setLRS, toString | 
 
 
TrueUnion
public TrueUnion(JDBCConfiguration conf,
                 int selects)
- Constructor.
 
- Parameters:
- conf- system configuration
- selects- the number of SQL selects to union together
 
TrueUnion
public TrueUnion(JDBCConfiguration conf,
                 Select[] seeds)
- Constructor used to seed the internal selects.
 
newUnionSelect
protected LogicalUnion.UnionSelect newUnionSelect(SelectImpl seed,
                                                  int pos)
- 
- Overrides:
- newUnionSelectin class- LogicalUnion
 
- 
 
isUnion
public boolean isUnion()
- 
- Specified by:
- isUnionin interface- Union
- Overrides:
- isUnionin class- LogicalUnion
 
- 
 
abortUnion
public void abortUnion()
- 
- Specified by:
- abortUnionin interface- Union
- Overrides:
- abortUnionin class- LogicalUnion
 
- 
 
getOrdering
public String getOrdering()
- 
- Specified by:
- getOrderingin interface- Union
- Overrides:
- getOrderingin class- LogicalUnion
 
- 
 
toSelect
public SQLBuffer toSelect(boolean forUpdate,
                          JDBCFetchConfiguration fetch)
- 
- Specified by:
- toSelectin interface- SelectExecutor
- Overrides:
- toSelectin class- LogicalUnion
 
- 
 
toSelectCount
public SQLBuffer toSelectCount()
- 
- Specified by:
- toSelectCountin interface- SelectExecutor
- Overrides:
- toSelectCountin class- LogicalUnion
 
- 
 
supportsRandomAccess
public boolean supportsRandomAccess(boolean forUpdate)
- 
- Specified by:
- supportsRandomAccessin interface- SelectExecutor
- Overrides:
- supportsRandomAccessin class- LogicalUnion
 
- 
 
supportsLocking
public boolean supportsLocking()
- 
- Specified by:
- supportsLockingin interface- SelectExecutor
- Overrides:
- supportsLockingin class- LogicalUnion
 
- 
 
getCount
public int getCount(JDBCStore store)
             throws SQLException
- 
- Specified by:
- getCountin interface- SelectExecutor
- Overrides:
- getCountin class- LogicalUnion
 
- 
- Throws:
- SQLException
 
execute
public Result execute(JDBCStore store,
                      JDBCFetchConfiguration fetch,
                      int lockLevel)
               throws SQLException
- 
- Specified by:
- executein interface- SelectExecutor
- Overrides:
- executein class- LogicalUnion
 
- 
- Throws:
- SQLException
 
select
public void select(Union.Selector selector)
- 
- Specified by:
- selectin interface- Union
- Overrides:
- selectin class- LogicalUnion
 
- 
 
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.