To get started with your first custom adapter for Lightning Connect, create two Apex classes:
one that extends the DataSource.Connection class, and one
that extends the DataSource.Provider class.
Let’s step through the code of a sample custom adapter.