public Record getRecord() { Record record = new Record(); if(this.id != null && this.id.trim().length() > 0) { record.setRecordId(this.id); } record.setValue("target", this.target); record.setValue("lastSync", this.lastSync); record.setValue("nextSync", this.nextSync); return record; }
public Record getRecord() { Record record = new Record(); if(this.id != null && this.id.trim().length() > 0) { record.setRecordId(this.id); } record.setValue("code", this.code); record.setValue("source", this.source); record.setValue("target", this.target); return record; }
public Record getRecord() { Record record = new Record(); if(this.id != null && this.id.trim().length()>0) { record.setRecordId(this.id); } record.setValue("storageId", this.nodeId); record.setValue("operation", this.operation); record.setValue("sync-recordId", this.recordId); return record; }
private void save(Context context,String message) throws Exception { Database database = Database.getInstance(context); //insert Record errorRecord = new Record(); errorRecord.setValue("message", message); database.insert(Database.system_errors, errorRecord); }
public Record getRecord() { Record record = new Record(); if(this.id != null && this.id.trim().length() > 0) { record.setRecordId(this.id); } record.setValue("source", this.source); record.setValue("target", this.target); record.setValue("guid", this.guid); record.setValue("luid", this.luid); return record; }
@Override public Uri insert(Uri uri, ContentValues contentValues) { try { Context context = this.getContext(); Database database = Database.getInstance(context); //insert Record errorRecord = new Record(); this.prepareRecord(errorRecord, contentValues); database.insert(Database.system_errors, errorRecord); return uri; } catch(Exception e) { throw new RuntimeException(e); } }
Record provisioningRecord = new Record(); this.prepareRecord(provisioningRecord);
Record insert = new Record(); this.prepareRecord(insert, contentValues); String id = Database.getInstance(context).insert(
Record provisioningRecord = new Record(); this.prepareRecord(provisioningRecord, contentValues); database.insert(Database.provisioning_table,
Record record = new Record(state); all.add(record); this.cache.put(from,record.getRecordId(),record);
database.insert(Database.provisioning_table, new Record());
record = new Record(state); this.cache.put(from,record.getRecordId(), record);
Record record = new Record(); record.setValue("container-status", status); database.insert(Database.config_table, record);
Record getRecord() Record record = new Record();
Record newRecord = new Record(); this.prepareToPersist(newRecord, reg); database.insert(Database.bus_registration, newRecord);
String recordId = contentValues.getAsString("recordId"); Record recordToBeUpdated = new Record(); this.prepareRecord(recordToBeUpdated, contentValues);
Record record = new Record(); record.setValue("fullname",fullName); record.setValue("photo", Base64.encodeBytes(bin));