QueryCriteria.VaultCustomQueryCriteria - corda

corda / net.corda.core.node.services.vault / QueryCriteria / VaultCustomQueryCriteria

# VaultCustomQueryCriteria

`data class VaultCustomQueryCriteria<L : StatePersistable> : CommonQueryCriteria`

VaultCustomQueryCriteria: provides query by custom attributes defined in a contracts QueryableState implementation. (see Persistence documentation for more information)

Params expression refers to a (composable) type safe CriteriaExpression

### Constructors

#### <init> | `VaultCustomQueryCriteria(expression: CriteriaExpression<L, Boolean>, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)` VaultCustomQueryCriteria: provides query by custom attributes defined in a contracts QueryableState implementation. (see Persistence documentation for more information) `VaultCustomQueryCriteria(expression: CriteriaExpression<L, Boolean>, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL)`

### Properties

#### contractStateTypes | `val contractStateTypes: Set<Class<out ContractState>>?`
#### expression | `val expression: CriteriaExpression<L, Boolean>`
#### relevancyStatus | `val relevancyStatus: RelevancyStatus`
#### status | `val status: StateStatus`

### Functions

#### copy | `fun copy(expression: CriteriaExpression<L, Boolean> = this.expression, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes): VaultCustomQueryCriteria<L>`
#### visit | `fun visit(parser: IQueryCriteriaParser): Collection<Predicate>`
#### withContractStateTypes | `fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): VaultCustomQueryCriteria<L>`
#### withExpression | `fun withExpression(expression: CriteriaExpression<L, Boolean>): VaultCustomQueryCriteria<L>`
#### withRelevancyStatus | `fun withRelevancyStatus(relevancyStatus: RelevancyStatus): VaultCustomQueryCriteria<L>`
#### withStatus | `fun withStatus(status: StateStatus): VaultCustomQueryCriteria<L>`