Tagged Questions
0
votes
2answers
137 views
JDBC: Is `con.rollback()` has effect only if`con.commit` not succeeded?
I am new to Java JDBC, and developed small database application. I am learning from
O'Reilly - Database Programming with JDBC and Java 2nd Edition.
Is con.rollback() has effect only ifcon.commit ...
0
votes
0answers
95 views
Java MySQL calling commit() on a large EntityTransaction object failed
I have a large javax.persistence.EntityTransaction object, say ent, when I called the method commit() on this object (to insert a new record into my (MySQL) table:
ent.commit();
I got the quere ...
0
votes
2answers
35 views
Implements save (or commit) and rollback methods to a Map
I'm searching for a fast and convenient way to add save() and rollback() to a standard Map. Let's say i have an object 'table' of class Table which in turn has a private Map called 'rows'. What I'm ...
0
votes
0answers
30 views
Intercept commits with JtaTransactionManager
Is it possible to intercept commits with a JtaTransactionManager?
Something like Interceptor#beforeTransactionCompletion(Transaction tx) would be nice.
0
votes
1answer
312 views
How do I get myBatis update statement to commit in a Java Spring application?
I have Java Spring application running in a jetty-maven plugin. When I call a myBatis insert statement, the statement is automatically committed. However, when I call update, the statement is not ...
3
votes
0answers
139 views
How to commit batches of inserts in hibernate?
I have to save a large number of objects to the database using hibernate.
Instead of commiting all of them at once, I would like to commit as soon as n (BATCH_SIZE) objects are present in the session.
...
0
votes
2answers
104 views
Which FlushMode in Hibernate commits when you call session.flush()?
I read that whether a call to session.flush() commits or not depends on the FlushMode that is set. However, I don't know which FlushMode does this. I want the session to be flushed and commited. Which ...
0
votes
2answers
100 views
how to use commit to save all query and if any one query failed no data should be save
I have an employee form.In that i have used tabbed pane to get four different tabs.But problem is that if i save data on first tab only it get saved in database. and before saving data on other tabs i ...
0
votes
1answer
146 views
Maven scm:add gives error
I try to commit some files generated by maven in SVN.
scm:add -Dmessage="Database SQL's hinzugefuegt" -Dincludes="./src/main/resources/database.sql"
I get the following error
[ERROR] Failed to ...
0
votes
1answer
188 views
Java transaction - commit on conn doesn't
Suppose I have the following Java code fragment (where something like it is embedded in a legacy app)
...
try {
con.setAutoCommit(false);
updateSales = con.prepareStatement(updateString);
...
1
vote
2answers
116 views
Are begin() and commit() required for JPA CriteriaQuery?
I have a simple question to ask regarding JPA's CriteriaQuery-based queries? I noticed in the Java EE examples (http://docs.oracle.com/javaee/6/tutorial/doc/giqsq.html) that
...
0
votes
1answer
90 views
Max value from auto commit false table
My problem is i have set a table auto commit false. I need to get the max id from that table(the currently inserted value of auto increment id). But i am getting the id of the previous committed ...
-2
votes
1answer
110 views
Commit/rollback using java from jsp Page
I call various java class file for inserting data to tables from jsp page. sometime the datas are not inserted in all tables. So, it create integrity how to avoid this problem using commit/roll back ...
2
votes
2answers
2k views
Error when Committing in SVN using subclipse
"org.apache.subversion.javahl.ClientException: svn: E155007:
'C:\User\Bosung\Workspace\Chicken
Survival.settings\org.eclipse.jdt.core.prefs' is not a working copy"
Details is same.
I have ...
0
votes
1answer
472 views
MySQL commit and rollback failed
I have a problem.
try {
jdbcConnect( ); //get mysql connect
conn.setAutoCommit( false );
pstmt = conn.prepareStatement (
"INSERT INTO member ( ...