Android Open Source - android-orm-benchmark D B Config Util






From Project

Back to project page android-orm-benchmark.

License

The source code is released under:

Apache License

If you think the Android project android-orm-benchmark listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.littleinc.orm_benchmark.ormlite.config;
//from   w ww  .j  a v a 2  s .  c o  m
import com.j256.ormlite.android.apptools.OrmLiteConfigUtil;
import com.littleinc.orm_benchmark.ormlite.Message;
import com.littleinc.orm_benchmark.ormlite.User;

public class DBConfigUtil extends OrmLiteConfigUtil {

    private static final Class<?>[] sClasses = new Class[] { User.class,
            Message.class };

    /**
     * You must run this method to regenerate res/raw/ormlite_config.txt 
     * any time the database definitions are updated.
     * 
     * You need to update the Run Configuration for this class to set a
     * JRE, and remove the Android bootstrap entry. Instructions here:
     * http://ormlite.com/javadoc/ormlite-core/doc-files/ormlite_4.html
     * 
     * If you are adding a new ORM managed class you must add it to the
     * array of classes above.
     */
    public static void main(String[] args) throws Exception {
        writeConfigFile("ormlite_config.txt", sClasses);
    }
}




Java Source Code List

com.littleinc.orm_benchmark.Application.java
com.littleinc.orm_benchmark.BenchmarkExecutable.java
com.littleinc.orm_benchmark.MainActivity.java
com.littleinc.orm_benchmark.greendao.DaoMaster.java
com.littleinc.orm_benchmark.greendao.DaoSession.java
com.littleinc.orm_benchmark.greendao.DataBaseHelper.java
com.littleinc.orm_benchmark.greendao.Generator.java
com.littleinc.orm_benchmark.greendao.GreenDaoExecutor.java
com.littleinc.orm_benchmark.greendao.MessageDao.java
com.littleinc.orm_benchmark.greendao.Message.java
com.littleinc.orm_benchmark.greendao.UserDao.java
com.littleinc.orm_benchmark.greendao.User.java
com.littleinc.orm_benchmark.ormlite.Contact.java
com.littleinc.orm_benchmark.ormlite.DataBaseHelper.java
com.littleinc.orm_benchmark.ormlite.Message.java
com.littleinc.orm_benchmark.ormlite.ORMLiteExecutor.java
com.littleinc.orm_benchmark.ormlite.User.java
com.littleinc.orm_benchmark.ormlite.config.DBConfigUtil.java
com.littleinc.orm_benchmark.sqlite.DataBaseHelper.java
com.littleinc.orm_benchmark.sqlite.Message.java
com.littleinc.orm_benchmark.sqlite.SQLiteExecutor.java
com.littleinc.orm_benchmark.sqlite.User.java
com.littleinc.orm_benchmark.util.Util.java