Interface VaultNamedQueryTransformer

  • All Implemented Interfaces:

    
    public interface VaultNamedQueryTransformer<T, R>
    
                        

    Representation of a transformer function that will be applied to the result set returned by the named query. Null values returned from the transformation will be filtered out.

    Example usage:

    • Kotlin:
      
      class MyVaultNamedQueryTransformer : VaultNamedQueryTransformer<ContractState, MyPojo> {
      
          override fun transform(state: ContractState, parameters: Map<String, Any>): MyPojo {
              return MyPojo(1)
          }
      }
      
    • Java:
      
      public class MyVaultNamedQueryTransformer implements VaultNamedQueryTransformer<ContractState, MyPojo> {
      
          
          public MyPojo transform(ContractState state, Map<String, Object> parameters) {
              return new MyPojo(1);
          }
      }
      
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract R transform(@NotNull() T data, @NotNull() Map<String, Object> parameters)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait