QueryableState - corda

corda / net.corda.core.schemas / QueryableState

# QueryableState

`interface QueryableState : ContractState`

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

### Functions

#### generateMappedObject | Export a representation for the given schema. `abstract fun generateMappedObject(schema: MappedSchema): PersistentState`
#### supportedSchemas | Enumerate the schemas this state can export representations of itself as. `abstract fun supportedSchemas(): Iterable<MappedSchema>`

### Extension Functions

#### hash | Returns the SHA-256 hash of the serialised contents of this state (not cached!) `fun ContractState.hash(): SecureHash` Returns the hash of the serialised contents of this state (not cached!) `fun ContractState.hash(algorithm: String): SecureHash`