Search in sources :

Example 66 with DataSourceOptions

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

the class BindXenoDataSource method instance.

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

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

the class BindXenoDataSource method instance.

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

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

the class BindKripton180BeanInsertSelectDataSource method instance.

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

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

the class BindKripton180BeanDataSource method instance.

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

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

the class BindApp1DataSource method instance.

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