2022

Page tree
Skip to end of metadata
Go to start of metadata

Prerequisites

# Install Eclipse IDE for java development:

  1. Download DBSyc-sdk.zip from http://www.mydbsync.com/download/dbsync-sdk.zip.
  2. Unzip the dbsync-sdk.zip file into a location. It will create a folder called dbsync-sdk.
  3. Setup Eclipse for ApiCode Environment.
  4. Run the test class, DummyTest.java that is a JUnit class with test methods inside.
  5. You can view the results in the output window.

As you see in the results, it runs the Read operation First and then the Write operation. Since, in the filter, we are passing "Rajeev" as the parameter, it is printing the relevant output with Rajeev and the corresponding email associated with the record. In the Write operation, we are passing two input parameters: (1) samxx@avankia.com; and (2) rajyy@avankia.com. This is returning the Save Result array with 2 results. However, if you see the output, it is not printing the names of the same. If you view the class "MyDummyService", it has two methods "readMyFirst" and "writeMyFirst" - the 1st one is a reader and the 2nd one is a writer method.

Related References 

  • Setup Eclipse for App Code Environment.
  • App Code Anatomy.
  • No labels