statement.execute("CREATE TABLE " + userTable + "(username VARCHAR(50) NOT NULL,"
+ "password VARCHAR(50) NOT NULL, admin SMALLINT, PRIMARY KEY(username))");
} catch (SQLException ex) {
if (!ex.getSQLState().equalsIgnoreCase("X0Y32")) {
Logger.getLogger(PersistenceManager.class.getName()).log(Level.SEVERE, null, ex);
throw new TableCreationException(ex.getMessage());
}
} finally {
this.close(statement);
}
}