public Union newUnion(int selects) { return new LogicalUnion(_conf, selects); }
public String toString() { return toSelect(false, null).getSQL(); }
public int orderBy(Column[] cols, boolean asc, Joins joins, boolean select) { recordOrderColumns(cols, asc); return sel.orderBy(cols, asc, joins, select, isUnion()); }
public Result execute(JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException { if (fetch == null) fetch = store.getFetchConfiguration(); return execute(store, fetch, fetch.getReadLockLevel()); }
/** * Delegate constructor. */ protected LogicalUnion(JDBCConfiguration conf, int sels, Select[] seeds) { if (sels == 0) throw new InternalException("sels == 0"); dict = conf.getDBDictionaryInstance(); mappings = new ClassMapping[sels]; this.sels = new UnionSelect[sels]; SelectImpl seed; for (int i = 0; i < sels; i++) { seed = (seeds == null) ? (SelectImpl) conf.getSQLFactoryInstance().newSelect() : (SelectImpl) seeds[i]; this.sels[i] = newUnionSelect(seed, i); } }
if (getExpectedResultCount() == 1) { AbstractResult res; for (int i = 0; i < sels.length; i++) {
public int orderBy(Column[] cols, boolean asc, Joins joins, boolean select) { recordOrderColumns(cols, asc); return sel.orderBy(cols, asc, joins, select, isUnion()); }
public Result execute(JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException { if (fetch == null) fetch = store.getFetchConfiguration(); return execute(store, fetch, fetch.getReadLockLevel()); }
/** * Delegate constructor. */ protected LogicalUnion(JDBCConfiguration conf, int sels, Select[] seeds) { if (sels == 0) throw new InternalException("sels == 0"); dict = conf.getDBDictionaryInstance(); mappings = new ClassMapping[sels]; this.sels = new UnionSelect[sels]; SelectImpl seed; for (int i = 0; i < sels; i++) { seed = (seeds == null) ? (SelectImpl) conf.getSQLFactoryInstance().newSelect() : (SelectImpl) seeds[i]; this.sels[i] = newUnionSelect(seed, i); } }
if (getExpectedResultCount() == 1) { AbstractResult res; for (int i = 0; i < sels.length; i++) {
public boolean orderBy(Column col, boolean asc, Joins joins, boolean select) { recordOrder(col, asc); return sel.orderBy(col, asc, joins, select, isUnion()); }
public Union newUnion(int selects) { return new LogicalUnion(_conf, selects); }
public Result execute(JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException { if (fetch == null) fetch = store.getFetchConfiguration(); return execute(store, fetch, fetch.getReadLockLevel()); }
public String toString() { return toSelect(false, null).getSQL(); }
/** * Delegate constructor. */ protected LogicalUnion(JDBCConfiguration conf, int sels, Select[] seeds) { if (sels == 0) throw new InternalException("sels == 0"); dict = conf.getDBDictionaryInstance(); mappings = new ClassMapping[sels]; this.sels = new UnionSelect[sels]; SelectImpl seed; for (int i = 0; i < sels; i++) { seed = (seeds == null) ? (SelectImpl) conf.getSQLFactoryInstance().newSelect() : (SelectImpl) seeds[i]; this.sels[i] = newUnionSelect(seed, i); } }
if (getExpectedResultCount() == 1) { AbstractResult res; for (int i = 0; i < sels.length; i++) {
public int orderBy(Column[] cols, boolean asc, Joins joins, boolean select) { recordOrderColumns(cols, asc); return sel.orderBy(cols, asc, joins, select, isUnion()); }
public Union newUnion(Select[] selects) { return new LogicalUnion(_conf, selects); }
public Result execute(JDBCStore store, JDBCFetchConfiguration fetch) throws SQLException { if (fetch == null) fetch = store.getFetchConfiguration(); return execute(store, fetch, fetch.getReadLockLevel()); }
public String toString() { return toSelect(false, null).getSQL(); }