|
Spring Framework |
|
Similar to the ‘SessionFactory’ of
hibernate, JDO has ‘PersistenceManager
Factory’. It can be configured by using ‘LocalPersistenceManagerFactoryBean’.
Also ‘JDOTemplate’ to create an object
f ‘PersistenceManagerFactory’. To access
the data with ‘JDOTemplate’
‘execute(JDOCallback)’ method is used.
For iBATIS, we have to configure a ‘SQLMapClient’ by using ‘SQLMapClientFactoryBean’ and its
properties ‘configLocation’ and ‘dataSource’ are set. Here also we have ‘SQLMapClientTemplate’.
To access the data ‘execute(SQLMapClientCallback)’
method is used.
The only property that we need to change
to integrate Spring with OJB is ‘ConnectionFactoryClass’ and it is done
by using ‘LocalDataSourceConnectionFactory’.
|
|
|
|
Sept 2007 | Java Jazz Up | 58 |
|
|
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79, Download PDF |
|
|
|
|
|
|
|
|
|