1 package org.codehaus.mojo.dashboard.report.plugin.hibernate;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.hibernate.Session;
20 import org.hibernate.SessionFactory;
21
22
23
24
25
26 public interface HibernateService
27 {
28 String ROLE = HibernateService.class.getName();
29
30 public SessionFactory getSessionFactory();
31
32 public Session getSession();
33
34 public String getDialect();
35
36 public void setDialect( String dialect );
37
38 public String getDriverClass();
39
40 public void setDriverClass( String driverClass );
41
42 public String getPassword();
43
44 public void setPassword( String password );
45
46 public String getConnectionUrl();
47
48 public void setConnectionUrl( String url );
49
50 public String getUsername();
51
52 public void setUsername( String username );
53
54 public void save( Object obj );
55
56 public void update( Object obj );
57
58 public void saveOrUpdate( Object obj );
59
60 }