• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating a database in local drive  RSS feed

 
Abhi Bhardwaj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,


I am very new with JAVA and trying to create a database in my local drives to store my data with an application..

My concept is about creating REMINDER or TASK LIST : ( Task Name, Description, Time, Priorities and other data ).


Please help..



Abhishek



 
praveen kumaar
Ranch Hand
Posts: 461
22
Android Chrome Eclipse IDE Google App Engine Java Notepad Oracle Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abhi,Welcome to CodeRanch!

Do you have tried something so far,are you familiar with IO package and classes inside it.you need to learn about reading and writing or re-writing a file through the classes in this package.you can start here-Basics of input-output from oracle.

Hope it helps!

Kind Regards,
Praveen.
 
Abhi Bhardwaj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Parveen,


Thanks for your response..


But parveen, i dont want to read such long files..

Can you please provide me some summarized solution...


Abhishek
 
Tim Moores
Saloon Keeper
Posts: 4034
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an alternative to files, you might consider using an existing DB such as HsqlDB. That assumes you already know (or are willing to learn) SQL. That would be a useful skill to have, but learning both Java and SQL simultaneously may be a bit much.
 
Abhi Bhardwaj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i know SQL..
Actually i am an Abapper from last 3 years..



 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhi Bhardwaj wrote:. . . But parveen, i dont want to read such long files..

Can you please provide me some summarized solution...


Abhishek
You obviously want to learn databases and Java® in 20 minutes, but I am afraid that is not how life works. You need not expect anybody to supply you with ready‑made instructions to create your database in five minutes.
 
Abhi Bhardwaj
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right.

I am reading but not getting any right way from a long time..

If you know any right documents or files, please share..


Abhishek 

 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the Java™ Tutorials?
 
Knute Snortum
Sheriff
Posts: 4281
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are some of the basic steps you will need to do to create a Task List app.  You may already know some of these things.

  • Write out the business logic of the app
  • Write up the tables and columns you will need and their relationships to each other
  • Pick a database, such as MySQL or PostGres
  • Create your tables and relationships
  • Pick a method of accessing the DB, such as JDBC or Hibernate
  • In Java, write DAOs (data accesss objects) for your tables
  • Create SQL queries to manipulate your data
  • Create some kind of user interface (console, GUI, web)


  • None of these things is trivial.  Tell us what things you know and what you need help with.  If you are new to Java and have never written an app before, I would try something easier first, like a calculator.  The Java/DB interfaces are not simple.
     
    Abhi Bhardwaj
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you Everyone..

    Let me try with your solutions and links.

    Let you know shortly..


    Thank you so much.
     
    Abhi Bhardwaj
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Bye the way, Knute Snortum



    Is it right practice to use Net beans for my Java App..??
     
    Tim Moores
    Saloon Keeper
    Posts: 4034
    94
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I generally recommend that Java beginners become comfortable with the command line tools before using an IDE (which have their own significant learning curve).

    And once you start using an IDE, NetBeans wouldn't be my first choice, but that's almost a religious war, so best not to get into it.
     
    Knute Snortum
    Sheriff
    Posts: 4281
    127
    Chrome Eclipse IDE Java Postgres Database VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Abhi Bhardwaj wrote:Is it right practice to use Net beans for my Java App..??

    Choice if IDE: there is no right or wrong in this.  I use Eclipse and I've heard that a lot of other people too, but that doesn't make Netbeans "wrong".

    Use of any IDE: I learned how to write and compile a "Hello, world" program without an IDE, then I started using them.  I think that knowing the basics of have to write and compile are good, but with any program that is more that trivial, use an IDE.  I can get you up and running quickly on a very simple project in almost any IDE.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!