Exemple #1
0
        /// <summary>Inserts a ProposedOrder record using Metadata Parameters.</summary>
        /// <param name="parameters">Contains the metadata parameters.</param>
        public static void Update(ParameterList parameters)
        {
            // Extract the parameters from the command batch.
            AdoTransaction adoTransaction      = parameters["adoTransaction"];
            SqlTransaction sqlTransaction      = parameters["sqlTransaction"];
            long           rowVersion          = parameters["rowVersion"];
            int            proposedOrderId     = parameters["proposedOrderId"];
            object         blotterId           = parameters["blotterId"].Value;
            object         accountId           = parameters["accountId"].Value;
            object         securityId          = parameters["securityId"].Value;
            object         settlementId        = parameters["settlementId"].Value;
            object         brokerId            = parameters["brokerId"].Value;
            object         positionTypeCode    = parameters["positionTypeCode"].Value;
            object         transactionTypeCode = parameters["transactionTypeCode"].Value;
            object         timeInForceCode     = parameters["timeInForceCode"].Value;
            object         orderTypeCode       = parameters["orderTypeCode"].Value;
            object         conditionCode       = parameters["conditionCode"].Value;
            object         isAgency            = parameters["isAgency"].Value;
            object         quantity            = parameters["quantity"].Value;
            object         price1 = parameters["price1"].Value;
            object         price2 = parameters["price2"].Value;
            object         note   = parameters["note"].Value;

            // Call the internal method to complete the operation.
            ProposedOrder.Update(adoTransaction, sqlTransaction, ref rowVersion, proposedOrderId, blotterId, accountId, securityId, settlementId, brokerId, positionTypeCode, transactionTypeCode, timeInForceCode, orderTypeCode, conditionCode, isAgency, quantity, price1, price2, note);
            // Return values.
            parameters["rowVersion"] = rowVersion;
        }
 /// <summary>Collects the table lock request(s) for an Update operation</summary>
 /// <param name="adoTransaction">A list of locks required for this operation.</param>
 public static void Update(AdoTransaction adoTransaction)
 {
     // These table lock(s) are required for the 'Update' operation.
     adoTransaction.LockRequests.Add(new TableWriterRequest(ServerDataModel.TransactionType));
     Allocation.Update(adoTransaction);
     BlockOrder.Update(adoTransaction);
     ProposedOrder.Update(adoTransaction);
 }
Exemple #3
0
 /// <summary>Collects the table lock request(s) for an Update operation</summary>
 /// <param name="adoTransaction">A list of locks required for this operation.</param>
 internal static void UpdateChildren(AdoTransaction adoTransaction)
 {
     // These table lock(s) are required for the 'Update' operation.
     adoTransaction.LockRequests.Add(new TableWriterRequest(ServerDataModel.Security));
     Account.UpdateChildren(adoTransaction);
     Allocation.Update(adoTransaction);
     BlockOrder.Update(adoTransaction);
     BlotterMap.Update(adoTransaction);
     Debt.UpdateChildren(adoTransaction);
     Currency.UpdateChildren(adoTransaction);
     Equity.UpdateChildren(adoTransaction);
     Position.Update(adoTransaction);
     PositionTarget.Update(adoTransaction);
     Price.Update(adoTransaction);
     ProposedOrder.Update(adoTransaction);
     TaxLot.Update(adoTransaction);
     Violation.Update(adoTransaction);
 }