This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class Driver { | |
Id id; | |
String name; | |
String email; | |
Integer numDuis; | |
List<DriverInfractions> driverHistory; | |
// constructor | |
Driver(String email) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- trigger on parent object | |
-- code | |
CREATE TRIGGER update_shadow_child_tr | |
AFTER UPDATE | |
ON salesforce.parent_object__c | |
FOR EACH ROW | |
EXECUTE PROCEDURE salesforce.update_shadow_child(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger AfterUpdateOpportunityLineItem on OpportunityLineItem (after insert, after update) { | |
if (Trigger.isAfter) { | |
// INSERT | |
if (Trigger.isInsert) { | |
List<String> oppLineItemIds = new List<String>(); | |
for (OpportunityLineItem o : Trigger.new) { | |
oppLineItemIds.add(o.Id); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Router = ReactRouter; | |
var RouteHandler = ReactRouter.RouteHandler; | |
var Route = ReactRouter.Route; | |
var DefaultRoute = ReactRouter.DefaultRoute; | |
var Nav = ReactBootstrap.Nav; | |
var NavItem = ReactBootstrap.NavItem; | |
var ListGroup = ReactBootstrap.ListGroup; | |
var NavItemLink = ReactRouterBootstrap.NavItemLink; | |
var ButtonLink = ReactRouterBootstrap.ButtonLink; | |
var ListGroupItemLink = ReactRouterBootstrap.ListGroupItemLink; |