From 0c76b61f7c0873567507a705726cf86b58e0e59e Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 22 Oct 2014 21:56:32 -0400 Subject: Documentation --- src/site/jaqu_comparison.mkd | 4 +++- src/site/usage.mkd | 24 ++++++------------------ 2 files changed, 9 insertions(+), 19 deletions(-) (limited to 'src/site') diff --git a/src/site/jaqu_comparison.mkd b/src/site/jaqu_comparison.mkd index 3b060e5..b37addb 100644 --- a/src/site/jaqu_comparison.mkd +++ b/src/site/jaqu_comparison.mkd @@ -18,6 +18,8 @@ This is an overview of the fundamental differences between the original JaQu pro dynamic queriesmethods and where clauses for dynamic queries that build iciql objects-- DROPsyntax to drop a table or view BETWEENsyntax for specifying a BETWEEN x AND y clause-- +(NOT) INsyntax (oneOf, noneOf) for specifying a (NOT) IN clause-- +compound nested conditionsWHERE (x = y OR x = z) AND (y = a OR y = b)-- types primitivesfully supported-- enumsfully supported-- @@ -29,4 +31,4 @@ This is an overview of the fundamental differences between the original JaQu pro DEFAULT valuesset from annotation, default object values, or Define.defaultValue()set from annotations Interface Configuration
Mapped Fieldsall fields are mapped regardless of scope
fields are ignored by annotating with @IQIgnoreall public fields are mapped
fields are ignored by reducing their scope Index namescan be set-- - \ No newline at end of file + diff --git a/src/site/usage.mkd b/src/site/usage.mkd index b09f91b..21c262e 100644 --- a/src/site/usage.mkd +++ b/src/site/usage.mkd @@ -82,25 +82,13 @@ final Customer model = new Customer(); // AND ( // region = 'LA' OR region = 'CA' // ) -List regionals = - db.from(model) - .where(model.customerId).isNotNull() - .and(model.region).isNotNull() - .and(new Or(db, model) {{ - or(model.region).is("LA"); - or(model.region).is("CA"); - }}); - -List regionalType1s = - db.from(model) - .where(new And(db, model) {{ - and(model.type).is(1); - and(new Or(db, model) {{ - or(model.region).is("CA"); - or(model.region).is("LA"); +List regionals = db.from(model) + .where(model.customerId).isNotNull() + .and(model.region).isNotNull() + .and(new Or(db, model) {{ + or(model.region).is("LA"); + or(model.region).is("CA"); }}); - }}); - ---JAVA--- ### Finding Matches for a List of Values -- cgit v1.2.3