app/src/main/java/com/yahala/SQLite/MessagesDao.java
/**
     * Creates the underlying database table.
     */
Creates the underlying database table.
Creates the underlying database table .
public static void createTable(SQLiteDatabase db, boolean ifNotExists) {
        String constraint = ifNotExists ? "IF NOT EXISTS " : "";
        db.execSQL("CREATE TABLE " + constraint + "'MESSAGES' (" + 
                "'mid' INTEGER PRIMARY KEY AUTOINCREMENT ," +  0: id
                "'JID' TEXT," +  1: jid
                "'MESSAGE' TEXT," +  2: message
                "'READ_STATE' INTEGER," +  3: read_state
                "'SEND_STATE' INTEGER," +  4: send_state
                "'DATE' INTEGER," +  5: date
                "'OUT' INTEGER," +  6: out
                "'TYPE' INTEGER," +  7: type
                "'TTL' INTEGER," +  8: ttl
                "'DATA' BLOB);");  9: data
    }
public static void createTable ( SQLiteDatabase db , boolean ifNotExists ) { String constraint = ifNotExists ? "IF NOT EXISTS " : "" ; db . execSQL ( "CREATE TABLE " + constraint + "'MESSAGES' (" + "'mid' INTEGER PRIMARY KEY AUTOINCREMENT ," + "'JID' TEXT," + "'MESSAGE' TEXT," + "'READ_STATE' INTEGER," + "'SEND_STATE' INTEGER," + "'DATE' INTEGER," + "'OUT' INTEGER," + "'TYPE' INTEGER," + "'TTL' INTEGER," + "'DATA' BLOB);" ) ; }
Creates the underlying database table.
Creates the underlying database table .
// // 0: id // 1: jid // 2: message // 3: read_state // 4: send_state // 5: date // 6: out // 7: type // 8: ttl // 9: data