Posts

Showing posts from January, 2018

Introduction to Apex

Image
What is Apex? Apex is an object-oriented programming language. Apex is an on-demand or a cloud computing language. In case of Java, you can have a local java runtime environment and you can execute your code on your own system that option does not exist for Apex. Apex only runs on Salesforce servers. It is very similar to Java or c# with respect to the syntax. It runs in a multi-tenant environment. Apex is case-insensitive. Apex is compiled and executed in the cloud. Apex is not a general-purpose programming language but is instead a proprietary language used for specific business logic functions.  Apex required unit testing for deployment into a production environment. It has an implicit connection to the database.

Relationships in salesforce ?

Image
A relationship is a bi-directional association between two objects. Types of relationship : -   →  Master-Detail   →  Lookup   →  Many-to-Many Master-Detail Relationship: A tightly coupled relationship between Master Object and Child Object . When a record of the master object is deleted, its related detail records are also deleted. The master-detail relationship field is required on the page layout of the detail record. Lookup Relationship : A loosely coupled relationship between  Master Object  and  Child Object . If we delete the master record then child record will not be deleted. 25 lookup relation relationships allowed per object. Many-to-Many Relationship : A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vise versa. To create a many-to-many relationship, simply create a custom junction object with two master-detail relationship fields, each linking to the objects you want

What is a Heap ?

Image
A heap is a tree with some special properties. The basic requirement of a heap is that the value of  a node must be greater than equal to  (or  less than equal to) to the values of its children. That is called  heap property . Additional property of heap – all leaves should be at h or h-1 ( where h is the height of the tree ) levels for some h>0 ( complete binary tree ). That means heap should form a  complete binary tree . Types of Heap :-     →  Min Heap : The value of a node must be less than or equal to the values                             of its children.     →  Max Heap : The value of a node must be greater than or equal to the                                  values of its children. Declaration of Heap :- public class Heap {       int[] array;       int capacity;       int count;       int Heap(int capacity); } Creating Heap :- public Heap(int capacity) {       this.count = 0;       this.capacity = capacity;       this.array = new int[capacity];

What is cloud computing ?

Image
“The cloud” is the delivery of on-demand computing resources – everything from applications to the data centers over the internet on a pay-for-use basic. Cloud computing is an information technology (IT) paradigm that enables ubiquitous(everywhere anytime) access to shared pools of configurable system resources. Services Models :- → Infrastructure as a service (IaaS) :- It refers to online services that provide high level APIs used to dereference various low-level details of underlying network infrastructure like location, data partition, backup etc. → Platform as a service (PaaS) :- It refers the capability provided to the consumers is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages, libraries, services, and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including network, servers

What is Salesforce.com (SFDC)?

Image
Salesforce.com  is an American cloud computing company. Now Salesforce.com is a number one on-demand CRM in the market. It runs on the force.com platform. SFDC was officially launched in  1999  and founded by  Marc Benioff . →  It is a cloud computing technology. →  You can develop your own applications. →  App Exchange is a marketplace to sell our custom applications and to buy the application from app exchange. →  Salesforce provides Iaas, Paas, Saas services. Technologies:- →  Salesforce works on MVC (Model View Controller) architecture. →  Apex. →  Visualforce. →  Lightning.