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:
mdb
2005-07-07 23:17:30 +00:00
parent 0525ca17e9
commit fa150109b7
@@ -173,6 +173,14 @@ public class Table {
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
*
* @param condition valid SQL condition expression started with WHERE