9192939495969798
" PRIMARY KEY (hash)", ") CCSID UNICODE" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException resetting table '"+TableDescNodes.name()+"'",ex) ; } }
109110111112113114115116
" PRIMARY KEY (prefix)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException resetting table '"+TablePrefixes.name()+"'",ex) ; } }
121122123124125126127
{ try { //Truncate doesnt work for db2 - have to do kludgy delete from connection().exec("DELETE FROM "+tableName) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException truncating table: "+tableName,ex) ; } }
61626364656667
" o int NOT NULL,", " PRIMARY KEY (s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; } }
949596979899100
" o int NOT NULL,", " PRIMARY KEY (g, s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; } }
115116117118119120121122
")" )) ; connection().exec("CREATE UNIQUE INDEX Hash ON " + TableDescNodes.name() + " (hash)"); } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescNodes.name()+"'",ex) ; } }
7980818283848586878889
res.next() ; long result = res.getLong(1) ; return result ; } catch (SQLException e) { throw new SDBExceptionSQL("Failed to get graph size", e) ; } finally { RS.close(rsx) ; } }
5960616263646566
" PRIMARY KEY (s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; } }
7980818283848586
" PRIMARY KEY (g, s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescQuads.name()+"'",ex) ; } }
112113114115116117118119
" PRIMARY KEY (hash)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException resetting table '"+TableDescNodes.name()+"'",ex) ; } }