new ArtifactMetadataModel.KeyBuilder().withRepositoryId( repositoryId ).withNamespace( namespace ).withId(
id ).withProjectVersion( version ).withProject( project ).build();
-
- Keyspace keyspace = cassandraArchivaManager.getKeyspace();
-
this.artifactMetadataTemplate.deleteRow( key );
key =
this.projectVersionMetadataModelTemplate.deleteRow( key );
+
}
@Override
.addEqualsExpression( "projectVersion", projectVersion ) //
.execute();
+ if (result.get() == null || result.get().getCount() < 1)
+ {
+ return Collections.emptyList();
+ }
+
List<ArtifactMetadata> artifactMetadatas = new ArrayList<ArtifactMetadata>( result.get().getCount() );
- LongSerializer ls = LongSerializer.get();
+
for ( Row<String, String, String> row : result.get() )
{