Ejemplo n.º 1
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.Blotter));
     Account.UpdateChildren(adoTransaction);
     BlotterMap.Update(adoTransaction);
     BlockOrder.Update(adoTransaction);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
        /// <summary>Inserts a BlotterMap 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            blotterMapId    = parameters["blotterMapId"];
            object         securityId      = parameters["securityId"].Value;
            object         blotterId       = parameters["blotterId"].Value;
            object         minimumQuantity = parameters["minimumQuantity"].Value;
            object         maximumQuantity = parameters["maximumQuantity"].Value;
            object         externalId0     = parameters["externalId0"].Value;
            object         externalId1     = parameters["externalId1"].Value;

            // Call the internal method to complete the operation.
            BlotterMap.Update(adoTransaction, sqlTransaction, ref rowVersion, blotterMapId, securityId, blotterId, minimumQuantity, maximumQuantity, externalId0, externalId1);
            // Return values.
            parameters["rowVersion"] = rowVersion;
        }