Code example for SQLiteStatement

Methods: bindDouble, bindString, executeInsert

	 * @param longitude The longitude of the locale (double) 
	 * @param description The description of the locale. To be shown to the user. 
	 * @return 
	public long insertLocale(String name, double latitude, double longitude, String description, int icLauncher){
		this.insertStmt.bindString(1, name);
		this.insertStmt.bindDouble(2, latitude);
		this.insertStmt.bindDouble(3, longitude);
		this.insertStmt.bindString(4, description);
		this.insertStmt.bindDouble(5, icLauncher);
		return this.insertStmt.executeInsert();
	 * Remove a locale from the database, based on its row ID 
	 * @param rowId the id of the locale 
	public void delete(int rowId){
		database.delete(MySQLiteHelper.TABLE_NAME, MySQLiteHelper.COLUMN_ID + "=" + rowId, null);