version 1.15, 2004/01/19 08:25:52
|
version 1.16, 2004/01/19 09:40:50
|
Line 393 class Convert
|
Line 393 class Convert
|
|
|
int size = bean.getColumnNames().size(); |
int size = bean.getColumnNames().size(); |
for (int i = 0; i < size - 1; ++i) |
for (int i = 0; i < size - 1; ++i) |
command.append(convertText((String)bean.getColumnNames().get(i))+" = ? ,"); |
command.append(beanDest.getQC()+convertText((String)bean.getColumnNames().get(i))+beanDest.getQC()+" = ? ,"); |
command.append(convertText((String)bean.getColumnNames().get(size-1))+" = ? "); |
command.append(convertText((String)bean.getColumnNames().get(size-1))+" = ? "); |
command.append("WHERE "+ids.get(tbIndex)+ " = ?"); |
command.append("WHERE "+convertText(ids.get(tbIndex).toString())+ " = ?"); |
PreparedStatement pstm = beanDest.getConnection().prepareStatement(command.toString()); |
PreparedStatement pstm = beanDest.getConnection().prepareStatement(command.toString()); |
System.out.println(command+" "+tbIndex); |
System.out.println(command+" "+tbIndex); |
int rowCount = bean.getRowCount(query); |
int rowCount = bean.getRowCount(query); |
Line 786 class Convert
|
Line 786 class Convert
|
{ |
{ |
alterMe.setCharAt(j, '_'); |
alterMe.setCharAt(j, '_'); |
|
|
|
} else if (alterMe.charAt(j) == '?') |
|
{ |
|
// changed ? to _ because of update statement |
|
alterMe.setCharAt(j,'_'); |
|
// length = length + 1; |
|
// j=j+1; |
|
System.out.println(alterMe); |
} |
} |
|
|
else if (alterMe.charAt(j) == '.') |
else if (alterMe.charAt(j) == '.') |
{ |
{ |
if(j==length-1) |
if(j==length-1) |