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.

Inherited Properties

participants

abstract val participants: List<AbstractParty>

A participant is any party that should be notified when the state is created or consumed.

Functions

generateMappedObject

abstract fun generateMappedObject(schema: MappedSchema): PersistentState

Export a representation for the given schema.

supportedSchemas

abstract fun supportedSchemas(): Iterable<MappedSchema>

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

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.

hash

fun ContractState.hash(): SecureHash

Returns the SHA-256 hash of the serialised contents of this state (not cached!)

fun ContractState.hash(algorithm: String): SecureHash

Returns the hash of the serialised contents of this state (not cached!)

Inheritors

State

data class State : OwnableState, QueryableState

State

data class State : FungibleAsset<Currency>, QueryableState

A state representing a cash claim against some party.