• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

virtual objects

 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.what is an virtual objects? why to name some objects as virtual
 
Winston Gutkowski
Bartender
Pie
Posts: 10506
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hemamalini nithyanandam wrote:hi.what is an virtual objects? why to name some objects as virtual

They aren't; at least not in Java. Do you mean abstract?

Winston
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:Do you mean abstract?


Which there aren't any "abstract" objects in Java either.
 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have seen a program in which the object is referenced by inputVO variable.. i mean while referencing an object.. the name of the object is inputVO i.e input virtual object
 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is the program:

 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
objects that access database are named as DAO. what about VO.. i mean virtualObject. why we are naming some object as VO
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People can name their variables and classes whatever they like.
 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. true.. but objects named as DAO if it is related to database. what about VO? just named without any purpose?
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No doubt there was a purpose behind the names. There should always be a purpose behind the names, that's one of the requirements of good software design.

However if you want to know what that purpose was, I would have thought that asking the person who assigned those variable and class names would have been the most reasonable way to find out. I would have thought that would be much more practical than asking random strangers.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am guessing- VO = View Object - May be the information required for the view is stored in this? View Object(VO) may be based on Model object.

PS: This type of naming convention used in ADF-BC. Though I dont see DAO there.
 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks..
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've also seen the term "value object". It would also be a guess if I said that the "VO" in those class names meant "value object", though.
 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh..but they have mentioned as virtual abject..not sure
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So at least you know the question you need to ask them: "What's a virtual object?" Although it looks like you knew that already.
 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont remember it correctly.. but 90 % i feel its virtual object..
 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DAO usually means Data access object, so that has nothing to do with databases. So I can see no evidence that VO means virtual object.
 
Harsha Smith
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Vague Object"
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I too felt that the original poster was very sure of the term he/she was asking.

However, as far as I know VO is a design pattern which may either stand for Value Object or View Object. I had been using this term as value object mostly. As a convention the term VO is suffixed with every other object.

I have seen some people use this as DTO (Data Transfer Object) or FO (Form Object) etc., with different naming conventions, with the intention of using this object to carry the data entered by the user to the other layers of an application.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on the context, I think Paul's guess is right that the author of the code actually meant it to mean Value Object
 
anita mitra
Greenhorn
Posts: 21
Eclipse IDE MySQL Database Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic