-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPaymentDao.java
More file actions
47 lines (39 loc) · 1.25 KB
/
PaymentDao.java
File metadata and controls
47 lines (39 loc) · 1.25 KB
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
public class PaymentDao {
private static final Logger logger = LoggerFactory.getLogger(PaymentDao.class);
private final Session session;
public PaymentDao(Session session) {
this.session = session;
}
/**
* Saves the given {@link Payment} in the database.
*
* @param payment the {@link Payment} to save
* @throws HibernateException if an error occurs while saving the payment
*/
public void save(Payment payment) {
}
/**
* Updates the given Payment object in the database.
*
* @param payment The Payment object to be updated.
* @throws HibernateException If an error occurs while updating the payment.
*/
public void update(Payment payment) {
}
/**
* Retrives the {@link Payment} from the database transactionally.
*
* @param paymentId the {@link Payment} to update
* @throws HibernateException if an error occurs while saving the payment
*/
public Payment get(String id) {
}
/**
* Deletes the given {@link Payment} to the database.
*
* @param payment the {@link Payment} to update
* @throws HibernateException if an error occurs while saving the payment
*/
public void delete(Payment payment) {
}
}