Portable JAVA Data Layer based on JDBC
5 Message(s) by 5 Author(s) originally posted in mysql java
| From: lbrtchx |
Date: Thursday, June 17, 2004
|
Hi,
I, as a JAVA developer, find myself constantly switching among
different
DBMS .
The
JDBC easies it greatly, but I am thinking about a Portable DATA
Layer kind of
functionality to aliviate the problems when you must do
that.
Notice I am not talking aobut connection pooling or persistence
manager!
Here are some of the problems I'd like to rid of my mind:
1._ A change of DBMS should only require a one-line change in a
properties files
DataLayer DL = new DataLayer("_.propeties");
2._
SQL statements should be declared outside the
code entirely, so
that
admin people and DBAs can look at the damage we devs are doing
:-) 3._ Changes in the SQL statements ('We' constantly change the Data
Tables and Structures during dev)
I do not want to have to touch the code if I change the Data layer.
Say, a new column is included in the Table
4._ I'd
love to
query a DBMS like you call a method, without
having to worry about getInt's, and getString's things;
something like:
ResultSetRecordsObjs[] RSO02 = DL.preparedStat("SELECT
...").getRecordObjects();
Then you'd simply go:
. Request.setAttribute("RSO02Ar", RSO02);
. grab the
array of
object s containing the returned records
information in a jSP and
display the results.
Notice that only the
JSP would've to be changed possibly by a
knowledgable designer.
Do you know of something like that already out there (preferably open
source :-))?
| From: Bryce |
Date: Thursday, June 17, 2004
|
wrote in
message :
Do you know of something like that already out there (preferably open
source :-))?
IBatis, Hibernate, just to name a couple.
http://www.ibatis.com/
is probably closer to what you want.
http://www.hibernate.org/
provides a very nice object to relational mapping.
I'm sure there are many others.
--
now with more cowbell
| From: Liz |
Date: Thursday, June 17, 2004
|
wrote in message:
> Do you know of something like that already out there (preferably open
>source :-))?
IBatis, Hibernate, just to name a couple.
http://www.ibatis.com/
is probably closer to what you want.
http://www.hibernate.org/
provides a very nice object to relational mapping.
I'm sure there are many others.
--
now with more cowbell
If you limit yourself to the subset of SQL that is standard
there should be no trouble. Just need to change the name of the Driver.
| From: Roedy Green |
Date: Thursday, June 17, 2004
|
| From: gerbrand |
Date: Thursday, June 17, 2004
|
Next Message: MySQL's LIMIT with JDBC
Blogs related to Portable JAVA Data Layer based on JDBC
informatyk
Changes: The free ZIP code
data file is now a free
MySQL/PHP ZIP code
... SISC is an extensible
Java-
based interpreter of the algorithmic language Scheme.
... JDBC and ODBC APIs are supported. Embedded and server modes are available.
...
informatyk
H2 is an SQL database engine written in
Java (but also available as a native binary).
JDBC and ODBC APIs are supported. Embedded and server modes are available.
... and
data is collected in realtime into a
MySQL database.
...
Enterprise 2.0 needs Digital Foundation
Java is
based on the availability of virtual machines.
... SOA usually defines programming models to manipulate the
data layer.
... He had developed the best
JDBC driver for
MySQL, and then we acquired his software and hired him
...
Comprehensive Listing of 250 Semantic Web Tools (updated)
It can be used as
data layer in Ruby-on-Rails.
... It is an RDF engine
based on Conceptual Graphs (CG) and written in
Java. It enables the processing of RDF Schema and RDF
... It is similar in spirit to
JDBC, but for RDF databases
...
Rapidshare Links
http://rapidshare.de/files/22461337/
mysql-php_ database_
... http://rapidshare.de/files/22498022/xml_ programming_ in_
java.rar..html
... http://rapidshare.de/files/9359877/cisco.press.
layer.2.vpn.architectures.mar.2005.ebo
...
一些java开源包
castor/ open source
data binding framework http://castor.exolab.org/
... mysql/
mysql jdbc driver http://www.
mysql.com/products/connector-j/index.html
... and
portable , XML complients mail transfer protocol -
Based on XML, SMTP, &
Java ...