Re: Need Relational Database Capabilties in Java



JAF wrote:

The two biggest pluses I see to the relational model for DB, and
please comment on my ideas here for Java since I am new to Java, are
the data is easy to maintain and it is easy to train end users to
understand relational data and to do heir own reports.

If you want to interact with the DBMS at the level of SQL queries, tables,
rows, and so on, then that is provided by JDBC.

There's a tendency in the Java world to /assume/ that anyone interacting with a
DBMS will want to use a Object-Relational mapping tool (such as Hibernate) to
handle the translation from the world of relational data into the world of
objects, but that assumption is not necessarily valid. The data can perfectly
well be represented (in Java) as objects from the relational domain (rows, etc)
rather than being automatically transcribed into objects from the target domain
(customers, etc). And if you are already happy working with those concepts,
then I don't (myself) see much benefit in changing.

-- chris



.



Relevant Pages

  • Re: Need Relational Database Capabilties in Java
    ... handle the translation from the world of relational data into the world of ... Object Oriented Design allows you to have a rich domain model. ... moving to Java JUST to move to Java, ... you are moving to Java so that you can become a OO shop, ...
    (comp.lang.java.programmer)
  • Re: Searching a disk-backed Map
    ... What is the most common (pure Java) ... The data structures and algorithms that Java uses for in-memory maps are not very suitable for disk-based maps. ... Yes, this is a subset of what you can do with a relational data store, but it's quite possible that an implementation which does keyed storage and nothing else will do it faster and more efficiently. ... And its zillions of successors (which include java wrappers and pure java implementations - although i don't know if any have a Map interface). ...
    (comp.lang.java.programmer)
  • Re: Searching a disk-backed Map
    ... What is the most common (pure Java) ... Stefan doesn't want that, he wants to do stores and lookups by key, and nothing else (well, that and removals, and iteration - but i would imagine the priority is fast storage and lookup). ... Yes, this is a subset of what you can do with a relational data store, but it's quite possible that an implementation which does keyed storage and nothing else will do it faster and more efficiently. ... required to efficiently persist Java objects. ...
    (comp.lang.java.programmer)
  • Re: Searching a disk-backed Map
    ... What is the most common (pure Java) ... Stefan doesn't want that, he wants to do stores and lookups by key, and nothing else (well, that and removals, and iteration - but i would imagine the priority is fast storage and lookup). ... Yes, this is a subset of what you can do with a relational data store, but it's quite possible that an implementation which does keyed storage and nothing else will do it faster and more efficiently. ...
    (comp.lang.java.programmer)
  • Re: Need Relational Database Capabilties in Java
    ... please comment on my ideas here for Java since I am new to Java, ... Hibernate) to handle the translation from the world of relational data ... objects from the target domain ... the various object-relational mapping frameworks are all ...
    (comp.lang.java.programmer)