This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes virtual objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "virtual objects" Watch "virtual objects" New topic
Author

virtual objects

anita mitra
Greenhorn

Joined: Jul 03, 2009
Posts: 21

hi.what is an virtual objects? why to name some objects as virtual
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7696
    
  20

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


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Winston Gutkowski wrote:Do you mean abstract?


Which there aren't any "abstract" objects in Java either.
anita mitra
Greenhorn

Joined: Jul 03, 2009
Posts: 21

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

Joined: Jul 03, 2009
Posts: 21

this is the program:

anita mitra
Greenhorn

Joined: Jul 03, 2009
Posts: 21

objects that access database are named as DAO. what about VO.. i mean virtualObject. why we are naming some object as VO
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

People can name their variables and classes whatever they like.
anita mitra
Greenhorn

Joined: Jul 03, 2009
Posts: 21

yes. true.. but objects named as DAO if it is related to database. what about VO? just named without any purpose?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Sep 08, 2007
Posts: 3068
    
  33

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.


Mohamed Sanaulla | My Blog
anita mitra
Greenhorn

Joined: Jul 03, 2009
Posts: 21

thanks..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Jul 03, 2009
Posts: 21

oh..but they have mentioned as virtual abject..not sure
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Jul 03, 2009
Posts: 21

i dont remember it correctly.. but 90 % i feel its virtual object..
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38472
    
  23
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

Joined: Jul 18, 2011
Posts: 287
"Vague Object"
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

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.


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Based on the context, I think Paul's guess is right that the author of the code actually meant it to mean Value Object


[My Blog] [JavaRanch Journal]
anita mitra
Greenhorn

Joined: Jul 03, 2009
Posts: 21

thanks..
 
jQuery in Action, 2nd edition
 
subject: virtual objects