public static class Vault.Page<T extends ContractState>
Returned in queries VaultService.queryBy and VaultService.trackBy.
A Page contains:
a List of actual class StateAndRef requested by the specified class QueryCriteria to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata, one per class StateAndRef result.
a total number of states that met the given class QueryCriteria if a class PageSpecification was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
A class StateRef pointing to the last state of the previous page. Use this to detect if the database has changed whilst loading pages
by checking it matches your last loaded state.
Note: currently otherResults is used only for aggregate functions (in which case, states and statesMetadata will be empty).
@JvmOverloads
public Page(@NotNull
java.util.List<? extends net.corda.core.contracts.StateAndRef<? extends T>> states,
@NotNull
java.util.List<net.corda.core.node.services.Vault.StateMetadata> statesMetadata,
long totalStatesAvailable,
@NotNull
net.corda.core.node.services.Vault.StateStatus stateTypes,
@NotNull
java.util.List<? extends java.lang.Object> otherResults,
@Nullable
StateRef previousPageAnchor)
Returned in queries VaultService.queryBy and VaultService.trackBy.
A Page contains:
a List of actual class StateAndRef requested by the specified class QueryCriteria to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata, one per class StateAndRef result.
a total number of states that met the given class QueryCriteria if a class PageSpecification was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
A class StateRef pointing to the last state of the previous page. Use this to detect if the database has changed whilst loading pages
by checking it matches your last loaded state.
Note: currently otherResults is used only for aggregate functions (in which case, states and statesMetadata will be empty).
@JvmOverloads
public Page(@NotNull
java.util.List<? extends net.corda.core.contracts.StateAndRef<? extends T>> states,
@NotNull
java.util.List<net.corda.core.node.services.Vault.StateMetadata> statesMetadata,
long totalStatesAvailable,
@NotNull
net.corda.core.node.services.Vault.StateStatus stateTypes,
@NotNull
java.util.List<? extends java.lang.Object> otherResults)
Returned in queries VaultService.queryBy and VaultService.trackBy.
A Page contains:
a List of actual class StateAndRef requested by the specified class QueryCriteria to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata, one per class StateAndRef result.
a total number of states that met the given class QueryCriteria if a class PageSpecification was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
A class StateRef pointing to the last state of the previous page. Use this to detect if the database has changed whilst loading pages
by checking it matches your last loaded state.
Note: currently otherResults is used only for aggregate functions (in which case, states and statesMetadata will be empty).
@NotNull
public net.corda.core.node.services.Vault.Page<T> copy(@NotNull
java.util.List<? extends net.corda.core.contracts.StateAndRef<? extends T>> states,
@NotNull
java.util.List<net.corda.core.node.services.Vault.StateMetadata> statesMetadata,
long totalStatesAvailable,
@NotNull
net.corda.core.node.services.Vault.StateStatus stateTypes,
@NotNull
java.util.List<? extends java.lang.Object> otherResults)
@NotNull public java.util.List<net.corda.core.contracts.StateAndRef> getStates()
@NotNull public java.util.List<net.corda.core.node.services.Vault.StateMetadata> getStatesMetadata()
public long getTotalStatesAvailable()
@NotNull public net.corda.core.node.services.Vault.StateStatus getStateTypes()
@NotNull public java.util.List<java.lang.Object> getOtherResults()
@Nullable public StateRef getPreviousPageAnchor()
@NotNull public java.util.List<net.corda.core.contracts.StateAndRef> component1()
@NotNull public java.util.List<net.corda.core.node.services.Vault.StateMetadata> component2()
public long component3()
@NotNull public net.corda.core.node.services.Vault.StateStatus component4()
@NotNull public java.util.List<java.lang.Object> component5()
@Nullable public StateRef component6()
@NotNull
public net.corda.core.node.services.Vault.Page<T> copy(@NotNull
java.util.List<? extends net.corda.core.contracts.StateAndRef<? extends T>> states,
@NotNull
java.util.List<net.corda.core.node.services.Vault.StateMetadata> statesMetadata,
long totalStatesAvailable,
@NotNull
net.corda.core.node.services.Vault.StateStatus stateTypes,
@NotNull
java.util.List<? extends java.lang.Object> otherResults,
@Nullable
StateRef previousPageAnchor)
Returned in queries VaultService.queryBy and VaultService.trackBy.
A Page contains:
a List of actual class StateAndRef requested by the specified class QueryCriteria to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata, one per class StateAndRef result.
a total number of states that met the given class QueryCriteria if a class PageSpecification was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
A class StateRef pointing to the last state of the previous page. Use this to detect if the database has changed whilst loading pages
by checking it matches your last loaded state.
Note: currently otherResults is used only for aggregate functions (in which case, states and statesMetadata will be empty).
@NotNull public java.lang.String toString()
Returned in queries VaultService.queryBy and VaultService.trackBy.
A Page contains:
a List of actual class StateAndRef requested by the specified class QueryCriteria to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata, one per class StateAndRef result.
a total number of states that met the given class QueryCriteria if a class PageSpecification was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
A class StateRef pointing to the last state of the previous page. Use this to detect if the database has changed whilst loading pages
by checking it matches your last loaded state.
Note: currently otherResults is used only for aggregate functions (in which case, states and statesMetadata will be empty).
public int hashCode()
Returned in queries VaultService.queryBy and VaultService.trackBy.
A Page contains:
a List of actual class StateAndRef requested by the specified class QueryCriteria to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata, one per class StateAndRef result.
a total number of states that met the given class QueryCriteria if a class PageSpecification was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
A class StateRef pointing to the last state of the previous page. Use this to detect if the database has changed whilst loading pages
by checking it matches your last loaded state.
Note: currently otherResults is used only for aggregate functions (in which case, states and statesMetadata will be empty).
public boolean equals(@Nullable
java.lang.Object p)
Returned in queries VaultService.queryBy and VaultService.trackBy.
A Page contains:
a List of actual class StateAndRef requested by the specified class QueryCriteria to a maximum of MAX_PAGE_SIZE.
a List of associated class Vault.StateMetadata, one per class StateAndRef result.
a total number of states that met the given class QueryCriteria if a class PageSpecification was provided,
otherwise it defaults to -1.
Status types used in this query: StateStatus.UNCONSUMED, StateStatus.CONSUMED, StateStatus.ALL.
Other results as a List of any type (eg. aggregate function results with/without group by).
A class StateRef pointing to the last state of the previous page. Use this to detect if the database has changed whilst loading pages
by checking it matches your last loaded state.
Note: currently otherResults is used only for aggregate functions (in which case, states and statesMetadata will be empty).