/** * This effectively calls {@code getRole().name()}. * * @return data entities don't really have a name - they derive it from their roles. */ @Override public String getName() { return getRole().name(); }
@Override public String getName() { return getRole().name(); }
/** * This effectively calls {@code getRole().name()}. * * @return data entities don't really have a name - they derive it from their roles. */ @Override public String getName() { return getRole().name(); }
@Override public String getName() { return getRole().name(); }
@Override protected String getProposedId(Transaction<BE> tx, DataEntity.Blueprint<R> blueprint) { if (!dataRoleClass.equals(blueprint.getRole().getClass())) { throw new IllegalArgumentException("Invalid role/id. Admissible values for this data position are: " + Arrays.asList(dataRoleClass.getEnumConstants()).stream().map(DataRole::name)); } return blueprint.getRole().name(); }
public DataEntity(CanonicalPath owner, DataRole role, StructuredData value, String identityHash, String contentHash, String syncHash) { super(null, owner.extend(DataEntity.SEGMENT_TYPE, role.name()).get(), identityHash, contentHash, syncHash); this.value = value; }
public Blueprint(DR role, StructuredData value, Map<String, Object> properties, Map<String, Set<CanonicalPath>> outgoing, Map<String, Set<CanonicalPath>> incoming) { super(role.name(), properties, outgoing, incoming); if (value == null) { value = StructuredData.get().undefined(); } this.role = role; this.value = value; }
public Blueprint(DR role, StructuredData value, Map<String, Object> properties, Map<String, Set<CanonicalPath>> outgoing, Map<String, Set<CanonicalPath>> incoming) { super(role.name(), properties, outgoing, incoming); if (value == null) { value = StructuredData.get().undefined(); } this.role = role; this.value = value; }
public DataEntity(CanonicalPath owner, DataRole role, StructuredData value, String identityHash, String contentHash, String syncHash, Map<String, Object> properties) { super(owner.extend(DataEntity.SEGMENT_TYPE, role.name()).get(), identityHash, contentHash, syncHash, properties); this.value = value; }
public DataEntity(CanonicalPath owner, DataRole role, StructuredData value, Map<String, Object> properties) { super(owner.extend(DataEntity.SEGMENT_TYPE, role.name()).get(), properties); this.value = value; }
public DataEntity(CanonicalPath owner, DataRole role, StructuredData value) { super(null, owner.extend(DataEntity.SEGMENT_TYPE, role.name()).get()); this.value = value; }
private DataEntity.Blueprint<?> getData(RelativePath.Extender parentPath, DataRole dataRole) { Blueprint b = structure.get(parentPath.extend(SegmentType.d, dataRole.name()).get()); return b == null ? dummyDataBlueprint(dataRole) : (DataEntity.Blueprint<?>) b; }
@Override public Data.Single get(R role) throws EntityNotFoundException { return new Single<>(context.proceed().where(id(role.name())).get(), checks); } }
@Override public Data.Single get(R role) throws EntityNotFoundException { return new Single<>(context.proceed().where(id(role.name())).get(), checks); }