Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7410197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:11:58+00:00 2026-05-29T06:11:58+00:00

I am developing an application that has its own data access layer. In data

  • 0

I am developing an application that has its own data access layer. In data access layer I have a class for each data object for storing and retrieving data in SQLite.

Now I want to add an extra feature to my application that let me to store and retrieve these data in Webservice. I mean I want to have 2 modes. One mode for interacting with SQLite and another mode for interacting Webservice in data access layer. I want to store my data to SQLite or a webservice optionally.

Assume that my webservice has its own Insert, Update, delete and select methods.

How can I do that? Is there any tutorials or example?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:11:59+00:00Added an answer on May 29, 2026 at 6:11 am

    You would create an interface that has all the required update\delete etc methods and each storage area (local\web) you want to use would implement this interface.

    At runtime you would pass in the relevant storage area object and operate against the interface. Your code would not need to know where the storage was, it needs only call the methods defined in the interface.

    As an example, this is an interface I created to implement a file\folder chooser that operates on both SD card and Dropbox which is similar to your own requirements.

    public interface IFileChooser {
        public List<FileSystemItem> getItems(String Path, FileSystemItemFilter filter);
        public Boolean CreateFolder(String Path, String FolderName);
        public Boolean DeleteFolder(FileSystemItem itm);
        public String getRoot();
        public String getParentPath(String path);
        public String getSeparator();
        public Boolean isRemoteSource();
    

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a Java application that has performance at its core. I have a
I have an application that has been running fine since its launch over a
I'm developing a webapp+android app that has its own registration flow - simple authentication
I am actually developing and application that has around 15 modules, all of them
Ok, I'm developing an application that has been in pretty much continous development over
I'm developing a web application that has to support lots of simultaneous requests, and
I am developing an application that currently has a View Controller (call it ViewControllerX).
I am developing a multilingual web application that has a nice looking UI. I
I'm developing an application on a hardware device that has a built-in hardware keyboard
I'm developing a small utility application that needs to detect whether another one has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.