@Test( expected = NullPointerException.class ) public void deleteParamContext() throws ConnectionException { logEntryStrategy.delete( null, new SimpleId( "test" ), UUIDGenerator.newTimeUUID() ); }
@Override public MutationBatch delete( final ApplicationScope context, final Id entityId, final UUID version ) { Preconditions.checkNotNull( context, "context is required" ); Preconditions.checkNotNull( entityId, "entityId is required" ); Preconditions.checkNotNull( version, "version context is required" ); return doWrite( context, entityId, version, colMutation -> colMutation.deleteColumn( version ) ); }
MvccLogEntrySerializationStrategyImpl implements MvccLogEntrySerializationStrategy { @Override public MutationBatch delete( final ApplicationScope context, final Id entityId, final UUID version ) { Preconditions.checkNotNull( context, "context is required" ); Preconditions.checkNotNull( entityId, "entityId is required" ); Preconditions.checkNotNull( version, "version context is required" ); return doWrite( context, entityId, version, colMutation -> colMutation.deleteColumn( version ) ); } }
MvccLogEntrySerializationStrategyImpl implements MvccLogEntrySerializationStrategy { @Override public MutationBatch delete( final ApplicationScope context, final Id entityId, final UUID version ) { Preconditions.checkNotNull( context, "context is required" ); Preconditions.checkNotNull( entityId, "entityId is required" ); Preconditions.checkNotNull( version, "version context is required" ); return doWrite( context, entityId, version, colMutation -> colMutation.deleteColumn( version ) ); } MvccLogEntrySerializationStrategyImpl( final Keyspace keyspace, final SerializationFig fig ); }
MvccLogEntrySerializationStrategyImpl implements MvccLogEntrySerializationStrategy { @Override public MutationBatch delete( final ApplicationScope context, final Id entityId, final UUID version ) { Preconditions.checkNotNull( context, "context is required" ); Preconditions.checkNotNull( entityId, "entityId is required" ); Preconditions.checkNotNull( version, "version context is required" ); return doWrite( context, entityId, version, colMutation -> colMutation.deleteColumn( version ) ); } MvccLogEntrySerializationStrategyImpl( final Keyspace keyspace, final SerializationFig fig ); @Override MutationBatch write( final ApplicationScope collectionScope, final MvccLogEntry entry ); @Override VersionSet load( final ApplicationScope collectionScope, final Collection<Id> entityIds,
                            final UUID maxVersion ); @Override List<MvccLogEntry> load( final ApplicationScope collectionScope, final Id entityId, final UUID version,
                                    final int maxSize ); @Override List<MvccLogEntry> loadReversed( final ApplicationScope applicationScope, final Id entityId,
                                            final UUID minVersion, final int maxSize ); @Override MutationBatch delete( final ApplicationScope context, final Id entityId, final UUID version ); }
MvccLogEntrySerializationStrategyImpl implements MvccLogEntrySerializationStrategy { @Override public MutationBatch delete( final ApplicationScope context, final Id entityId, final UUID version ) { Preconditions.checkNotNull( context, "context is required" ); Preconditions.checkNotNull( entityId, "entityId is required" ); Preconditions.checkNotNull( version, "version context is required" ); return doWrite( context, entityId, version, colMutation -> colMutation.deleteColumn( version ) ); } MvccLogEntrySerializationStrategyImpl( final Keyspace keyspace, final SerializationFig fig ); @Override MutationBatch write( final ApplicationScope collectionScope, final MvccLogEntry entry ); @Override VersionSet load( final ApplicationScope collectionScope, final Collection<Id> entityIds,
                            final UUID maxVersion ); @Override List<MvccLogEntry> load( final ApplicationScope collectionScope, final Id entityId, final UUID version,
                                    final int maxSize ); @Override List<MvccLogEntry> loadReversed( final ApplicationScope applicationScope, final Id entityId,
                                            final UUID minVersion, final int maxSize ); @Override MutationBatch delete( final ApplicationScope context, final Id entityId, final UUID version );  }