From 1f52f0a698278ac355178909d6a2bcebc1f547de Mon Sep 17 00:00:00 2001 From: Imran M Yousuf Date: Wed, 8 Sep 2010 05:18:55 +0600 Subject: [PATCH] Add support for nested type of query parameter In order to add support first add a namePrefix for all property names. Its done so that nested properties have a name prefix.propName format to lookup for FilterConfig. This should allow easier migration from DB DAOs. Signed-off-by: Imran M Yousuf --- .../dao/impl/hbase/CommonDao.java | 36 ++++++++++++++-------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/smart-hbase-dao/src/main/java/com/smartitengineering/dao/impl/hbase/CommonDao.java b/smart-hbase-dao/src/main/java/com/smartitengineering/dao/impl/hbase/CommonDao.java index 57d9b6b..83ed855 100644 --- a/smart-hbase-dao/src/main/java/com/smartitengineering/dao/impl/hbase/CommonDao.java +++ b/smart-hbase-dao/src/main/java/com/smartitengineering/dao/impl/hbase/CommonDao.java @@ -22,6 +22,7 @@ import com.smartitengineering.dao.common.CommonReadDao; import com.smartitengineering.dao.common.CommonWriteDao; import com.smartitengineering.dao.common.queryparam.BasicCompoundQueryParameter; import com.smartitengineering.dao.common.queryparam.BiOperandQueryParameter; +import com.smartitengineering.dao.common.queryparam.CompositionQueryParameter; import com.smartitengineering.dao.common.queryparam.MatchMode; import com.smartitengineering.dao.common.queryparam.OperatorType; import com.smartitengineering.dao.common.queryparam.ParameterType; @@ -53,6 +54,7 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.Future; import org.apache.commons.io.IOUtils; +import org.apache.commons.lang.StringUtils; import org.apache.hadoop.hbase.client.Delete; import org.apache.hadoop.hbase.client.Get; import org.apache.hadoop.hbase.client.HTableInterface; @@ -303,6 +305,10 @@ public class CommonDao