git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@7355 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7e94b59d68
commit
4774077590
|
@ -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("',");
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue