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

  • Home
  • SEARCH
  • 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 8447097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:06:07+00:00 2026-06-10T10:06:07+00:00

I have this rather crazy idea to have a stored procedure facility in my

  • 0

I have this rather “crazy” idea to have a “stored procedure” facility in my application. Basically, my app is data-centric and that it can access the datastore through some form of Restful interface.

I want to have the functionality to manipulate data (which is a JSON string) in many ways, like

  • increment/decrement
  • hash/encrypt/decrypt and all sorts of stuff

My initial
implementation was to create a Java class that will do these operations. Typical.

However, I want to have the flexibility in doing such manipulations. That is, I can add a procedure to manipulate data on-the-fly, that is, like a
script that can be selected and will process the retrieved data and then save it back
again in the datastore.

For example:

http://127.0.0.1:8888/resources?key=somekey&operation=funkyops 

This will cause the server to internally fetch the Entity with such key then manipulate the data and save the Entity back to the datastore.

Retrieving and persisting logic can be hardcoded but the “stored procedure” must be
stored in the datastore as a script or something like that and then when selected will
be passed into some sort of processing block.

Here’s a concrete example of what I am trying to do: HashBend.java

Any ideas on how I can achieve this?

  • 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-06-10T10:06:08+00:00Added an answer on June 10, 2026 at 10:06 am

    You could use the javascript engine: see “Scripting for the Java Platform” http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/

    for ex:

    http://host/resources?key=somekey&operation=return+{newkey:123,data1:"hello"};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there some way when sending this message to specify that I rather have
So i have this application thats rather complicated... To keep it short this is
I have this rather strange looking couple of lines in my code, that I
So i have this rather strange issue, i am trying to line up some
I'm rather new to Django and I'm using Django 1.0. I have this: forms.py:
This is rather convoluted, so bear with me. I have a 3rd party program
This may be rather noobish but I'm gonna ask anyhow. I have a class
This has been a rather problematic issue on numerous occasions. We have alot of
I know I could solve this with a header but I'd rather not have
I'm rather new to WPF, so maybe this is a simple question. I have

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.