194195196197198199200201
recordNewSchemaTimestamp(((SchemaNodeIdentifier)identifier).nodeID(), getGeneratedKey(insert)); } insert.close(); } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } }
232233234235236237238239
if(timestamp == -1) { recordNewSchemaTimestamp(id, getGeneratedKey(insert)); } insert.close(); } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } }
258259260261262263264265
pStmtUpdateNode.setInt(2, root.identifier().nodeID()); pStmtUpdateNode.execute(); pStmtUpdateNode.close(); return root.identifier(); } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } }
306307308309310311312313314315
insertGroupChildren((DocumentGroupNode)node, group, entryID); nodeIdentifier = group.identifier(); } } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } return nodeIdentifier; }
332333334335336337338339
pStmtUpdateTimestamp.setInt(2, timestamp); pStmtUpdateTimestamp.setInt(3, interval.start()); pStmtUpdateTimestamp.execute(); pStmtUpdateTimestamp.close(); } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } }
365366367368369370371372
} } else { writeTextNodes((RDBMSDatabaseAttributeNode)node.parent(), entryID); } } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } }
411412413414415416417418419
if (rs.next()) { int timestamp = rs.getInt(1); rs.close(); return timestamp; } else { throw new WikiFatalException("Unknown id: " + id); } }
470471472473474475476477
if (rs.next()) { int key = rs.getInt(1); rs.close(); return key; } else { throw new WikiFatalException("There are no generated keys."); } }
158159160161162163164165166167168
pStmtSelectContent.close(); pStmtSelectLabel.close(); pStmtSelectLastChange.close(); con.close(); } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } } sort(); }
211212213214215216217218219
System.out.println(i); rs.close(); stmt.close(); } catch (java.sql.SQLException sqlException) { throw new WikiFatalException(sqlException); } return nodeIndex.get(new Integer(identifier.nodeID())); }