Timeline for Inserting into database columns
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 12, 2013 at 13:09 | history | migrated | from stackoverflow.com (revisions) | ||
| Feb 9, 2013 at 19:23 | vote | accept | CommunityBot | ||
| Feb 9, 2013 at 8:56 | comment | added | Farhan Jamal | let us continue this discussion in chat | |
| Feb 9, 2013 at 8:51 | comment | added | Farhan Jamal | sure. let me do that as well. | |
| Feb 9, 2013 at 8:49 | comment | added | Vishal K | can you post here those codes also where you creating multiple threads and calling the methods..? | |
| Feb 9, 2013 at 8:47 | comment | added | Vishal K | If you are executing it using multiple threads then you should synchronize every getXXX methods of Constants class | |
| Feb 9, 2013 at 8:45 | comment | added | Farhan Jamal | One thing I wanted to confirm here is- There won't be a thread safety issues here with the way you are doing? As I will be running this program with lot of multiple threads. | |
| Feb 9, 2013 at 8:45 | comment | added | Vishal K | It was Typo mistake . forget to write class before MyComparator declaration. It is fixed now | |
| Feb 9, 2013 at 8:44 | comment | added | Farhan Jamal | I fixed that as well. Sorry for bothering. | |
| Feb 9, 2013 at 8:41 | comment | added | Farhan Jamal | Yeah that thing I figured it out. But what about other errors I mentioned? I think you forgot to put class name right? | |
| Feb 9, 2013 at 8:38 | comment | added | Vishal K | It was happening because (methods.get(i)).invoke(null,userid) returns Object. I have typecast it to String now . See the updated Code. | |
| Feb 9, 2013 at 8:34 | comment | added | Farhan Jamal | Thanks Vishal. Looks more cleaner now. I tried your suggestion but it is complaining at few lines like The method setString(int, String) in the type PreparedStatement is not applicable for the arguments (int, Object) and also at NameComprator as well it cannot be resolved something and also The method compare(Method, Method) of type XMPTask must override or implement a supertype method. | |
| Feb 9, 2013 at 8:22 | history | answered | Vishal K | CC BY-SA 3.0 |