William Silva

Greenhorn
+ Follow
since Jul 24, 2003
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 William Silva

Hi Andrew,
My specification says :
" - It must be composed exclusively with components from the Java Foundation Classes (Swing components).
- It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
- It must present search results in a JTable.
- It must allow the user to book a selected record, updating the database file accordingly"

I must provide a search, present the results in a JTable, and the user can select one record and book it ? Only this ? No delete, no create and no "unbook" ?

Thanks.
Hi,
Is it ok to make the GUI like the Microsoft Excel ?
It would be only with a editable JTable (Remove, Add, Update) and a menu with this options plus a search menuItem.

Thanks.
Hi Matt,
Then... you did the same thing ?

int[] recodsNo = find...

for (int recNo=0; recNo<recodsNo.lenght;recNo++){
String[] data = read(recNo);
.......
}

Thanks
Hi Zee,
First I was thinking about keep the records in a cache (HashMap) but my specification says :
"The company's IT department has a data file that contains the essential information for the company, but because the data must continue to be manipulated for reports another custom-written application, the new system must reimplement the database code from scratch without altering the data file format".
If I use a cache my system may never see a update did by the anothers aplications.

What do you think ?
Hi Zee,
My specification only says
"It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.".
I must use a cache of records ? If I have a cache, I must keep it up to date. Then, what is the diference between show the cache and return the String[][] ?

Thanks.
Hi Olena,
Yes, I can execute the find 1 time then the read n times. Why not just 1 find ?
Is this the way to go ? n reads ?

Thanks.
Hi,
I'm working on Bodgitt and Scarper version 2.1.3 and I have this method signature to the find method "public int[] find(String[] criteria)".

I'll have to do the search and then read all the records again ?
Why not just read all the record in the find method ?
Why not "public String[][] find(String[] criteria)" ?

Thanks for your help.
Hi,
I sugest "Head First EJB" http://www.wickedlysmart.com/HeadFirst/HeadFirstEJB/HeadFirstEJBIndex.html
[ May 18, 2004: Message edited by: William Silva ]
Hi Janne,
I found in the log file the following lines when removing a bean:
setEntityContext Ok !
ejbActivate Ok !
ejbLoad OK ! Updating relationships, for example
ejbStore ??? Why Store
ejbRemove Ok ! Removing the entity
My comments are in the right side.
William.
Hi Friends,
If the client simply call remove method on the
EJBObject to remove the entity data in database by its primary key,why
ejbStore is neccesary?
I'm using JBoss and BMP.
Thanks,
William.
Hi Reid,
Thanks a lot !!!
I forgot about the relationships !
William.
Hi Friends,
If the client simply call remove method on the
EJBObject to remove the entity data in database by its primary key,why
ejbLoad is neccesary?
I'm using JBoss and BMP.
Thanks,
William.
Hi Friends,

Thanks for your help !!
Thanks Keith, thanks Sudhir!!
WIlliam.