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