Set and pass through a 'like' boolean which is used to determin if we want

to build queries using 'like' or '='


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1210 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
eric
2003-08-28 20:08:21 +00:00
parent 4e7004b847
commit 6e47578d8f
@@ -221,16 +221,17 @@ public class Cursor {
} }
protected Cursor(Table table, Session session, int nTables, protected Cursor(Table table, Session session, int nTables,
Object obj, FieldMask mask) { Object obj, FieldMask mask, boolean like) {
if (session == null) { if (session == null) {
session = ((SessionThread)Thread.currentThread()).session; session = ((SessionThread)Thread.currentThread()).session;
} }
this.table = table; this.table = table;
this.session = session; this.session = session;
this.nTables = nTables; this.nTables = nTables;
this.like = like;
qbeObject = obj; qbeObject = obj;
qbeMask = mask; qbeMask = mask;
query = table.buildQueryList(obj, mask); query = table.buildQueryList(obj, mask, like);
stmt = null; stmt = null;
} }
@@ -243,5 +244,6 @@ public class Cursor {
private Object currObject; private Object currObject;
private Object qbeObject; private Object qbeObject;
private FieldMask qbeMask; private FieldMask qbeMask;
private boolean like;
} }