J 2 EEプラットフォームの資料アクセス技術


google_ad_client = "pub-8800625213955058";/* 336 x 280、作成は07-11-21*/google_ad_slot = "0989131976"; google_ad_width = 336; google_ad_height = 280;//
 



J2EE

J2EE




   , 。
   , , 。
   , ANSI SQL , MS SQL server T-SQL Oracle PL/SQL , , SQL command , 。
   , 。 , O/R Mapping , 。 J2EE , , J2EE 。

J2EE
   ( ), , , , , J2EE , 。

   J2EE Java 2 Platform, Enterprise Edition, , 。
J2EE , ( ):
1. Client-tier: , AP 。
2. Web-tier: J2EE Server Web Server , Client-tier Business-tier 。
3. Business-tier: J2EE Server , 。
4. Enterprise information system (EIS)-tier: , EIS Server, 。




   , Business-tier , (domain knowledge), ,EIS-tier ? , Business-tier enterprise beans( class ) ,J2EE Server , J2EE Server enterprise beans , , 。
   J2EE Server Business-tier beans, (J2EE ) , ; 。 。
   , , , Castor , Java , persistent layer, J2EE Business-tier EIS-tier , , persistent layer J2EE enterprise beans , ,Castor JDO(Java Data Objects)。

Castor JDO
   JDO J2EE 。 , Castor JDO persistent layer , J2EE , 。 persistent layer, , , , 。 , Castor JDO JDO。
   。 Castor JDO , (nest reference) (recursive reference), (deadlock)。
  Castor JDO O/R Mapping , , , Apache DB Jakarta ObJectRelationalBridge (OJB) 。 O/R Mapping , , persistent layer。

Jakarta OJB
,Jakarta OJB persistent layer。 :




   Client-tier < > Business-tier, OJB Business-tier 。 Backends , 。
   ,Jakarta OJB API , persistent layer , 。

Castor JDO V.S Jakarta OJB


Castor JDO Jakarta OJB
、 、 、 , PK , PK PK PK , , . 。
1:1 , , , , , , . reference-descriptor element auto-delete true
1. table.2. table.3. table; table 。 , 1,2 , , 1:1 。
1:n Collection ,ArrayList、Map、Set 。 Map , , Collection.
n:m
Polymorphism Collection (Interface)
Polymorphism Collection (Super Class)
1:1 Lazy Loading
Collection Lazy Loading Collection , set map 。

   , Jakarta OJB Castor JDO , Polymorphism Collection , Castor JDO deadlock 。


   AP , , 。 , , 。 , persistent layer 。
   , , ; SQL command;persistent layer ; J2EE Server; … 。 ?
   。 ” ”。 , , 。 , , , , , 。 , hard code SQL commands 。
   JDO , , (cache), SQL commands prepare statement, lazy loading , , 。


1. J2EE Tutorial,Sun Microsystems 。http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html
2. Castor Project,http://castor.exolab.org/
3. Apache DB Project,http://db.apache.org/ojb/