This commit is contained in:
Lucio Lelii 2008-12-02 10:43:01 +00:00
parent 7e94b59d68
commit 4774077590
2 changed files with 5 additions and 2 deletions

View File

@ -94,13 +94,12 @@ public class DBInterface {
for (List<String> row: values)
{
if (row==null) System.out.println("Why row is null ?? "+table);
insertQuery=new StringBuffer();
insertQuery.append("INSERT INTO ").append(table.toUpperCase()).append(" VALUES(");
try{
for(String value: row){
if (value==null) System.out.println("Why value is null ?? "+table);
insertQuery.append("'").append(value.replaceAll("'", " ")).append("',");
}

View File

@ -181,9 +181,13 @@ public class IStoDBUtil {
row.add(col.getID());
System.out.println(col.getID());
row.add(col.getName());
System.out.println(col.getDescription());
row.add(col.getDescription());
System.out.println(col.getNumberOfMembers()+"");
row.add(col.getNumberOfMembers()+"");
System.out.println(col.getCreationTime().getTime().getTime());
row.add(col.getCreationTime().getTime().getTime()+"");
System.out.println(col.getLastUpdateTime().getTime().getTime());
row.add(col.getLastUpdateTime().getTime().getTime()+"");
values.add(row);
}