• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Serialization  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I have a question about the requirement:



The program must be able to work in a non-networked mode. In this mode, the database and GUI must run in the same VM and must perform no networking, must not use loopback networking, and must not involve the serialization of any objects when communicating between the GUI and database elements.


In my Data class, I have methods that need to return a collection of objects. These methods return an ArrayList. For example, I have a method with this signature:
public ArrayList find(Contractor)
This will return an ArrayList of Integers, representing the record numbers matching the Contractor passed in.
If this method is used in the non-networked mode, would that violate the requirement that


must not involve the serialization of any objects when communicating between the GUI and database elements.


If so, what collection to use?
- Rolf.
[ March 14, 2004: Message edited by: Mark Spritzler ]
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rolf,

must not involve the serialization of any objects when communicating between the GUI and database elements.


There is no issue: the fact that an object is *serializable* doesn't imply that it is *serialized*.
Regards,
Phil.
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rolf, I think it is OK to use ArrayList.
Good Luck.
 
Rolf Johansson
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks!
 
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rolf, I deleted the other sort of dup post thread. So I will change the topic of this thread to remove the "read this one" since people won't get confused anymore with the other thread.
Mark
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!