build Delete Table Statement - Android Database

Android examples for Database:Table Drop

Description

build Delete Table Statement

Demo Code


import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.util.Log;

public class Main{
    public static String buildDeleteTableStatement(Class<?> clazz) {
        if (clazz == null) {
            return null;
        }//from  w w  w.  ja  va2 s  . com
        return "DROP TABLE IF EXISTS " + clazz.getSimpleName();
    }
}

Related Tutorials