QueryableState
Keywords: net.corda.core.schemas.QueryableState interface
Date: 2023-09-18

net.corda.core.schemas

## Interface QueryableState

- All Superinterfaces:
    ContractState
  All Known Implementing Classes:
    CommercialPaper.State, Cash.State

      public QueryableState
      extends ContractState

  A contract state that may be mapped to database schemas configured for this node to support querying for, or filtering of, states.

- - ### Constructor Detail

    - #### QueryableState

          public QueryableState()

  - ### Method Detail

    - #### supportedSchemas

          @NotNull
          java.lang.Iterable<net.corda.core.schemas.MappedSchema> supportedSchemas()

      Enumerate the schemas this state can export representations of itself as.

    - #### generateMappedObject

          @NotNull
          PersistentState generateMappedObject(@NotNull
                                                        MappedSchema schema)

      Export a representation for the given schema.