Java, JSP, Servlet, JDBC - Back To The Basics Part 2 Java, JSP, Servlet, JDBC - Torna alla Nozioni di base Parte 2
I informed in my previous post that Ho informato nel mio precedente post che I have decided to shun all java frameworks Ho deciso di evitare tutti i quadri java for my current project and develop with basic Java / J2SE components instead. per il mio progetto corrente e sviluppare con base Java / J2SE componenti. Here is a synopsis of my journey as it is unfolding. Ecco una sintesi del mio viaggio in quanto si svolge.
Today I was working with JDBC, doing the simple job of fetching certain data from the web and dumping them in the database. Oggi mi è stato lavorare con JDBC, facendo il semplice lavoro di recupero di alcuni dati dal web e di dumping in banca dati. I have to tell you that Hibernate or at least iBatis sounded very alluring. Devo dire che Hibernate o almeno iBatis suonò molto allettante. But I have decided - no framework. Ma io ho deciso - nessun quadro. So I wrote some simple code to fetch data from the web, parsed it and dumped in using plain old JDBC (JDBC 1.0). Così ho scritto alcune semplici righe di codice per recuperare dati dal web, analizzati e oggetto di dumping in pianura utilizzando vecchi JDBC JDBC (1.0). I was thinking of using connection pooling from JDBC 2.0, but frankly for my fetch and dump operation, it appeared to be overkill. Pensavo di utilizzare la messa in connessione JDBC da 2,0, ma francamente per il mio scaricare e dump operazione, sembrava di essere eccessivo.
I got lot of work done today. Ho avuto molto lavoro fatto oggi. The only dragging force was the constant temptation to use some framework or other. Trascinando l'unica forza è stata la costante tentazione di utilizzare alcuni quadro o di altri. I resisted. Ho resistito. It was refreshing. E 'stato rinfrescante. Hopefully from the next post I will start posting few bits and pieces of code, but frankly I have not using anything spectacular today - just plain old JDBC. Si spera dal prossimo post vorrei iniziare a postare qualche bit e pezzi di codice, ma francamente non ho nulla di spettacolare utilizzando oggi - semplicemente vecchio JDBC. Only thing worth noting was that I used a Proxy to allow me to login the database statements. Unica cosa da notare è che io ho usato un proxy per permettetemi di banca dati di login. I am using HSQLDB for this project. Sto usando HSQLDB per questo progetto. It can currently handle 8GB of data which is good enough for my needs. Attualmente è in grado di gestire 8GB di dati che è abbastanza buono per i miei bisogni.
Filed under Elencato sotto Database Banca dati , Headline News Headline News , Java Software Software Java , Open Source Software Software open source , RDBMS , Web | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |




January 11th, 2006 at 7:30 am Gennaio 11, 2006 at 7:30 am
Just pay attention to some web components like Solo prestare attenzione ad alcuni componenti web come
Coldtags suite: Coldtags suite:
our (of course il nostro (naturalmente
http://www.servletsuite.com/jsp.htm
March 1st, 2006 at 10:24 am 1 ° marzo 2006 alle 10:24 am
Not using a pre-made framework simply means that you are creating your own ad-hoc framework as you write your application. Non utilizzi un pre-fatte quadro significa semplicemente che si sta creando il tuo annuncio-hoc quadro come si scrive la tua candidatura. Either that, or you are coding the same idiom over and over. O che, o si sono codifica lo stesso idioma più e più. For example, sticking with the JDBC-only approach is fine when you’re accessing only one database table, but as soon as you have to access a second table, you’re writing essentially the same code again. Per esempio, conficcandosi con il JDBC-solo approccio va bene quando sei solo un accesso tabella di database, ma non appena avrà accesso a una seconda tabella, si è iscritto essenzialmente lo stesso codice di nuovo. Refactor out the common code into a reusable class, you say? Refactor il codice comune in una classe riutilizzabile, voi dite? Then you’re on your way to inventing your own framework. Allora sei sul tuo modo di inventare il proprio quadro.