aspose file tools*
The moose likes Java in General and the fly likes what does this do? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "what does this do?" Watch "what does this do?" New topic
Author

what does this do?

Patrick Mallahan
Ranch Hand

Joined: Apr 22, 2005
Posts: 69
What does this line of code do and where does it point?

public void setStartDate(java.sql.Date value) { startDate=value; }
Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
Originally posted by Patrick Mallahan:

public void setStartDate(java.sql.Date value) { startDate=value; }


This is a public method that takes in an argument of type java.sql.Date. It assigns that argument to what appears to be a class variable of the same type or a supertype named startDate.

As to where it points, I don't understand that question.
Patrick Mallahan
Ranch Hand

Joined: Apr 22, 2005
Posts: 69
is it a class for the code, or is it storing info in an SQL database?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Originally posted by Patrick Mallahan:
is it a class for the code, or is it storing info in an SQL database?


As Steven said, it's assigning a value to a member variable. It has nothing to do with a database of any kind.


[Jess in Action][AskingGoodQuestions]
Patrick Mallahan
Ranch Hand

Joined: Apr 22, 2005
Posts: 69
okay i get it. it is setting something to the value of YYYYMMDD. cool.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: what does this do?