Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: update database from List<>

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default update database from List<>

    Hello, I have a question,

    I have a JTable, I read some data and store it in JTable, then I edit these data and I want to send them at once to my database. Is it possible? Or I just should made a cycle and upload all data one by one?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: update database from List<>

    Yes it is possible, and that's about as specific as one can get with the information provided.

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: update database from List<>

    TableView or TableRow? I just have a simple AbstractTableModel, all data I store into List<Item>..

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: update database from List<>

    Quote Originally Posted by beruska View Post
    TableView or TableRow? I just have a simple AbstractTableModel, all data I store into List<Item>..
    Again, this is not much to go by. Where are you having a problem? What did you try? Do you know how to perform individual SQL updates? Is the problem knowing when to update/when the value changes? There are so many things you could be asking about, if you want more helpful advice you need to clearly define what the problem is, or better yet post an SSCCE and provide some context to the question

Similar Threads

  1. Linked list Schminked list help with Nodes Please
    By Bially in forum Collections and Generics
    Replies: 1
    Last Post: September 29th, 2011, 03:20 PM
  2. Update table in database
    By CTheSky in forum JDBC & Databases
    Replies: 4
    Last Post: February 24th, 2011, 02:02 AM
  3. SpinnerListModel setList(List<?> list)
    By roy epperson in forum Collections and Generics
    Replies: 4
    Last Post: November 29th, 2010, 10:30 AM
  4. How to update 2 tables in database using JDBC
    By nrao in forum JDBC & Databases
    Replies: 0
    Last Post: November 11th, 2010, 07:05 PM
  5. [SOLVED] Update on Doubly Linked List
    By javapenguin in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 11th, 2010, 07:19 PM