@Override public String getValue(RecordId recordId) { return recordId.toString(); } }
public ConcurrentRecordUpdateException(RecordId recordId) { this.recordId = recordId != null ? recordId.toString() : null; }
public InvalidRecordException(String info, RecordId recordId) { this.recordId = recordId != null ? recordId.toString() : null; this.info = info; }
public VersionNotFoundException(RecordId recordId, long version) { this.recordId = recordId != null ? recordId.toString() : null; this.version = version; }
public RecordExistsException(RecordId recordId) { this.recordId = recordId != null ? recordId.toString() : null; }
public List<String> convert(Set<RecordId> recordIds) { List<String> avroRecordIds = new ArrayList<String>(recordIds.size()); for (RecordId recordId : recordIds) { avroRecordIds.add(recordId.toString()); } return avroRecordIds; }
@Override public String getValue(RecordId recordId) { return recordId.getMaster().toString(); } }
protected String toString(VariantRecordId variantRecordId) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(variantRecordId.getMaster().toString()); stringBuilder.append("."); boolean first = true; for (Map.Entry<String, String> entry : variantRecordId.getVariantProperties().entrySet()) { if (first) { first = false; } else { stringBuilder.append(","); } stringBuilder.append(escapeReservedCharacters(entry.getKey())).append('=') .append(escapeReservedCharacters(entry.getValue())); } return stringBuilder.toString(); }
public RecordNotFoundException(RecordId recordId, LTable table, LRepository repository) { this.recordId = recordId != null ? recordId.toString() : null; this.tableName = table != null ? table.getTableName() : null; this.repositoryName = repository != null ? repository.getRepositoryName() : null; }
builder.append(masterRecordId.toString());
@Override public ObjectNode toJson(RecordIdPrefixFilter filter, Namespaces namespaces, LRepository repository, RecordFilterJsonConverter<RecordFilter> converter) throws RepositoryException, InterruptedException { ObjectNode node = JsonFormat.OBJECT_MAPPER.createObjectNode(); if (filter.getRecordId() != null) { node.put("recordId", filter.getRecordId().toString()); } return node; }
@Override public ObjectNode toJson(RecordVariantFilter filter, Namespaces namespaces, LRepository repository, RecordFilterJsonConverter<RecordFilter> converter) throws RepositoryException, InterruptedException { ObjectNode node = JsonFormat.OBJECT_MAPPER.createObjectNode(); if (filter.getMasterRecordId() != null) { node.put("recordId", filter.getMasterRecordId().toString()); final ObjectNode variantProperties = JsonFormat.OBJECT_MAPPER.createObjectNode(); for (Map.Entry<String, String> variantProperty : filter.getVariantProperties().entrySet()) { variantProperties.put(variantProperty.getKey(), variantProperty.getValue()); } node.put("variantProperties", variantProperties); } return node; }
public SolrInputDocument build() throws InterruptedException, RepositoryException { solrDoc.setField("lily.id", recordId.toString()); solrDoc.setField("lily.table", table); solrDoc.setField("lily.key", key); solrDoc.setField("lily.vtagId", vtag.toString()); solrDoc.setField("lily.vtag", typeManager.getFieldTypeById(vtag).getName().getName()); solrDoc.setField("lily.version", version); return solrDoc; }
recordNode.put("id", record.getId().toString());
importListener.created(EntityType.RECORD, null, record.getId().toString()); break; case UP_TO_DATE: importListener.existsAndEqual(EntityType.RECORD, null, record.getId().toString()); break; case UPDATED: importListener.updated(EntityType.RECORD, null, record.getId().toString(), record.getVersion()); break; case CANNOT_CREATE_EXISTS: