// How is ID generated?
try {
Statement st = DatabaseItem.dbConn.createStatement();
int rcnt = st.executeUpdate("INSERT INTO resource "
"(rid, name, type, size) VALUES (ridSeq.nextVal, "
+ n + ", " + t + ", " + s + ")");
if (rcnt == 1)
valid = true;
else
valid = false;
}
catch (Exception e) {
valid = false;
}