Code example for SQLException

Methods: printStackTrace

0
			initialValues.put(KEY_ADDRESS, address);
			initialValues.put(KEY_PORT, port);
			initialValues.put(KEY_SSL, useSSL ? 1:0);
			db.insert(CORE_TABLE, null, initialValues);
		} catch(SQLException e) {
			e.printStackTrace();
		} 
	} 
 
 
	public void deleteCore(long rowId) {
		db.delete(CORE_TABLE, KEY_ID + "=" + rowId, null);
	} 
 
	public boolean hasCores() { 
		Cursor c = db.query(CORE_TABLE, new String[] {KEY_ID,KEY_NAME}, null, null, null, null, null);
		boolean hasCores;
		if (c != null && c.getCount()>0) {
			hasCores = true;
		}else{ 
			hasCores = false;