wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 24183
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what does this do?
 
Similar Threads
JSTL XMl parsing
How to add attribute to tag in XML uing DOM parser
JTextField(int col)
String [ ] args
Splitting a String problem