Creating data sources
You need to create a data source so that users are able to retrieve data.
Before you begin
About this task
External data can originate from various locations or databases and can also be accessed in a number of different ways. For example, you can import data from a database, a file found on an FTP server, or data from your local file system. Each of these options requires specific configuration parameters to access the data. A data source encapsulates these parameters, and lets them be manipulated as a single named entity so that after the source details are set up it can be reused throughout the product.
Based on the business
or data integration requirement, data that is fed into Product Master is considered a data source. The following
descriptions relate to a data source design:
- The mechanism for how the data was fed into Product Master
- The mapping perspective for where the data is inserted into Product Master
- The types of data source; full data load or delta data load.
Procedure
Use any one of the following methods to create a data source: User interface, Java™ API, or script API.
Option | Description |
---|---|
User interface |
|
Java API |
Sample 1: The following sample Java API code creates
a data source to upload data by using a Web
browser.
Sample 2: The following sample Java API code creates
a data source to retrieve data by using
FTP.
|
Script API | Sample 1: The following sample script API creates a data source to upload data by
using a Web
browser. Sample
2: The following sample script API creates a data source to retrieve data by using
FTP.
|