public void insert(DbSession session, AnalysisPropertyDto analysisPropertyDto) { requireNonNull(analysisPropertyDto.getUuid(), "uuid cannot be null"); requireNonNull(analysisPropertyDto.getKey(), "key cannot be null"); requireNonNull(analysisPropertyDto.getSnapshotUuid(), "snapshot uuid cannot be null"); requireNonNull(analysisPropertyDto.getValue(), "value cannot be null"); String value = analysisPropertyDto.getValue(); long now = system2.now(); if (isEmpty(value)) { getMapper(session).insertAsEmpty(analysisPropertyDto, now); } else if (mustBeStoredInClob(value)) { getMapper(session).insertAsClob(analysisPropertyDto, now); } else { getMapper(session).insertAsText(analysisPropertyDto, now); } }
.setSnapshotUuid(underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue(underTest.getValue())); .setSnapshotUuid(underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue(underTest.getValue())); .setSnapshotUuid("1" + underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue(underTest.getValue())); .setSnapshotUuid(underTest.getSnapshotUuid()) .setKey("1" + underTest.getKey()) .setValue(underTest.getValue())); .setSnapshotUuid(underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue("1" + underTest.getValue()));
.setSnapshotUuid(underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue(underTest.getValue()) .hashCode()); .setSnapshotUuid(underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue(underTest.getValue()) .hashCode()); .setSnapshotUuid("1" + underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue(underTest.getValue()) .hashCode()); .setSnapshotUuid(underTest.getSnapshotUuid()) .setKey("1" + underTest.getKey()) .setValue(underTest.getValue()) .hashCode()); .setSnapshotUuid(underTest.getSnapshotUuid()) .setKey(underTest.getKey()) .setValue("1" + underTest.getValue()) .hashCode());