Search in sources :

Example 96 with DataSourceOptions

use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.

the class BindDummy01DataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindDummy01DataSource instance() {
    BindDummy01DataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindDummy01DataSource(options);
                SQLiteDatabase database = instance.openWritableDatabase();
                try {
                } catch (Throwable e) {
                    Logger.error(e.getMessage());
                    e.printStackTrace();
                } finally {
                    instance.close();
                }
            }
        }
    }
    return result;
}
Also used : SQLiteDatabase(android.database.sqlite.SQLiteDatabase) DataSourceOptions(com.abubusoft.kripton.android.sqlite.DataSourceOptions)

Example 97 with DataSourceOptions

use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.

the class BindDummy02DataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindDummy02DataSource instance() {
    BindDummy02DataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindDummy02DataSource(options);
                SQLiteDatabase database = instance.openWritableDatabase();
                try {
                } catch (Throwable e) {
                    Logger.error(e.getMessage());
                    e.printStackTrace();
                } finally {
                    instance.close();
                }
            }
        }
    }
    return result;
}
Also used : SQLiteDatabase(android.database.sqlite.SQLiteDatabase) DataSourceOptions(com.abubusoft.kripton.android.sqlite.DataSourceOptions)

Example 98 with DataSourceOptions

use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.

the class BindDummy04DataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindDummy04DataSource instance() {
    BindDummy04DataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindDummy04DataSource(options);
                SQLiteDatabase database = instance.openWritableDatabase();
                try {
                } catch (Throwable e) {
                    Logger.error(e.getMessage());
                    e.printStackTrace();
                } finally {
                    instance.close();
                }
            }
        }
    }
    return result;
}
Also used : SQLiteDatabase(android.database.sqlite.SQLiteDatabase) DataSourceOptions(com.abubusoft.kripton.android.sqlite.DataSourceOptions)

Example 99 with DataSourceOptions

use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.

the class BindPersonDataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindPersonDataSource instance() {
    BindPersonDataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindPersonDataSource(options);
                SQLiteDatabase database = instance.openWritableDatabase();
                try {
                } catch (Throwable e) {
                    Logger.error(e.getMessage());
                    e.printStackTrace();
                } finally {
                    instance.close();
                }
            }
        }
    }
    return result;
}
Also used : SQLiteDatabase(android.database.sqlite.SQLiteDatabase) DataSourceOptions(com.abubusoft.kripton.android.sqlite.DataSourceOptions)

Example 100 with DataSourceOptions

use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.

the class BindInsertBeanPersonDataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindInsertBeanPersonDataSource instance() {
    BindInsertBeanPersonDataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindInsertBeanPersonDataSource(options);
                SQLiteDatabase database = instance.openWritableDatabase();
                try {
                } catch (Throwable e) {
                    Logger.error(e.getMessage());
                    e.printStackTrace();
                } finally {
                    instance.close();
                }
            }
        }
    }
    return result;
}
Also used : SQLiteDatabase(android.database.sqlite.SQLiteDatabase) DataSourceOptions(com.abubusoft.kripton.android.sqlite.DataSourceOptions)

Aggregations

SQLiteDatabase (android.database.sqlite.SQLiteDatabase)117 DataSourceOptions (com.abubusoft.kripton.android.sqlite.DataSourceOptions)117