corda / net.corda.finance.workflows.asset.selection / CashSelectionPostgreSQLImpl

CashSelectionPostgreSQLImpl

class CashSelectionPostgreSQLImpl : AbstractCashSelection

Constructors

<init>

CashSelectionPostgreSQLImpl()

Functions

executeQuery

A vendor specific query(ies) to gather Cash states that are available.

fun executeQuery(connection: Connection, amount: Amount<Currency>, lockId: UUID, notary: Party?, onlyFromIssuerParties: Set<AbstractParty>, withIssuerRefs: Set<OpaqueBytes>, withResultSet: (ResultSet) -> Boolean): Boolean

isCompatible

Upon dynamically loading configured Cash Selection algorithms declared in META-INF/services this method determines whether the loaded implementation is compatible and usable with the currently loaded JDBC driver. Note: the first loaded implementation to pass this check will be used at run-time.

fun isCompatible(metadata: DatabaseMetaData): Boolean

toString

fun toString(): String

Companion Object Properties

JDBC_DRIVER_NAME

const val JDBC_DRIVER_NAME: String