Search in sources :

Example 1 with DataSourceOptions

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

the class BindKripton180RawDataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindKripton180RawDataSource instance() {
    BindKripton180RawDataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindKripton180RawDataSource(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 2 with DataSourceOptions

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

the class BindDummy03DataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindDummy03DataSource instance() {
    BindDummy03DataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindDummy03DataSource(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 3 with DataSourceOptions

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

the class BindApp2DataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindApp2DataSource instance() {
    BindApp2DataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindApp2DataSource(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 4 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 5 with DataSourceOptions

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

the class BindBeanDataSource method instance.

/**
 * <p>Retrieve instance.</p>
 */
public static BindBeanDataSource instance() {
    BindBeanDataSource result = instance;
    if (result == null) {
        synchronized (mutex) {
            result = instance;
            if (result == null) {
                DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
                instance = result = new BindBeanDataSource(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