package com.koustuvsinha.benchmarker.utils;

import com.koustuvsinha.benchmarker.models.DbFactoryModel;

import java.util.ArrayList;

/**
 * Created by koustuv on 24/5/15.
 */
public class Constants {

    public final static ArrayList<DbFactoryModel> DB_LIST = new ArrayList<DbFactoryModel>() {{
        add(new DbFactoryModel("Realm","v0.83.3","Realm",true));
        add(new DbFactoryModel("ORM Lite Android","v4.48","ORM Lite",true));
        add(new DbFactoryModel("Sugar ORM","v1.4","Satya Narayan",true));
        add(new DbFactoryModel("Green DAO","v1.3","Green DAO",true));
        add(new DbFactoryModel("Active Android","v3.0","Michael Pardo",true));
        add(new DbFactoryModel("Android SQLite","v1.0","Android",true));
    }};

    public final static String APP_NAME = "Benchmarker";

    public final static int DB_TYPE_REALM = 0;
    public final static int DB_TYPE_ORMLITE = 1;
    public final static int DB_TYPE_SUGARORM = 2;
    public final static int DB_TYPE_GREENDAO = 3;
    public final static int DB_TYPE_ACTIVEANDROID = 4;
    public final static int DB_TYPE_DEFAULT = 5;

    public final static String DB_TYPE = "dbType";

    public final static String DB_TEST_SERVICE = "db_performance_testing_service";
    public final static String DB_NUM_RECORDS = "numRecords";
    public final static int DB_DEFAULT_RECORDS = 10;

    public final static String RECEIVE_STATUS = "RecieveStatus";
    public final static String RECEIVE_MSG = "ReceiveMsg";
    public final static String RECEIVE_RESULT = "ReceiveResult";

    public final static int RECEIVE_STATUS_MSG = 101;
    public final static int RECEIVE_INSERT_TIME = 102;
    public final static int RECEIVE_READ_TIME = 103;
    public final static int RECEIVE_UPDATE_TIME = 104;
    public final static int RECEIVE_DELETE_TIME = 105;
    public final static int TESTING_START = 111;
    public final static int TESTING_END = 112;

    public final static String RECEIVER_INTENT = "receiver";

    public final static int DB_MODE_READ = 113;
    public final static int DB_MODE_WRITE = 114;

    public final static String[] TEST_LIMIT = {"1000", "10000", "100000" };
    public final static int[] TEST_LIMIT_VAL = {1000,10000,100000};
    public final static String TEST_LIMIT_SELECTED = "selectedTestLimit";

    public final static int PERCENT_TOTAL = 24;
    public final static int PERCENT_STATUS = 120;

    public final static String SELECTED_DB_TEST = "selectedDb";
}

@@ -326,31 +326,175 @@
 el(%22
-Realm%22,%22v0.83.3%22,%22Realm
+Android SQLite%22,%22v1.0%22,%22Android%22,true));%0A        add(new DbFactoryModel(%22Realm%22,%22v0.83.3%22,%22Realm%22,true));%0A        add(new DbFactoryModel(%22SnappyDB%22,%22v0.1.0%22,%22nhachicha
 %22,tr
@@ -835,39 +835,34 @@
 el(%22
-Android SQLite
+DBFlow
 %22,%22v
-1
+2.0
 .0%22,%22
-Android
+Raizlabs
 %22,tr
@@ -974,17 +974,114 @@
 YPE_
-REALM = 0
+DEFAULT = 0;%0A    public final static int DB_TYPE_REALM = 1;%0A    public final static int DB_TYPE_SNAPPY = 2
 ;%0A  
@@ -1124,17 +1124,17 @@
 MLITE = 
-1
+3
 ;%0A    pu
@@ -1174,17 +1174,17 @@
 ARORM = 
-2
+4
 ;%0A    pu
@@ -1224,17 +1224,17 @@
 ENDAO = 
-3
+5
 ;%0A    pu
@@ -1279,17 +1279,17 @@
 DROID = 
-4
+6
 ;%0A    pu
@@ -1323,18 +1323,17 @@
 PE_D
-EFAULT = 5
+BFLOW = 7
 ;%0A%0A 

Add new db names as per #14