130131132133134135136137
" PRIMARY KEY (prefix)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException resetting table '"+TablePrefixes.name()+"'",ex) ; } }
141142143144145146147
{ try { if ( TableUtils.hasTable(connection().getSqlConnection(), tableName) ) connection().exec("DELETE FROM "+tableName) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException : Can't truncate table: "+tableName, ex) ; } }
312313314315316317318319320
if ( !hsqlDetech ) { try { isHSQL = getConnection().getSqlConnection().getMetaData().getDatabaseProductName().contains("HSQL") ; } catch (SQLException ex) { throw new SDBExceptionSQL(ex) ; } } return isHSQL ; }
5051525354555657
" PRIMARY KEY (s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; } }
7071727374757677
" PRIMARY KEY (g, s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescQuads.name()+"'",ex) ; } }
93949596979899100
")" )) ; connection().exec("CREATE UNIQUE INDEX Hash ON "+TableDescNodes.name()+" (hash)") ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescNodes.name()+"'",ex) ; } }
49505152535455
" o integer NOT NULL,", " PRIMARY KEY (s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; } }
67686970717273
" o integer NOT NULL,", " PRIMARY KEY (g, s, p, o)", ")" )) ; } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescTriples.name()+"'",ex) ; } }
8889909192939495
")" )) ; connection().exec("CREATE UNIQUE INDEX Hash ON " + TableDescNodes.name() + " (hash)"); } catch (SQLException ex) { throw new SDBExceptionSQL("SQLException formatting table '"+TableDescNodes.name()+"'",ex) ; } }
145146147148149150151152153154155
String v = rs.getString("uri") ; // Load in-memory copy. super.set(p, v) ; } } catch (SQLException ex) { throw new SDBExceptionSQL("Failed to get prefixes", ex) ; } finally { RS.close(rsx) ; } }