use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.
the class BindDummyDataSource method instance.
/**
* <p>Retrieve instance.</p>
*/
public static BindDummyDataSource instance() {
BindDummyDataSource result = instance;
if (result == null) {
synchronized (mutex) {
result = instance;
if (result == null) {
DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
instance = result = new BindDummyDataSource(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 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;
}
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;
}
use of com.abubusoft.kripton.android.sqlite.DataSourceOptions in project kripton by xcesco.
the class BindPerson1DataSource method instance.
/**
* <p>Retrieve instance.</p>
*/
public static BindPerson1DataSource instance() {
BindPerson1DataSource result = instance;
if (result == null) {
synchronized (mutex) {
result = instance;
if (result == null) {
DataSourceOptions options = DataSourceOptions.builder().inMemory(false).log(true).build();
instance = result = new BindPerson1DataSource(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;
}
Aggregations