//.......
private boolean saveList(List<Map<LObj,FObj>> paraList )
{
Map<LObj,FObj> m = new HashMap<LObj,FObj>();
LObj keyLObj = new LObj();
FObj fObj = new FObj();
try {
for(int i = 0 ;i<paraList.size();i++)
{
m = paraList.get(i);
Set<Map.Entry<LObj, FObj>> set = m.entrySet();
Iterator<Entry<LObj, FObj>> it = set.iterator();
while(it.hasNext())
{
Map.Entry<LObj, FObj> entry = it.next();
keyLObj = entry.getKey();
fObj = entry.getValue();
System.out.println("key" + " "+ keyLObj + "\n"+"value" + " "+ fObj);
//用原有方法写入
fManager.insert(fObj,"", keyLObj);
}
}
}catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
//.......
for(Map.Entry<LObj, FObj> entry : map.entrySet())
{
keyLObj = entry.getKey();
fObj = entry.getValue();
System.out.println("key" + " "+ keyLObj + "\n"+"value" + " "+ fObj);
//用原有方法写入
fManager.insert(fObj,"", keyLObj);
}