A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
need to query on list of map object
Joined: Jun 26, 2008
Feb 14, 2011 00:21:46
hi all i have a List<Map<
its a list of map.
each map consists column name as key and row value as value.
my question is :
can i query on this list.
i need to find our the row for which i will pass some parameters.
i have option to change List<Map<String,String>>> to any collection type also.
SCWCD, SCJP 5
Jesper de Jong
Joined: Aug 16, 2005
Feb 14, 2011 01:26:06
You can just loop through the list, and inside that loop check if the map contains what you're looking for.
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 8 API documentation
subject: need to query on list of map object
need to get column names in resultant table of sql query
is object a list of string or only a string?
How to retrieve metadata in ibatis
generics and maps
How to copy a SQL result into a Map
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015