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;
}
use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.
the class BindIntDataSource method instance.
/**
* <p>Retrieve instance.</p>
*/
public static BindIntDataSource instance() {
BindIntDataSource result = instance;
if (result == null) {
synchronized (mutex) {
result = instance;
if (result == null) {
DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
instance = result = new BindIntDataSource(options);
SQLiteDatabase database = instance.openWritableDatabase();
try {
} catch (Throwable e) {
Logger.error(e.getMessage());
e.printStackTrace();
} finally {
instance.close();
}
}
}
}
return result;
}
use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.
the class BindStringDataSource method instance.
/**
* <p>Retrieve instance.</p>
*/
public static BindStringDataSource instance() {
BindStringDataSource result = instance;
if (result == null) {
synchronized (mutex) {
result = instance;
if (result == null) {
DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
instance = result = new BindStringDataSource(options);
SQLiteDatabase database = instance.openWritableDatabase();
try {
} catch (Throwable e) {
Logger.error(e.getMessage());
e.printStackTrace();
} finally {
instance.close();
}
}
}
}
return result;
}
use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.
the class BindWhisperDataSource method instance.
/**
* <p>Retrieve instance.</p>
*/
public static BindWhisperDataSource instance() {
BindWhisperDataSource result = instance;
if (result == null) {
synchronized (mutex) {
result = instance;
if (result == null) {
DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
instance = result = new BindWhisperDataSource(options);
SQLiteDatabase database = instance.openWritableDatabase();
try {
} catch (Throwable e) {
Logger.error(e.getMessage());
e.printStackTrace();
} finally {
instance.close();
}
}
}
}
return result;
}
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;
}
Aggregations