Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

save()  RSS feed

 
Adrienne Peck
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to update the fields of an object using the save() class. i am not able to find this class in the api. the object is an instance of a db object and the fields to be populated are the columns.

how to do use this class and why isn't this one in the api?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"save()" appears to be a method -- not a class.

Can you tell us more about the "instance of a db object"? What exactly is the type? This might help us find the method.

Also, are you importing any third-party packages?
 
Adrienne Peck
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by instance of a db object, i am doing the following:

Database_Table dt = new Database_Table();

at this point, i want to begin to update fields in this db object. this code will be replacing sql that the designer felt was too cumbersome and slow. i was told to do a dt.save().

i thought this was a class...

i thought i might be able to name the table then the column and put the data to update that column in the parenthesis. like this:

dt.name.save(adrienne);
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Database_Table is a class. It probably has a method called save(). If someone told you to "do a dt.save()", it probably meant that you simply would have to add a line to your source code:

dt.save();

Maybe you're making this more complicated than it really is.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!