Daniel Bevenius

Greenhorn
+ Follow
since Oct 11, 2000
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 Daniel Bevenius

try:
set tabstop=4
/Daniel
19 years ago

Originally posted by scott irwin:
The Data::add() method checks the first column via a find() at the beginning of the method. If a row is returned, it is a duplicate key and throws an exception. What are you using this column for? It is not an integer, therefore can not be used for locking (unless you convert the signature to use String vs. row number).


The question that I have is in regard to the first column. Currently I am using the flightnumber a unique key which is ok because these are unique in the text file, but if additional flights will be added in the future how do I know that they won�t "recycle" the flightnumbers.
I use a separate class for lockning and the type of object or primitve to be locked does not matter. Please explain why locking on an int or a String would be a problem.
Hi,
does anyone have any input about the unique recordnumber that is to go into the database. I�ve used the flight number but I�m not sure that these are unique, even if they are in the text file.
thanks
Danny