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