Click here to Skip to main content
15,441,020 members
Home / Discussions / Java
   

Java

 
QuestionHas anyone solved Java exercises in PDF? Pin
Gonzalo Cotanda Gisbert29-Apr-21 5:45
MemberGonzalo Cotanda Gisbert29-Apr-21 5:45 
AnswerRe: Has anyone solved Java exercises in PDF? Pin
Dave Kreskowiak29-Apr-21 12:26
mveDave Kreskowiak29-Apr-21 12:26 
AnswerRe: Has anyone solved Java exercises in PDF? Pin
Richard MacCutchan29-Apr-21 21:31
mveRichard MacCutchan29-Apr-21 21:31 
GeneralRe: Has anyone solved Java exercises in PDF? Pin
Gonzalo Cotanda Gisbert30-Apr-21 4:51
MemberGonzalo Cotanda Gisbert30-Apr-21 4:51 
QuestionHow to apply search functionality on jtable if we are fetching the data from DB? Pin
Rocking Kapil16-Apr-21 18:40
MemberRocking Kapil16-Apr-21 18:40 
QuestionRe: How to apply search functionality on jtable if we are fetching the data from DB? Pin
Richard MacCutchan16-Apr-21 21:51
mveRichard MacCutchan16-Apr-21 21:51 
QuestionJdbc Pin
Bhakti mishra28-Mar-21 23:51
MemberBhakti mishra28-Mar-21 23:51 
AnswerRe: Jdbc Pin
jschell9-Apr-21 15:18
Memberjschell9-Apr-21 15:18 
Make multiple calls to the database.

You can do it with one call but I am not a fan of that because it does not deal with error scenarios. So for example if the first call modifies the database but the second one doesn't the only way to handle that if the second call fails is to rollback the first. Even when it works getting the code correct is requires knowledge both initially and for maintenance programmers in the future.

But if you have a transactional work flow then you can create a single stored proc that represents that work flow and it can be responsible for calling other stored procs and also be responsible for correctly handling error conditions and determine how to report such errors.

Keep in mind as well that multiple result sets can be returned from a single proc (at least In at least a couple of dbs that I have worked with.) And that would need to be handled in the java db layer with either solution although it is much more obvious with the first solution that I suggested.
AnswerRe: Jdbc Pin
SeanChupas29-Apr-21 6:18
MemberSeanChupas29-Apr-21 6:18 
QuestionUSER AND ADMIN EXCHANGE IN JAVA SESSION WITH STRUTS1 Pin
waga197923-Mar-21 23:26
Memberwaga197923-Mar-21 23:26 
QuestionFacing Issues regarding Bean Pin
Member 1511521823-Mar-21 8:14
MemberMember 1511521823-Mar-21 8:14 
Questionhow to do it Pin
zahidul hasan21-Mar-21 21:07
Memberzahidul hasan21-Mar-21 21:07 
AnswerRe: how to do it Pin
Richard MacCutchan21-Mar-21 22:48
mveRichard MacCutchan21-Mar-21 22:48 
QuestionHow to update nested Array in Spring boot mongodb Pin
devTUapp15-Mar-21 7:33
MemberdevTUapp15-Mar-21 7:33 
QuestionWhat should I I learn with Java? Pin
Member 1509539610-Mar-21 3:02
MemberMember 1509539610-Mar-21 3:02 
AnswerRe: What should I I learn with Java? Pin
NotTodayYo10-Mar-21 3:40
MemberNotTodayYo10-Mar-21 3:40 
AnswerRe: What should I I learn with Java? Pin
Richard MacCutchan10-Mar-21 4:06
mveRichard MacCutchan10-Mar-21 4:06 
QuestionPass variable to HttpURLConnection Pin
xoduhuko10-Mar-21 2:40
Memberxoduhuko10-Mar-21 2:40 
QuestionHow to compare two similar xml documents ignoring node text values by using XMLUnit? Pin
mr.pakapun1-Mar-21 17:32
Membermr.pakapun1-Mar-21 17:32 
SuggestionRe: How to compare two similar xml documents ignoring node text values by using XMLUnit? Pin
Richard MacCutchan1-Mar-21 21:22
mveRichard MacCutchan1-Mar-21 21:22 
QuestionLicense key generator Pin
keznet lisimati27-Feb-21 0:27
Memberkeznet lisimati27-Feb-21 0:27 
QuestionDefault My program does not find the file MyFriends.txt Pin
zorapulo11-Feb-21 16:25
Memberzorapulo11-Feb-21 16:25 
AnswerRe: Default My program does not find the file MyFriends.txt Pin
Richard MacCutchan11-Feb-21 21:24
mveRichard MacCutchan11-Feb-21 21:24 
Questionhow to write result in excel using java selenium. Pin
Member 1393850211-Feb-21 2:46
MemberMember 1393850211-Feb-21 2:46 
AnswerRe: how to write result in excel using java selenium. Pin
Richard MacCutchan11-Feb-21 3:01
mveRichard MacCutchan11-Feb-21 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.