• Post Reply Bookmark Topic Watch Topic
  • New Topic

UNIX - JAVA database or random access  RSS feed

 
bob connolly
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I need to create a simple 'database' on UNIX that i can update using a JTable application!

Is there some kind of utilitiy in Java that will allow me to access a serialized collection or object array which is stored on a 'flat file', but allow me to access it like a 'database'?

Right now, i am reading a serialied Object array and when i make changes to it using the JTable, i then overwrite the whole Object array, stored as a 'flat file', so i'm wondering if there is some kind of utility that will allow me to access that 'serialized flat file Object array; and only update on the array elements that have been changed by a JTable entry!

Thanks for any ideas!
bc
 
M Beck
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you might be interested in Berkeley DB. either that or GNU gdbm, although the latter doesn't seem to have a native Java interface, so you'd have to use JNI to get to it.
 
bob connolly
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reference M! looks very interesting!

Good one!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!