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 6244637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:21:38+00:00 2026-05-24T12:21:38+00:00

Does exists a java library that can create sql statements? I’m not in search

  • 0

Does exists a java library that can create sql statements?
I’m not in search of something fancy, just something at “string manipulation” level: I just use jdbc (with Preparestatements and Resultsets) but I don’t really like to pass huge strings containing SQL code…

What I need is a “simple” Select class (or something similar); in my mind all I really want is to be able to do

SQLStatement stat = Select("*").from("table").where("condition and condition").orderby("something");
ResultSet rs = Connection.getResultSet(stat.toString());
/* equals to "select * from table where condition and condition order by something" */

Maybe I’m blind, but I cannot find something like that…

Obviously, I want some methods/class able to write inserts and updates and the other stuff…

I excluded ORMs for two reasons:

  1. the db schema it’s “old” and I cannot change it, and I’m not sure how can I adapt the ORM to follow our db
  2. AFAIK the ORMs needs to change the model (maybe adding a base class, maybe you need to implements an interface) and the model in my project is big, old and grumpy
  3. Onestly, I don’t really like ORMs: Objects and Set theory just aren’t made to be mapped (IMHO)
  • 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-24T12:21:39+00:00Added an answer on May 24, 2026 at 12:21 pm

    ORM (Object Relational Mapping) library is the clue.

    Hibernate is the most mature one.

    And the Hibernate-s Criteria API is object – oriented way to create such queries as You wished. Criteria API doc.

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

Sidebar

Related Questions

Does a smart textbox control (WinForms) exists that can display a path depending on
Does anybody know of anything that exists in the Java world to map midi
Does anyone know of a scientific/mathematical library in Java that has a straightforward implementation
C:\Tomcat5.5\webapps\WEB-INF\classes>javac MyServlet.java MyServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ MyServlet.java:3: package javax.servlet.http
Does a print version of the Java >= 1.5 API exist? Where can I
Does something like OpenSSO ( https://opensso.dev.java.net/ ) or ESOE ( http://esoeproject.org/ ) exist for
I want to show no_picture.png if requested picture does not exists. I should do
First look at this url: https://stackoverflow.com/questions/tagged/xoxoxo/ This directory does not exists but somehow stackoverflow
On google-api-java-client exists an annotation @Key that it's used for parsing nodes on an
I'm looking for the C# equivalent of Java's final . Does it exist? Does

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.