//(sqp.getUpdateList() +" VR tabffff234 " + h);
Enumeration en = h.keys();
String rid = null;
Vector ul = sqp.getUpdateList();//null;
NameValue nv = null;
Row ur = null;
updatedRowsCount = 0;
while (en.hasMoreElements())
{
rid = en.nextElement().toString();
ur = (Row)h.get(rid);
//ul = sqp.getUpdateList();
for (int ct = 0; ct < ul.size();ct++)
{
nv = (NameValue)ul.elementAt(ct);
//gappe.updateTableValue(, sqp.getTable(),nv.name,nv.value.toString(),rid);
ur.put(nv.name,sqp.convert(nv.value,nv.name));
}
gappe.updateTableValue( sqp.getTable(),ur,sqp);
updatedRowsCount ++;
}
}
else if (sqp.getAction().equals("delete"))
{
TableInfo tp = Gateway.get(connection.getProperties()).readTableInfo(sqp.getTable());
if (tp == null || tp.size() < 1)
throw JGException.get("table_not_exist","Table does not exists! " + sqp.getTable());
//SQLCriteria:realm_username=ruser2]:[]
Vector vil = sqp.getIncludeAllList() ;
Criteria cr = null;
for (int ctvil = 0; ctvil < vil.size(); ctvil++)
{
cr = (Criteria)vil.elementAt(ctvil);
if (tp.getColumnInfo(cr.getName()) == null)
throw JGException.get("column_not_exist","Column does not exists! " + cr.getName());
}
Hashtable h = Gateway.get(connection.getProperties()).readTableValue(sqp.getTable(),sqp.getIncludeAllList(),sqp.getSelectList(),sqp.getEitherOrAllList(),sqp.isDistinct(),sqp);
if (h == null) return true;
Vector r = new EZArrayList(h.elements());
Enumeration en = h.keys();
String rid = null;
Vector ul = null;
NameValue nv = null;
Row row = null;
updatedRowsCount = 0;
while (en.hasMoreElements())
{
rid = en.nextElement().toString();