• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can I define a record like...please coming in

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,everyone:
Can I define a record like:{recNo,deleted,name,location,size,smoking,rate,date,owner}?
Some reasons:
1.I can cache all db file's records information(include recNo and deleted) into memory for performance
2.Methods using recNo(update or deleted etc.) or deleted(e.g:create a record reusing a deleted entry) will be easy implemented and have good efficiency
What I am worried about is:
The following methods:
public void update(int recNo, String[] data, long lockCookie)
public String[] read(int recNo)
public int[] find(String[] criteria);
public int create(String[] data)
which have relation with record(String array) will have to use my record definition ,is it permitable?

I really appreciate any help!
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Strong,

Yes, you can create your own classes for use within a cache or for use in transferring data, or for use in the table - or anywhere that it makes sense for you.

You cannot change the existing interface though - but there are ways around that .

Regards, Andrew
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic