File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes All my records are deleted ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "All my records are deleted ?" Watch "All my records are deleted ?" New topic
Author

All my records are deleted ?

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hallo,

I have the URLyBird 1.3.3 and now I am working on the data access layer.
I have a first prototype and I do some read tests.My database file contains 29 records but all are invalid, the valid falg (for all) is 0.

0 implies valid record, 0xFF implies deleted record.

Is this normal ?


SCJP, SCJD, SCWCD, OCPJBCD
Uwe Schäfer
Ranch Hand

Joined: Mar 15, 2005
Posts: 52
Originally posted by Mihai Radulescu:
My database file contains 29 records but all are invalid, the valid falg (for all) is 0.

0 implies valid record, 0xFF implies deleted record.

Is this normal ?


...rubbing my eyes... so, in contrast to the thread�s title, all your records are valid, right ? i cannot see no problem then .
i have an urlybird and face the same situation.
[ June 14, 2005: Message edited by: Uwe Sch�fer ]

scja|scjp|scjd|scwcd|scbcd|scdjws|scmad
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi Uwe,

Opps, my mistake all my records are invalid(the valid flag is 0).
How is on you (Uwe)?

All are valid or all are invalid ?
Uwe Schäfer
Ranch Hand

Joined: Mar 15, 2005
Posts: 52
Originally posted by Mihai Radulescu:

all my records are invalid(the valid flag is 0).


... rubbing eyes again ...

your interpretation of a record being INvalid when valid flag is 0 seems to contradict the clear statement from the assignment you quoted:
'0 implies valid record, 0xFF implies deleted record.'

so i suppose all your records are valid and so are mine
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Oh, you're right!!!
I had a copy/paste problem.I retuned the same flag value 0 for both fags(valid/delete).

Thanks !!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: All my records are deleted ?