Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » sql » [javadoc | source]
org.apache.openjpa.jdbc.sql
public class: LogicalUnion [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.sql.LogicalUnion

All Implemented Interfaces:
    Union

A logical union made up of multiple distinct selects whose results are combined in memory.
Nested Class Summary:
public static interface  LogicalUnion.Selector  A callback used to create the selects in a SQL union. 
protected class  LogicalUnion.UnionSelect  A select that is part of a logical union. 
Field Summary
protected final  LogicalUnion.UnionSelect[] sels     
protected final  DBDictionary dict     
protected final  ClassMapping[] mappings     
protected final  BitSet desc     
Constructor:
 public LogicalUnion(JDBCConfiguration conf,
    int sels) 
    Constructor.
    Parameters:
    conf - system configuration
    sels - the number of SQL selects to union together
 public LogicalUnion(JDBCConfiguration conf,
    Select[] seeds) 
    Constructor used to seed the internal selects.
 protected LogicalUnion(JDBCConfiguration conf,
    int sels,
    Select[] seeds) 
    Delegate constructor.
Method from org.apache.openjpa.jdbc.sql.LogicalUnion Summary:
abortUnion,   execute,   execute,   getAutoDistinct,   getConfiguration,   getCount,   getDBDictionary,   getExpectedResultCount,   getJoinSyntax,   getOrdering,   getSelects,   isDistinct,   isLRS,   isUnion,   newUnionSelect,   select,   setAutoDistinct,   setDistinct,   setExpectedResultCount,   setJoinSyntax,   setLRS,   supportsLocking,   supportsRandomAccess,   toSelect,   toSelectCount,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.sql.LogicalUnion Detail:
 public  void abortUnion() 
 public Result execute(JDBCStore store,
    JDBCFetchConfiguration fetch) throws SQLException 
 public Result execute(JDBCStore store,
    JDBCFetchConfiguration fetch,
    int lockLevel) throws SQLException 
 public boolean getAutoDistinct() 
 public JDBCConfiguration getConfiguration() 
 public int getCount(JDBCStore store) throws SQLException 
 public DBDictionary getDBDictionary() 
 public int getExpectedResultCount() 
 public int getJoinSyntax() 
 public String getOrdering() 
 public Select[] getSelects() 
 public boolean isDistinct() 
 public boolean isLRS() 
 public boolean isUnion() 
 protected LogicalUnion.UnionSelect newUnionSelect(SelectImpl seed,
    int pos) 
    Create a new union select with the given delegate and union position.
 public  void select(Union.Selector selector) 
 public  void setAutoDistinct(boolean distinct) 
 public  void setDistinct(boolean distinct) 
 public  void setExpectedResultCount(int expectedResultCount,
    boolean force) 
 public  void setJoinSyntax(int syntax) 
 public  void setLRS(boolean lrs) 
 public boolean supportsLocking() 
 public boolean supportsRandomAccess(boolean forUpdate) 
 public SQLBuffer toSelect(boolean forUpdate,
    JDBCFetchConfiguration fetch) 
 public SQLBuffer toSelectCount() 
 public String toString()