Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 43

Thread: java-database

  1. #11

    ganahan man gud ko nga i-separate ang database sa main program bay kay para dili mabug-atan, then no enough knowledge man gud ko anang XML nya i think a text file is one of the lightest file where you can store a large database.

  2. #12
    Junior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    478
    Quote Originally Posted by sogate View Post
    Hi guys,

    Please anybody who knows about java, especially about database. I would like to solicit some ideas as to how to use a text file as a storage (database) of english terms with their corresponding cebuano translations.

    thanx in advance

    how big is the dictionary?

    -- the easiest is use resource bundle or property file.
    -- if you like something robust, use bekeley db, cloudscape, or hsql

  3. #13
    Junior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    478
    Quote Originally Posted by junkfactory View Post
    Una sa tanan, ang database gi imbento para mo hold/manage ug data. Mao na ang sole purpose niya. Karon nganong adto pa man gyud nimo ibutang sa text file ang imong data?

    Kung gusto ka lightweight nga DB. SQLite dajon. Gusto pa gyud ka mas lighter, suggest nako e XML imo file kay mas manageable siya, gamit lang ug xtream para [de]serialize sa imong mga POJO
    dictionary is a simple structure, xml is the worst implementation.

  4. #14
    Junior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    478
    this implementation would not be efficient as encart, but if it's homework, this is okey.

    suggestion for the structure would be like this:

    1) master.properties -- holds all the property files
    2) a.properties -- holds all the words as keywords and definitions as values
    ...
    n) z.properties -- holds all the words that starts with z and definitions as values

    so if you search for 'abacus', it starts with a, so you should load a.properties and get the value from the key 'abacus'.

    make sense?

  5. #15
    Quote Originally Posted by kamsky View Post
    dictionary is a simple structure, xml is the worst implementation.
    How can you say XML is the worst implementation?

  6. #16
    Quote Originally Posted by sogate View Post
    ganahan man gud ko nga i-separate ang database sa main program bay kay para dili mabug-atan, then no enough knowledge man gud ko anang XML nya i think a text file is one of the lightest file where you can store a large database.
    Puwede XML imo gamit pag-implement lang ug SAX para dili dako ug memory consumption. Kung gusto ka try this XStream - About XStream.

  7. #17
    Junior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    478
    Quote Originally Posted by eax View Post
    How can you say XML is the worst implementation?
    complicates your life, slower than simple text. you dont need it this for a dictionary.

  8. #18
    bro, try to download ebook for java... hatagan lng nya tka link kung maka-upload ko sa ako mga notes and ebooks and sample programs pud... simple ra au na ang java bro.


    or adto sa national bookstore, look for a Java na book by Deitel & Deitel na current version. naa didto tanan. ayaw buy ana book na Java, C++ and C#. dapat Java ra jud pra concentrated ang topic

  9. #19
    Quote Originally Posted by kamsky View Post
    complicates your life, slower than simple text. you dont need it this for a dictionary.
    I don't know pud ana. In terms structuring mas advantage ang XML compare sa text especially if you tried SAX. You can map your Java objects to and XML just like a database.
    Last edited by eax; 06-28-2009 at 12:10 AM.

  10. #20
    Junior Member
    Join Date
    Jun 2009
    Gender
    Male
    Posts
    478
    Quote Originally Posted by eax View Post
    I don't know pud ana. In terms structuring mas advantage ang XML compare sa text especially if you tried SAX. You can map your Java objects to and XML just like a database.
    why do you need SAX/XML/Java Object for dictionary?

    how difficult is dictionary with structure such as:

    abacus=a calculator that performs arithmetic

    as simple as ResourceBundle, it's easy. You dont need to have to EventHandler on visiting xml elements/attributes. For sure maps are faster than xml parsing.

  11.    Advertisement

Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

 
  1. Java database connection question
    By jairoh_ in forum Programming
    Replies: 7
    Last Post: 01-06-2013, 06:19 PM
  2. Need help with my java to database
    By brianegalorio in forum Programming
    Replies: 7
    Last Post: 03-17-2012, 11:57 PM
  3. using java code for database program
    By istoryansucks in forum Programming
    Replies: 8
    Last Post: 07-12-2010, 04:04 PM
  4. java, byte, images, database
    By poymode in forum Programming
    Replies: 12
    Last Post: 09-06-2008, 02:50 PM
  5. Mobile Java Games
    By Nezumix22 in forum Gizmos & Gadgets (Old)
    Replies: 23
    Last Post: 05-06-2005, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top