Added straightJoin() for those times when you know you gotta be a straight
shooter. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1674 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -173,6 +173,14 @@ public class Table {
|
|||||||
return new Cursor(this, session, 1, query);
|
return new Cursor(this, session, 1, query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Like {@link #join} but does a straight join with the specified
|
||||||
|
* table. */
|
||||||
|
public final Cursor straightJoin(String table, String condition) {
|
||||||
|
String query = "select " + listOfFields +
|
||||||
|
" from " + name + " straight_join " + table + " " + condition;
|
||||||
|
return new Cursor(this, session, 1, query);
|
||||||
|
}
|
||||||
|
|
||||||
/** Select records from database table according to search condition
|
/** Select records from database table according to search condition
|
||||||
*
|
*
|
||||||
* @param condition valid SQL condition expression started with WHERE
|
* @param condition valid SQL condition expression started with WHERE
|
||||||
|
|||||||
Reference in New Issue
Block a user