Thiago Melo

Greenhorn
+ Follow
since Dec 09, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Thiago Melo

Fala Roberto,
thanks for tip, about the exceptions i don't have doubts anymore. but the find method i'm a little confused. Because if i understand well, first i will do a search with the "OR" logic, and latter i'll filter in my gui. Am i right?

P.S Someone hold my sport!!! heheheh
hi everybody.

guys i have some questions about my find method:

// Returns an array of record numbers that match the specified
// criteria. Field n in the database file is described by
// criteria[n]. A null value in criteria[n] matches any field
// value. A non-null value in criteria[n] matches any field
// value that begins with criteria[n]. (For example, "Fred"
// matches "Fred" or "Freddy".)
public int [] find(String [] criteria) throws RecordNotFoundException;

1. in my implementation when the size of the "criteria" is > 0 then i return the record that match
for any criteria. Is this right ? Someone used regular expression in this method?

2. in this method the sun interface only throw RecordNotFoundException, but in my implementation i
have to read the data file, so may i have to throw an IOException too. Can add more exception for my method?
i have the same doubt about create, read, modify and delete methods...


thanks,
E aĆ­ cara (hey guy ),
you're right! i'm brazilian. Thank you very very much for your help, and don't worry because now i will send you many messages heheheeheh, in portugueses of course... i hope get succeed on exam. thanks brother


By the way, my favorite soccer team is Sport Recife. Because i'm pernambucano. You aren't corintiano, are you??? heheeh... if yes, sorry about "Copa do Brazil".
Matheus,
your instructions doesn't say this too? "Any methods that throw RecordNotFoundException should do so if a specified record does not exist or is marked as deleted in the database file" If yes, i guess you can't use this class for other purpose that specified early.
Hi,
i'm try get SCJD certification and i have to implement urlybird 1.3.3 project. But i have many questions about the project, and the documentation is more dificult to me. I have not idea how to make the "design decisions document" and the "read me". Please anybody has a model? what will i write in these documents?