Questions tagged [javadb]

Java DB is Sun's supported distribution of the open source Apache Derby 100% Java technology database. It is fully transactional, secure, easy-to-use, standards-based SQL, JDBC API, and Java EE yet small, only 2.6 MB.

Java DB is Oracle's supported distribution of the Apache Derby open source database. It is fully transactional, secure, easy-to-use, standards-based SQL, JDBC API, and Java EE yet small, only 2.6 MB.

380 questions
-2
votes
2 answers

NullPointerException while inserting data into java db

For the past 3 hours, i tried lots of code to get rid of the error i faced while inserting data to the java db(derby). please suggest me a correct solution. after clicking the addButton, data is not inserted into the db. it shows the following…
Nithya Rajan
  • 4,722
  • 19
  • 30
-3
votes
1 answer

Update query execute successful but table in Java database on netbeans is not updating even with the update statement

My java database is not updating but the query executed successfully. I'm trying to call my update method from a class named "ProductClass" and put the method into my jframe source code "UpdateProductForm". But I'm not sure if this issue is due to…
MarcoReus
  • 1
  • 5
-3
votes
1 answer

try-with-resources gives unexpected incompatibility errors

Executing javac JdbcRowSet.java on the following excerpt confuses me: // import javax.sql.*; import javax.sql.rowset.*; import java.sql.*; class JdbcRowSet { public static void main(String ... args){ StringBuilder sb = new…
1m9K
  • 3
  • 1
  • 8
-4
votes
1 answer

How to make SELECT statement case sensitive in jdbc (DB2)

I have the following query String sql = select id from sheet_tab where filename in ('value.xls','export.xls') and I am executing it using Statement st = con.createStatement(); ResultSet rs = st.executeQuery(sql); Now the problem is there is…
-8
votes
2 answers

insert data into database after an interval by Java

I need to build a program in java which will insert a data into mysql database after every 10 min.And this will continue as long as the user terminates the program. Do I need Thread to build the program? Please suggest references or a block of code…
Faysal Ahmed
  • 1,592
  • 13
  • 25
1 2 3
25
26