Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    private static final String TABLE_NAME = "item_filter";
    private static final String COLUMN_FILTER_ID = "filter_id";

    public static Integer deleteFilter(SQLiteDatabase db, Integer id) {
        return db.delete(TABLE_NAME, COLUMN_FILTER_ID + " = ? ", new String[] { Integer.toString(id) });
    }
}