Apex Programming
摘要
Apex is a programming language developed by Salesforce specifically for building applications on the Salesforce platform. It shares similarities with Java in terms of syntax and structure, as it's influenced by Java. It is a strongly typed, case-insensitive, object-oriented language. As operate on multi-tenant environment, Apex can save your code against different versions. Apex is integrated with the database, which means it can access and manipulate records without the need to establish the database connection explicitly. You can write custom business logic by creating triggers and classes. Triggers are pieces of code that automatically execute when certain events occur, such as the insertion, update, or deletion of records. Apex classes can encapsulate complex logic that can be reused across multiple parts of your application. Apex supports single-line comments (//) and multi-line comments (/* */) to add explanatory notes or disable code temporarily.